<th scope="col">Due date</th>
<th scope="col">Title</th>
<th scope="col">Item type</th>
- <th scope="col">Collection code</th>
+ <th scope="col">Collection</th>
<th scope="col">Location</th>
<th scope="col">Home library</th>
<th scope="col">Checked out on</th>
},
{
"mDataProp": function ( oObj ) {
- return oObj.ccode.escapeHtml();
+ return oObj.collection.escapeHtml();
}
},
{
},
{
"mDataProp": function ( oObj ) {
- return oObj.ccode.escapeHtml();
+ return oObj.collection.escapeHtml();
}
},
{
items.itype,
biblioitems.itemtype,
- items.ccode,
+ items.ccode AS collection,
borrowernumber,
surname,
my $av = Koha::AuthorisedValues->search({ category => 'LOC', authorised_value => $c->{location} });
$location = $av->count ? $av->next->lib : '';
}
+ my $collection;
+ if ( $c->{collection} ) {
+ my $av = Koha::AuthorisedValues->search({ category => 'CCODE', authorised_value => $c->{collection} });
+ $collection = $av->count ? $av->next->lib : '';
+ }
my $lost;
if ( $c->{itemlost} ) {
my $av = Koha::AuthorisedValues->search({ category => 'LOST', authorised_value => $c->{itemlost} });
barcode => $c->{barcode},
itemtype => $item_level_itypes ? $c->{itype} : $c->{itemtype},
itemtype_description => $itemtype ? $itemtype->translated_description : q{},
- ccode => $c->{ccode},
+ collection => $collection,
location => $location,
homebranch => $c->{homebranch},
itemnotes => $c->{itemnotes},