Skip to content
Snippets Groups Projects
Commit ef555edc authored by Gregor Gawol's avatar Gregor Gawol Committed by Dorian Merz
Browse files

refs #16336 [fid_adlr] is record ordered

* set get it box function in template
* set info message
* remove notice
* moved ordered message to notice block
parent d01fc97e
No related merge requests found
...@@ -32,6 +32,8 @@ if (!$offlineMode) { ...@@ -32,6 +32,8 @@ if (!$offlineMode) {
} }
// Set page title. // Set page title.
$this->headTitle($this->driver->getBreadcrumb()); $this->headTitle($this->driver->getBreadcrumb());
$isRecordOrdered = $this->getit($this->driver)->isRecordOrdered();
?> ?>
<div class="getitbox-getit"> <div class="getitbox-getit">
...@@ -39,7 +41,7 @@ $this->headTitle($this->driver->getBreadcrumb()); ...@@ -39,7 +41,7 @@ $this->headTitle($this->driver->getBreadcrumb());
<?=($offlineMode == "ils-offline") ? $this->render('Helpers/ils-offline.phtml', ['offlineModeMsg' => 'ils_offline_holdings_message']) : ''?> <?=($offlineMode == "ils-offline") ? $this->render('Helpers/ils-offline.phtml', ['offlineModeMsg' => 'ils_offline_holdings_message']) : ''?>
<?php if ($user): ?> <?php if ($user && !$isRecordOrdered): ?>
<a class="btn btn-primary pda-button <?=$controllerClass?> full-order" data-lightbox href="<?=$this->url('record-fidpda', array('id' => $id))?>" rel="nofollow"> <a class="btn btn-primary pda-button <?=$controllerClass?> full-order" data-lightbox href="<?=$this->url('record-fidpda', array('id' => $id))?>" rel="nofollow">
<?=$this->transEsc('getit_order')?> <?=$this->transEsc('getit_order')?>
</a> </a>
...@@ -59,7 +61,7 @@ $this->headTitle($this->driver->getBreadcrumb()); ...@@ -59,7 +61,7 @@ $this->headTitle($this->driver->getBreadcrumb());
<?php endif; ?> <?php endif; ?>
</div> </div>
<?php if (!empty($getitConfig['notice'])): ?> <?php if (!empty($getitConfig['notice']) && !$isRecordOrdered): ?>
<div class="getitbox-notices"> <div class="getitbox-notices">
<?php <?php
$url = '<a href="'.$this->url('myresearch-account').'?auth_method='.$account->getAuthMethod().'" target="_blank" data-lightbox>'.$this->transEsc('getit_text_3_2').'</a>'; $url = '<a href="'.$this->url('myresearch-account').'?auth_method='.$account->getAuthMethod().'" target="_blank" data-lightbox>'.$this->transEsc('getit_text_3_2').'</a>';
...@@ -69,5 +71,9 @@ $this->headTitle($this->driver->getBreadcrumb()); ...@@ -69,5 +71,9 @@ $this->headTitle($this->driver->getBreadcrumb());
<?=$this->transEsc('getit_availability')?>: <?=$this->driver->getDeliveryStatus()?> <?=$this->transEsc('getit_availability')?>: <?=$this->driver->getDeliveryStatus()?>
<?php endif; ?> <?php endif; ?>
</div> </div>
<?php elseif ($user && $isRecordOrdered): ?>
<div class="getitbox-notices">
<?=$this->translate('fid::acquisition_pda_ordered')?>
</div>
<?php endif; ?> <?php endif; ?>
<!-- fid_adlr - recordtab - acquistionpda - END --> <!-- fid_adlr - recordtab - acquistionpda - END -->
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