Bug 3292: Fix to display Branch names instead of branch codes in opac serial's displays.

Fixes display of branch name in opac-full-serial-issues.tmpl and opac-serial-issues.tmpl.  Also enables zebra striping in opac-serial-issues.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
This commit is contained in:
Garry Collum 2009-08-09 16:28:08 -04:00 committed by Henri-Damien LAURENT
parent 99aaf89ba1
commit a5aadae0a4
3 changed files with 9 additions and 3 deletions

View File

@ -588,6 +588,7 @@ sub GetFullSubscriptionsFromBiblionumber {
aqbudget.bookfundid,aqbooksellers.name as aqbooksellername,
biblio.title as bibliotitle,
subscription.branchcode AS branchcode,
branches.branchname AS branchname,
subscription.subscriptionid AS subscriptionid|;
if (C4::Context->preference('IndependantBranches') &&
C4::Context->userenv &&
@ -602,6 +603,7 @@ sub GetFullSubscriptionsFromBiblionumber {
(serial.subscriptionid=subscription.subscriptionid)
LEFT JOIN aqbudget ON subscription.aqbudgetid=aqbudget.aqbudgetid
LEFT JOIN aqbooksellers on subscription.aqbooksellerid=aqbooksellers.id
LEFT JOIN branches ON branches.branchcode=subscription.branchcode
LEFT JOIN biblio on biblio.biblionumber=subscription.biblionumber
WHERE subscription.biblionumber = ?
ORDER BY year DESC,

View File

@ -41,11 +41,15 @@
<th>Status
</th>
</tr>
<!-- TMPL_LOOP Name="serials" -->
<!-- TMPL_LOOP Name="serials" -->
<!-- TMPL_UNLESS Name="__odd__" -->
<tr class="highlight">
<!-- TMPL_ELSE -->
<tr>
<!-- /TMPL_UNLESS -->
<td> <!-- TMPL_VAR Name="publisheddate" -->
</td>
<td> <!-- TMPL_VAR name="branchcode" -->
<td> <!-- TMPL_VAR name="branchname" -->
</td>
<td> <!-- TMPL_VAR name="notes" -->
</td>

View File

@ -83,7 +83,7 @@
<p>The subscription expired on <!-- TMPl_VAR name="histenddate" --></p>
<!-- /TMPL_IF -->
</p>
<h2><!-- TMPL_VAR name="branchcode" --> <!-- TMPL_VAR name="notes" --></h2>
<h2><!-- TMPL_VAR name="branchname" --> <!-- TMPL_VAR name="notes" --></h2>
<!-- TMPL_IF name="recievedlist" -->
<h3>Available Issues</h3>
<p>