From 06de844521bb1fb01ff10b44795e53bb957d3010 Mon Sep 17 00:00:00 2001 From: Dorian Merz <merz@ub.uni-leipzig.de> Date: Wed, 13 Nov 2019 13:48:57 +0100 Subject: [PATCH] refs #16416 [fid_adlr] forward doi variables * avoids initialized variable in get-it-box links --- themes/fid_adlr/templates/RecordTab/holdingsils.phtml | 11 +++-------- themes/fid_adlr/templates/get-it-box/links.phtml | 2 +- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/themes/fid_adlr/templates/RecordTab/holdingsils.phtml b/themes/fid_adlr/templates/RecordTab/holdingsils.phtml index f969f572364..6435c9acf95 100644 --- a/themes/fid_adlr/templates/RecordTab/holdingsils.phtml +++ b/themes/fid_adlr/templates/RecordTab/holdingsils.phtml @@ -91,14 +91,9 @@ JS; <?php /* finc: add 'Online Access' in holdings-tab #13770 - VE */ ?> <?php if ($getit->showLinks() && (!empty($urls) || $openUrlActive || $doiActive)): ?> - <?= $this->context($this)->renderInContext('get-it-box/links.phtml', [ - 'getit' => $getit, - 'openUrl' => $openUrl, - 'openUrlActive' => $openUrlActive, - 'urls' => $urls, - 'doiActive' => $doiActive, - 'doi' => $doi - ]); ?> + <?= $this->context($this)->renderInContext('get-it-box/links.phtml', + compact('getit', 'openUrl','openUrlActive','urls','doiActive','doi') + ); ?> <?php endif; ?> </div> diff --git a/themes/fid_adlr/templates/get-it-box/links.phtml b/themes/fid_adlr/templates/get-it-box/links.phtml index 6e6869c6750..db5a5a7636c 100644 --- a/themes/fid_adlr/templates/get-it-box/links.phtml +++ b/themes/fid_adlr/templates/get-it-box/links.phtml @@ -28,7 +28,7 @@ </span> <?php endif; ?> <?php endif; ?> - <?/*= $openUrl->renderTemplate() */?> + <?= $openUrl->renderTemplate() ?> <?php if ($doiActive): ?><?= $doi->renderTemplate() ?><?php endif; ?> <?php endif; ?> </div> -- GitLab