Skip to content

Instantly share code, notes, and snippets.

@xmorave2
Created April 24, 2017 11:02
Show Gist options
  • Select an option

  • Save xmorave2/8740fbe47efbeb8cbec65213d9741e0f to your computer and use it in GitHub Desktop.

Select an option

Save xmorave2/8740fbe47efbeb8cbec65213d9741e0f to your computer and use it in GitHub Desktop.
Výzva k přihlášení pro rezervaci
<?php // templates/RecordTab/holdingsils.phtml ?>
<? if (count($holdings)): ?>
<? if (($this->ils()->getHoldsMode() == 'driver' && !empty($holdings)) || $this->ils()->getTitleHoldsMode() == 'driver'): ?>
<? if ($account->loginEnabled() && $offlineMode != 'ils-offline'): ?>
<? if (!$user): ?>
<div class="alert alert-info">
<?=$this->translate("hold_profile_html2", array('%%url%%' => $this->currentPath() . '?catalogLogin=true'))?>
</div>
<? elseif (!$user->cat_username): ?>
<div class="alert alert-info">
<?=$this->translate("hold_profile_html", array('%%url%%' => $this->currentPath() . '?catalogLogin=true'))?>
</div>
<? endif; ?>
<? endif; ?>
<? endif; ?>
<? if($user): ?>
<?$holdingTitleHold = $this->driver->tryMethod('getRealTimeTitleHold'); ?>
<? if (!empty($holdingTitleHold)): ?>
<? if($user->college == "K"): ?>
<a class="btn btn-warning placehold modal-link" title="<?=$this->transEsc('Order ILL')?>" href="<?=$this->recordLink()->getRequestUrl($holdingTitleHold)?>"><i class="fa fa-flag"></i>&nbsp;<?=$this->transEsc('Order ILL')?></a>
<? else: ?>
<a class="btn btn-primary placehold modal-link" title="<?=$this->transEsc('request_place_text')?>" href="<?=$this->recordLink()->getRequestUrl($holdingTitleHold)?>"><i class="fa fa-flag"></i>&nbsp;<?=$this->transEsc('title_hold_place')?></a>
<? endif; ?>
<? endif; ?>
<? endif; ?>
@radiuscz
Copy link

radiuscz commented Apr 24, 2017

hold_profile_html2 = "Tento dokument si můžete <strong>rezervovat</strong>. Pokud jste knihovna můžete ho objednat jako <strong>MVS</strong>. Nejprve je však nutné se <a href='%%url%%' class='btn btn-primary modal-link'><i class='fa fa-sign-in'></i> Přihlásit</a>"
hold_profile_html je standardní
Order ILL = "Objednat MVS"
Place a Hold = "Objednat"
title_hold_place = "Rezervovat / objednat titul"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment