Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
<th>Last Location</th>
<th>Call no.</th>
<th>Copy no.</th>
<th>Last Location</th>
<th>Call no.</th>
<th>Copy no.</th>
+ [% IF itemdata_enumchron %]
+ <th>Vol no.</th>
+ [% END %]
<th>Information</th>
</tr>
[% FOREACH itemloo IN bibitemloo.itemloop %]
<th>Information</th>
</tr>
[% FOREACH itemloo IN bibitemloo.itemloop %]
[% itemloo.itemcallnumber %]
</td>
<td>[% IF ( itemloo.copynumber ) %][% itemloo.copynumber %][% ELSE %] [% END %]</td>
[% itemloo.itemcallnumber %]
</td>
<td>[% IF ( itemloo.copynumber ) %][% itemloo.copynumber %][% ELSE %] [% END %]</td>
+ [% IF itemdata_enumchron %]
+ <td>
+ [% itemloo.enumchron %]
+ </td>
+ [% END %]
<td>
[% IF ( itemloo.onloan ) %]
<span class="checkedout">Due [% itemloo.date_due %]</span>
<td>
[% IF ( itemloo.onloan ) %]
<span class="checkedout">Due [% itemloo.date_due %]</span>
$itemLoopIter->{imageurl} = getitemtypeimagelocation( 'opac', $itemTypes->{ $itemInfo->{itype} }{imageurl} );
# Show serial enumeration when needed
$itemLoopIter->{imageurl} = getitemtypeimagelocation( 'opac', $itemTypes->{ $itemInfo->{itype} }{imageurl} );
# Show serial enumeration when needed
- if ($itemLoopIter->{enumchron}) {
- $itemdata_enumchron = 1;
- }
- $template->param( itemdata_enumchron => $itemdata_enumchron );
+ if ($itemLoopIter->{enumchron}) {
+ $itemdata_enumchron = 1;
+ }
push @{$biblioLoopIter{itemLoop}}, $itemLoopIter;
}
push @{$biblioLoopIter{itemLoop}}, $itemLoopIter;
}
+ $template->param( itemdata_enumchron => $itemdata_enumchron );
if ($numCopiesAvailable > 0) {
$numBibsAvailable++;
if ($numCopiesAvailable > 0) {
$numBibsAvailable++;
push @biblionumbers, $input->param('biblionumber');
}
push @biblionumbers, $input->param('biblionumber');
}
+my $itemdata_enumchron = 0;
my @biblioloop = ();
foreach my $biblionumber (@biblionumbers) {
my @biblioloop = ();
foreach my $biblionumber (@biblionumbers) {
while (my $wait_hashref = $sth2->fetchrow_hashref) {
$item->{waitingdate} = format_date($wait_hashref->{waitingdate});
}
while (my $wait_hashref = $sth2->fetchrow_hashref) {
$item->{waitingdate} = format_date($wait_hashref->{waitingdate});
}
+
+ # Show serial enumeration when needed
+ if ($item->{enumchron}) {
+ $itemdata_enumchron = 1;
+ }
+
push @{ $biblioitem->{itemloop} }, $item;
}
push @{ $biblioitem->{itemloop} }, $item;
}
$template->param(
optionloop => \@optionloop,
bibitemloop => \@bibitemloop,
$template->param(
optionloop => \@optionloop,
bibitemloop => \@bibitemloop,
+ itemdata_enumchron => $itemdata_enumchron,
date => $date,
biblionumber => $biblionumber,
findborrower => $findborrower,
date => $date,
biblionumber => $biblionumber,
findborrower => $findborrower,