Skip to content
Snippets Groups Projects
Commit 06de8445 authored by Dorian Merz's avatar Dorian Merz
Browse files

refs #16416 [fid_adlr] forward doi variables

* avoids initialized variable in get-it-box links
parent 463d92f6
Branches
Tags
No related merge requests found
...@@ -91,14 +91,9 @@ JS; ...@@ -91,14 +91,9 @@ JS;
<?php /* finc: add 'Online Access' in holdings-tab #13770 - VE */ ?> <?php /* finc: add 'Online Access' in holdings-tab #13770 - VE */ ?>
<?php if ($getit->showLinks() && (!empty($urls) || $openUrlActive || $doiActive)): ?> <?php if ($getit->showLinks() && (!empty($urls) || $openUrlActive || $doiActive)): ?>
<?= $this->context($this)->renderInContext('get-it-box/links.phtml', [ <?= $this->context($this)->renderInContext('get-it-box/links.phtml',
'getit' => $getit, compact('getit', 'openUrl','openUrlActive','urls','doiActive','doi')
'openUrl' => $openUrl, ); ?>
'openUrlActive' => $openUrlActive,
'urls' => $urls,
'doiActive' => $doiActive,
'doi' => $doi
]); ?>
<?php endif; ?> <?php endif; ?>
</div> </div>
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
</span> </span>
<?php endif; ?> <?php endif; ?>
<?php endif; ?> <?php endif; ?>
<?/*= $openUrl->renderTemplate() */?> <?= $openUrl->renderTemplate() ?>
<?php if ($doiActive): ?><?= $doi->renderTemplate() ?><?php endif; ?> <?php if ($doiActive): ?><?= $doi->renderTemplate() ?><?php endif; ?>
<?php endif; ?> <?php endif; ?>
</div> </div>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment