Skip to content
Snippets Groups Projects

Hotline 6.54

Merged Patrick Barroca requested to merge hotline_6.54 into master
Compare and
+ 1042
254
Preferences
Compare changes
Files
<?php
echo $this->toolbar($this->_("Exemplaires"),
array('action' => 'viewnotice'),
echo $this->toolbar($this->_("Exemplaires"),
array('action' => 'viewnotice'),
false);
?>
<h1><?php echo $this->escape($this->notice->getTitrePrincipal());?></h1>
<?php
if (0 == count($exemplaires = $this->notice->getExemplaires()))
<?php
if (0 == count($exemplaires = $this->notice->getExemplaires()))
echo $this->_('Aucun exemplaire.');
$num = 0;
@@ -19,32 +19,32 @@ foreach ($exemplaires as $exemplaire) {
<li class="ui-li ui-li-static ui-body-c ui-corner-top">
<div><?php echo $this->_('n°') . ' ' . ++$num;?></div>
<dl>
<?php
<?php
if ($this->preferences_exemplaires['bib'])
echo sprintf($dt_dd,
$this->_('Bibliothèque'),
echo sprintf($dt_dd,
$this->_('Bibliothèque'),
$this->escape($exemplaire->getBib()->getLibelle()));
if ($this->preferences_exemplaires['annexe'] && ($annexe = $exemplaire->getCodifAnnexe()))
echo sprintf($dt_dd,
$this->_('Bibliothèque'),
echo sprintf($dt_dd,
$this->_('Bibliothèque'),
$this->escape($annexe->getLibelle()));
if ($cote = $exemplaire->getCote())
echo sprintf($dt_dd,
$this->_('Cote'),
echo sprintf($dt_dd,
$this->_('Cote'),
$this->escape($cote));
if ($this->preferences_exemplaires['dispo'])
echo sprintf($dt_dd,
$this->_('Disponibilite'),
echo sprintf($dt_dd,
$this->_('Disponibilite'),
$sigb_exemplaire ? $sigb_exemplaire->getDisponibilite() : $this->_('non connue'));
$date_retour = $sigb_exemplaire ? $sigb_exemplaire->getDateRetour() : null;
if ($this->preferences_exemplaires['date_retour'] && (null != $date_retour))
echo sprintf($dt_dd,
$this->_('Date de retour'),
echo sprintf($dt_dd,
$this->_('Date de retour'),
$date_retour);
?>
</dl>
@@ -53,25 +53,26 @@ foreach ($exemplaires as $exemplaire) {
<li class="ui-li ui-li-static ui-body-c ui-corner-bottom">
<div class="ui-grid-a">
<div class="ui-block-a">
<a href="<?php
<a href="<?php
echo $this->url(array('controller' => 'recherche',
'action' => 'bibliotheque',
'id' => $exemplaire->getBib()->getId()),
null, true);?>"
null, true);?>"
data-role="button" data-mini="true" data-icon="info"><?php echo $this->_('Horaires');?></a>
</div>
<div class="ui-block-b">
<?php
<?php
if (Class_AdminVar::isPackMobileEnabled()
&& (!$exemplaire->getBib()->getInterdireResa())
&& $sigb_exemplaire
&& $sigb_exemplaire->isReservable()) { ?>
<a href="<?php
<a href="<?php
$annexe = $sigb_exemplaire->getCodeAnnexe() ? $sigb_exemplaire->getCodeAnnexe() : $exemplaire->getAnnexe();
echo $this->url(array('controller' => 'recherche',
'action' => 'reservation',
'b' => $exemplaire->getBib()->getId(),
'e' => $exemplaire->getId(),
'a' => $sigb_exemplaire->getCodeAnnexe()),
'a' => $annexe),
null, true);?>"
data-role="button" data-mini="true" data-icon="arrow-r"
data-iconpos="right" data-ajax="false" rel="external"><?php echo $this->_('Réserver');?></a>