Newer
Older
<!-- 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 if (in_array('4', $this->showOrderButton) && $user): ?>
<a class="btn btn-primary pda-button <?=$controllerClass?> full-order" data-lightbox href="<?=$this->url('record-fidsubitoarticle', array('id' => $this->recordId))?>" rel="nofollow">
<?=$this->transEsc('getit_order')?>
</a>
<? $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 -->