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
=== modified file 'dlf/common/class.tx_dlf_document.php'
--- dlf/common/class.tx_dlf_document.php 2011-08-02 17:38:33 +0000
+++ dlf/common/class.tx_dlf_document.php 2011-08-10 15:46:09 +0000
@@ -451,6 +451,12 @@
451451
452 }452 }
453453
454 // Is this the toplevel structure?
455 } elseif ($_details['id'] == $this->getToplevelId()) {
456
457 // Yes. Point to itself.
458 $_details['points'] = 1;
459
454 }460 }
455461
456 // Keep for later usage.462 // Keep for later usage.
457463
=== modified file 'dlf/plugins/toc/class.tx_dlf_toc.php'
--- dlf/plugins/toc/class.tx_dlf_toc.php 2011-08-02 17:38:33 +0000
+++ dlf/plugins/toc/class.tx_dlf_toc.php 2011-08-10 15:46:09 +0000
@@ -95,10 +95,6 @@
9595
96 }96 }
9797
98 } elseif (!empty($entry['points']['doc'])) {
99
100 $entryArray['_OVERRIDE_HREF'] = $this->pi_linkTP_keepPIvars_url(array ('id' => $entry['points']['doc'], 'page' => 1), TRUE, FALSE, $this->conf['targetPid']);
101
102 } else {98 } else {
10399
104 $entryArray['doNotLinkIt'] = 1;100 $entryArray['doNotLinkIt'] = 1;
@@ -282,7 +278,7 @@
282278
283 if ($GLOBALS['TYPO3_DB']->sql_num_rows($result)) {279 if ($GLOBALS['TYPO3_DB']->sql_num_rows($result)) {
284280
285 $menuArray[0]['ITEM_STATE'] .= 'IFSUB';281 $menuArray[0]['ITEM_STATE'] = 'CURIFSUB';
286282
287 $menuArray[0]['_SUB_MENU'] = array ();283 $menuArray[0]['_SUB_MENU'] = array ();
288284

Subscribers

People subscribed via source and target branches

to all changes: