$reserve{'suspend'} = $res->suspend();
$reserve{'suspend_until'} = $res->suspend_until();
$reserve{'reserve_id'} = $res->reserve_id();
- $reserve{itemtype} = $res->{itemtype};
+ $reserve{itemtype} = $res->itemtype();
if ( C4::Context->preference('IndependentBranches') && $flags->{'superlibrarian'} != 1 ) {
$reserve{'branchloop'} = [ Koha::Libraries->find( $res->branchcode() ) ];
my $biblionumber = $h->biblio()->biblionumber();
+ my $itemtype_limit;
+ if ( $h->itemtype ) {
+ my $itemtype = C4::Koha::getitemtypeinfo( $h->itemtype );
+ $itemtype_limit = $itemtype->{translated_description};
+ }
+
my $hold = {
DT_RowId => $h->reserve_id(),
biblionumber => $biblionumber,
waiting_at => $h->branch()->branchname(),
waiting_here => $h->branch()->branchcode() eq $branch,
priority => $h->priority(),
+ itemtype_limit => $itemtype_limit,
subtitle => GetRecordValue(
'subtitle', GetMarcBiblio($biblionumber),
GetFrameworkCode($biblionumber)