$res .= '</table>';
- if (!isset($collection->settings['perline']) || !$collection->settings['perline']) {
+ if (!isset($collection->settings['perline']) || !$collection->settings['perline']) {
$collection->settings['perline'] = 3;
}
$res .= '<h3>' . __('Thème') . '</h3>';
$dao->compile($book_id, 'html5');
$time = self::getHTML5CacheTime($book_id);
- if (count($e) == 2 || $e[2] != $time) {
+ if (count($e) == 2 || $e[2] <= $time - 10) {
$e[2] = $time;
http::redirect(SITE_PATH . 'viewerh/' . implode('_', $e) . '/index.html');
exit;
$dao = new wsDAOBook($core->con);
$e = explode('_', $args[0]);
$dao->compile($e[0], 'html5');
- $time = self::getHTML5CacheTime($e[0]);
- if (count($e) == 2 || $e[2] != $time) {
- $e[2] = $time;
+ if (count($e) == 2 || $e[2] <= TIME - 15) {
+ $e[2] = TIME;
http::redirect(SITE_PATH . 'viewerhu/' . implode('_', $e) . '/' . $args[1]);
exit;
}
$daoDoc->getLinksAndRulers($book_id, $links, $rulers);
+ $audiodescription = array();
+
$imagesassets = array();
$id = 1;
+ $ignoreLinks = array();
foreach ($links as $id => $link) {
$links[$id]['id'] = $id;
if ($link['type'] == 15) {
}
}
}
+
+ if ($link['type'] == 25) {
+ $audiodescription[$link['page']] = $link['to'];
+ $ignoreLinks[] = $id;
+ }
+ }
+
+ foreach ($ignoreLinks as $ignoreLink) {
+ unset($links[$ignoreLink]);
}
+ $links = array_values($links);
$externalsOptions = array('ongletsSWF', 'tabs2DSWF', 'externalChapters', 'externalArchives', 'ambientSound');
foreach ($externalsOptions as $e) {
}
}
+ $flex->addVariable('audiodescription', $audiodescription, false, true, "JSONObject");
$flex->addVariable('links', $links, false, true, 'JSONObject');
$flex->addVariable('signature', $exportSignature, false, true, 'JSONObject');