adding branchcode for subscriptions details

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Paul POULAIN 2008-02-13 13:03:22 -06:00 committed by Joshua Ferraro
parent aeb0e1988b
commit fb5dec8b98
4 changed files with 29 additions and 26 deletions

View file

@ -90,39 +90,40 @@
<h2>
We have <!-- TMPL_VAR name="subscriptionsnumber" --> subscription(s) associated with this title.
</h2>
<p>Below is a list of the three latest issues :</p>
<!-- TMPL_LOOP Name="subscriptions" -->
<!-- TMPL_IF name="subscriptionnotes"-->
<h2><!--TMPL_VAR Name="subscriptionnotes"--> </h2>
<!-- /TMPL_IF -->
<!--TMPL_IF Name="latestserials"-->
<table>
<tr><th>Issue number</th><th>Date</th><th>Status</th></tr>
<!--TMPL_LOOP Name="latestserials"-->
<tr>
<td> <!--TMPL_VAR Name="serialseq"-->
</td>
<td> <!--TMPL_VAR Name="planneddate"-->
</td>
<td> <!--TMPL_IF Name="status1"-->Pending
<h3>At library: <!-- TMPL_VAR name="branchcode" --> <!-- TMPL_VAR name="notes" --></h3>
<p>Below is a list of the three latest issues :</p>
<!-- TMPL_IF name="subscriptionnotes"-->
<p><!--TMPL_VAR Name="subscriptionnotes"--> </p>
<!-- /TMPL_IF -->
<!--TMPL_IF Name="latestserials"-->
<table>
<tr><th>Issue number</th><th>Date</th><th>Status</th></tr>
<!--TMPL_LOOP Name="latestserials"-->
<tr>
<td> <!--TMPL_VAR Name="serialseq"-->
</td>
<td> <!--TMPL_VAR Name="planneddate"-->
</td>
<td> <!--TMPL_IF Name="status1"-->Pending
<!--TMPL_ELSE -->
<!-- TMPL_IF Name="status2"-->Arrived
<!--TMPL_ELSE -->
<!-- TMPL_IF Name="status2"-->Arrived
<!-- TMPL_IF Name="status3"-->Late
<!--TMPL_ELSE -->
<!-- TMPL_IF Name="status3"-->Late
<!-- TMPL_IF Name="status4"-->Missing
<!--TMPL_ELSE -->
<!-- TMPL_IF Name="status4"-->Missing
<!--TMPL_ELSE -->
<!-- TMPL_IF Name="status5"-->Not Issued
<!--/TMPL_IF-->
<!-- TMPL_IF Name="status5"-->Not Issued
<!--/TMPL_IF-->
<!--/TMPL_IF-->
<!--/TMPL_IF-->
<!--/TMPL_IF-->
</td>
</tr>
<!--/TMPL_LOOP -->
</table>
<!-- /TMPL_IF -->
<!--/TMPL_IF-->
</td>
</tr>
<!--/TMPL_LOOP -->
</table>
<!-- /TMPL_IF -->
<!-- /TMPL_LOOP -->
<p><a href="/cgi-bin/koha/opac-serial-issues.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->" title="Serial issues">Click here</a> for more information on subscription(s) history</p>
<!-- /TMPL_IF --></div>

View file

@ -279,6 +279,7 @@
<h2>This is a serial subscription</h2>
<p> (There are <!-- TMPL_VAR name="subscriptionsnumber" --> subscriptions associated with this title).</p>
<!-- TMPL_LOOP Name="subscriptions" -->
<!-- TMPL_IF name="branchcode" --><h3>At branch: <!-- TMPL_VAR name="branchcode" --></h3><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="subscriptionnotes" --><p><!--TMPL_VAR NAME="subscriptionnotes"--> </p><!-- /TMPL_IF -->
<!--TMPL_IF NAME="latestserials"-->
<p> The three latest issues for this subscription:</p>

View file

@ -75,6 +75,7 @@ foreach my $subscription (@subscriptions) {
my %cell;
$cell{subscriptionid} = $subscription->{subscriptionid};
$cell{subscriptionnotes} = $subscription->{notes};
$cell{branchcode} = $subscription->{branchcode};
#get the three latest serials.
$cell{latestserials} =

View file

@ -67,7 +67,7 @@ foreach my $subscription (@subscriptions) {
my %cell;
$cell{subscriptionid} = $subscription->{subscriptionid};
$cell{subscriptionnotes} = $subscription->{notes};
$cell{branchcode} = $subscription->{branchcode};
#get the three latest serials.
$cell{latestserials} =
GetLatestSerials( $subscription->{subscriptionid}, 3 );