Skip to content
Snippets Groups Projects
Commit dae12fe1 authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

Merge branch 'hotline#15192_fix_record_links_in_loans_and_holds_page' into 'hotline_6.48'

Hotline#15192 fix record links in loans and holds page

See merge request !315
parents c435a58b 36915846
Branches
Tags
2 merge requests!318Master,!317Hotline 6.48
- ticket #15192: Modification de la génération des liens de notices dans les pages de prêts et réservations
- ticket #13648: Amélioration décodage de caractères iso2709 pouvant amener à une troncature des zones 330
- ticket #14175: Récupération des albums LastFm: Si la procédure habituelle ne fonctionne pas, comparaison avec le titre uniquement.
......
<?php $this->openBoite('Prêts en cours');?>
<div class="abonneTitre"><?php echo $this->fiche['nom_aff'];?></div>
<?php
// messages
foreach (['message', 'error'] as $type)
if (isset($this->fiche[$type]) && $this->fiche[$type])
echo '<p class="error">' . $this->fiche[$type] . '</p>';
?>
<?php if (isset($this->fiche['fiche'])
&& ($emprunts = $this->fiche['fiche']->getEmprunts())
&& !empty($emprunts)) {
echo $this->abonne_LoanExport();
}
?>
<table width="100%" class="tablesorter">
<thead>
<tr>
<th style="text-align:left; white-space:nowrap"><?php echo $this->_('n°'); ?></th>
<th style="text-align:left"><?php echo $this->_('Titre'); ?></th>
<th style="text-align:left"><?php echo $this->_('Auteur'); ?></th>
<th style="text-align:left"><?php echo $this->_('Bibliothèque'); ?></th>
<th style="text-align:center"><?php echo $this->_('Retour prévu'); ?></th>
<th style="text-align:center"><?php echo $this->_('Informations'); ?></th>
</tr>
</thead>
<tbody>
<?php
$num = 1;
if (isset($this->fiche['fiche'])) {
foreach ($this->fiche["fiche"]->getEmprunts() as $emprunt) {
$class_retard = $emprunt->enRetard() ? 'class="pret_en_retard"' : '';?>
<tr <?php echo $class_retard;?>>
<td width="15px" align="center"><b><?php echo $num++;?></b></td>
<td>
<?php
echo $this->tagAnchor(
$this->url(['controller' => 'recherche',
'action' => 'viewnotice',
'id' => $emprunt->getNoticeOPACId(),
'retour_abonne' => 'prets']),
$emprunt->getTitre());
?></td>
<td><?php echo $emprunt->getAuteur();?></td>
<td><?php echo $emprunt->getBibliotheque();?></td>
<td class="date_retour">
<?php echo $emprunt->getDateRetour() . ' ';?>
<?php
if ($emprunt->isRenewable())
echo $this->tagAnchor($this->url(['action' => 'prolongerPret',
'id_pret' => $emprunt->getId()]),
$this->_('Prolonger'));?>
</td>
<td><?php echo $emprunt->getType();?></td>
</tr>
<?php }
} ?>
</tbody>
</table>
<?php $this->closeBoite(); ?>
<?php echo $this->abonne_RetourFiche(); ?>
<br/>
<br/>
<?php $this->openBoite('Prêts en cours');?>
<div class="abonneTitre"><?php echo $this->fiche['nom_aff'];?></div>
<?php
// messages
foreach (['message', 'error'] as $type)
if (isset($this->fiche[$type]) && $this->fiche[$type])
echo '<p class="error">' . $this->fiche[$type] . '</p>';
?>
<?php if (isset($this->fiche['fiche'])
&& ($emprunts = $this->fiche['fiche']->getEmprunts())
&& !empty($emprunts)) {
echo $this->abonne_LoanExport();
}
?>
<table width="100%" class="tablesorter">
<thead>
<tr>
<th style="text-align:left; white-space:nowrap"><?php echo $this->_('n°'); ?></th>
<th style="text-align:left"><?php echo $this->_('Titre'); ?></th>
<th style="text-align:left"><?php echo $this->_('Auteur'); ?></th>
<th style="text-align:left"><?php echo $this->_('Bibliothèque'); ?></th>
<th style="text-align:center"><?php echo $this->_('Retour prévu'); ?></th>
<th style="text-align:center"><?php echo $this->_('Informations'); ?></th>
</tr>
</thead>
<tbody>
<?php
$num = 1;
if (isset($this->fiche['fiche'])) {
foreach ($this->fiche["fiche"]->getEmprunts() as $emprunt) {
$class_retard = $emprunt->enRetard() ? 'class="pret_en_retard"' : '';?>
<tr <?php echo $class_retard;?>>
<td width="15px" align="center"><b><?php echo $num++;?></b></td>
<td>
<?php
echo $this->tagAnchor(
$this->url(['controller' => 'recherche',
'action' => 'viewnotice',
'id' => $emprunt->getNoticeOPACId(),
'retour_abonne' => 'prets'],
null, true),
$emprunt->getTitre());
?></td>
<td><?php echo $emprunt->getAuteur();?></td>
<td><?php echo $emprunt->getBibliotheque();?></td>
<td class="date_retour">
<?php echo $emprunt->getDateRetour() . ' ';?>
<?php
if ($emprunt->isRenewable())
echo $this->tagAnchor($this->url(['action' => 'prolongerPret',
'id_pret' => $emprunt->getId()]),
$this->_('Prolonger'));?>
</td>
<td><?php echo $emprunt->getType();?></td>
</tr>
<?php }
} ?>
</tbody>
</table>
<?php $this->closeBoite(); ?>
<?php echo $this->abonne_RetourFiche(); ?>
<br/>
<br/>
......@@ -3,7 +3,7 @@
<div class="abonneTitre"><?php echo $this->escape($this->fiche["nom_aff"]);?></div>
<table width="100%" class="tablesorter">
<thead>
<thead>
<tr>
<th style="text-align:left;white-space:nowrap"><?php echo $this->_('n°');?></th>
<th style="text-align:left"><?php echo $this->_('Titre');?></th>
......@@ -13,8 +13,8 @@
<th style="text-align:center"><?php echo $this->_('Rang');?></th>
<th style="text-align:center;width:20px"><?php echo $this->_('Suppr.');?></th>
</tr>
</thead>
<tbody>
</thead>
<tbody>
<?php if ($this->fiche["message"]) { ?>
<tr>
<td colspan="6"><p class="error"><?php echo $this->fiche["message"];?></p></td>
......@@ -31,31 +31,31 @@
$num=1;
foreach($resas as $resa) { ?>
<tr>
<td width="15px" align="center"><b><?php echo $num++;?></b></td>
<td width="15px" align="center"><b><?php echo $num++;?></b></td>
<td>
<?php echo $this->tagAnchor($this->url(array('controller' => 'recherche',
'action' => 'viewnotice',
'id' => $resa->getNoticeOPACId(),
'retour_abonne' => 'reservations')),
$resa->getTitre());
?>
<?php echo $this->tagAnchor(
$this->url(['controller' => 'recherche',
'action' => 'viewnotice',
'id' => $resa->getNoticeOPACId(),
'retour_abonne' => 'reservations'],
null, true),
$resa->getTitre());?>
</td>
<td><?php echo $this->escape(strip_tags($resa->getAuteur()));?></td>
<td><?php echo $this->escape($resa->getBibliotheque());?></td>
<td style="text-align:left"><?php echo $this->escape($resa->getEtat());?></td>
<td style="text-align:center"><?php echo $this->escape($resa->getRang());?></td>
<td style="text-align:center">
<?php
echo $this->tagAnchor(
$this->url(array('id_delete' => $resa->getId())),
$this->tagImg(URL_IMG . 'bouton/cancel.gif', array(
'onclick' => 'return confirm(\''. str_replace("'", "\\'", $this->_('Etes vous sûr de vouloir supprimer cette réservation ?')) . '\')',
'title' => $this->_('Supprimer cette réservation'))));
<?php echo $this->tagAnchor(
$this->url(['id_delete' => $resa->getId()]),
$this->tagImg(URL_IMG . 'bouton/cancel.gif',
['onclick' => 'return confirm(\''. str_replace("'", "\\'", $this->_('Etes vous sûr de vouloir supprimer cette réservation ?')) . '\')',
'title' => $this->_('Supprimer cette réservation')]));
?>
</td>
</tr>
<?php }} ?>
</tbody>
<?php }} ?>
</tbody>
</table>
<?php $this->closeBoite();?>
......
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