Merge lp:~sebastian-meyer/goobi-presentation/bug809874 into lp:goobi-presentation/1.0

Proposed by Sebastian Meyer
Status: Merged
Merged at revision: 32
Proposed branch: lp:~sebastian-meyer/goobi-presentation/bug809874
Merge into: lp:goobi-presentation/1.0
Diff against target: 39 lines (+7/-5)
2 files modified
dlf/common/class.tx_dlf_document.php (+6/-0)
dlf/plugins/toc/class.tx_dlf_toc.php (+1/-5)
To merge this branch: bzr merge lp:~sebastian-meyer/goobi-presentation/bug809874
Reviewer Review Type Date Requested Status
Sebastian Meyer Approve
Review via email: mp+71070@code.launchpad.net

Commit message

Fix Bug #809874: Multi-volume works are not linked in table of contents

To post a comment you must log in.
Revision history for this message
Sebastian Meyer (sebastian-meyer) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'dlf/common/class.tx_dlf_document.php'
2--- dlf/common/class.tx_dlf_document.php 2011-08-02 17:38:33 +0000
3+++ dlf/common/class.tx_dlf_document.php 2011-08-10 15:46:09 +0000
4@@ -451,6 +451,12 @@
5
6 }
7
8+ // Is this the toplevel structure?
9+ } elseif ($_details['id'] == $this->getToplevelId()) {
10+
11+ // Yes. Point to itself.
12+ $_details['points'] = 1;
13+
14 }
15
16 // Keep for later usage.
17
18=== modified file 'dlf/plugins/toc/class.tx_dlf_toc.php'
19--- dlf/plugins/toc/class.tx_dlf_toc.php 2011-08-02 17:38:33 +0000
20+++ dlf/plugins/toc/class.tx_dlf_toc.php 2011-08-10 15:46:09 +0000
21@@ -95,10 +95,6 @@
22
23 }
24
25- } elseif (!empty($entry['points']['doc'])) {
26-
27- $entryArray['_OVERRIDE_HREF'] = $this->pi_linkTP_keepPIvars_url(array ('id' => $entry['points']['doc'], 'page' => 1), TRUE, FALSE, $this->conf['targetPid']);
28-
29 } else {
30
31 $entryArray['doNotLinkIt'] = 1;
32@@ -282,7 +278,7 @@
33
34 if ($GLOBALS['TYPO3_DB']->sql_num_rows($result)) {
35
36- $menuArray[0]['ITEM_STATE'] .= 'IFSUB';
37+ $menuArray[0]['ITEM_STATE'] = 'CURIFSUB';
38
39 $menuArray[0]['_SUB_MENU'] = array ();
40

Subscribers

People subscribed via source and target branches

to all changes: