-
André Lahmann authored
* introduced translation domain for GetItBox * refactored templates to use GetItBox domain * refactored state logic in resolverLinks-button.phtml to work with standardized VuFind access states * refactored and aligned GetResolverLinks->handleRequest with finc version * remove fetchLinks from EZB, use parent
d5f0419a
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
resolverLinks-button.phtml 1.18 KiB
<!-- fid: ajax - resolverlinks-button -->
<?php
// Set up convenience variables:
$account = $this->auth()->getManager();
$user = $account->isLoggedIn();
// $controllerClass = 'controller:' . $this->record($this->driver)->getController();
$controllerClass = 'controller:SolrMarcFincPDA';
?>
<?php /* possible states for showOrderButton (as this is the state reported by
the resolver mapped to VuFinds Resolver driver access levels): error,
open, limited, denied, unknown
*/ ?>
<?php /* refs #17647: status denied, unknown or error can display the button - GG */ ?>
<?php if (in_array($this->showOrderButton, ['denied', 'unknown', 'error']) && $user): ?>
<a class="btn btn-primary pda-button <?=$controllerClass?> full-order" data-lightbox href="<?=$this->url('record-fidsubitoarticle', ['id' => $this->recordId])?>" rel="nofollow">
<?=$this->transEsc('getit_order')?>
</a>
<?php $script = <<<JS
$(document).ready(function() {
// Use to register new lightbox window pda form
VuFind.lightbox.bind();
});
JS;
?>
<?=$this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, $script, 'SET');?>
<?php endif; ?>
<!-- fid: ajax - resolverlinks-button - END -->