}
Links::getLinksAndRulers($this->book_id, $links, $rulers);
+ $this->_fluidbook->normalizeLinks($links);
if ($this->fluidbookSettings->basketManager === 'Puma') {
foreach ($links as $k => $init) {
, 'data/contents/p' . $page . '.svg');
}
- $t=$this->getFluidbook()->getThumbFile($page, $this->imageFormat);
+ $t = $this->getFluidbook()->getThumbFile($page, $this->imageFormat);
$this->vdir->copy($t, 'data/thumbnails/p' . $page . '.' . $this->imageFormat);
$this->log('Made image page ' . $page);
}
'read_only' => true,
'type' => User::class,
'hidden' => true,
- 'column' => true,
+ 'column' => false,
'can' => 'fluidbook-publication:admin',
'column_attribute' => 'companyWithNameOnTwoLines',
'column_move_after' => 'owner',
}
}
}
+
+ public function normalizeLinks(&$links)
+ {
+ if (!$this->isOnePage()) {
+ $w = $this->getPageWidth();
+ foreach ($links as $k => $link) {
+ if ($link['left'] > $w && $link['page'] % 2 == 0) {
+ $links[$k]['left'] -= $w;
+ $links[$k]['page']++;
+ }
+ }
+ }
+ }
}