[% USE Branches %]
[% USE Categories %]
[% USE ItemTypes %]
+[% USE AuthorisedValues %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
[% UNLESS ( multi_hold ) %]
<th>Barcode</th>
<th>Home library</th>
<th>Last location</th>
+ [% IF itemdata_ccode %]
+ <th>Collection</th>
+ [% END %]
<th>Call no.</th>
<th>Copy number</th>
[% IF itemdata_enumchron %]
<td>
[% Branches.GetName( itemloo.holdingbranch ) | html %]
</td>
+ [% IF itemdata_ccode %]
+ <td>
+ [% IF ( itemloo.ccode ) %][% AuthorisedValues.GetByCode( 'CCODE', itemloo.ccode ) %][% END %]
+ </td>
+ [% END %]
<td>
[% itemloo.itemcallnumber | html %]
</td>
my $logged_in_patron = Koha::Patrons->find( $borrowernumber );
my $itemdata_enumchron = 0;
+my $itemdata_ccode = 0;
my @biblioloop = ();
foreach my $biblionumber (@biblionumbers) {
next unless $biblionumber =~ m|^\d+$|;
if ($item->{enumchron}) {
$itemdata_enumchron = 1;
}
+ # Show collection when needed
+ if ($item->{ccode}) {
+ $itemdata_ccode = 1;
+ }
}
push @{ $biblioitem->{itemloop} }, $item;
optionloop => \@optionloop,
bibitemloop => \@bibitemloop,
itemdata_enumchron => $itemdata_enumchron,
+ itemdata_ccode => $itemdata_ccode,
date => $date,
biblionumber => $biblionumber,
findborrower => $findborrower,