@@ -, +, @@ from tables --- koha-tmpl/intranet-tmpl/prog/en/js/holds.js | 4 ++++ reserve/request.pl | 2 +- svc/holds | 7 +++++++ 3 files changed, 12 insertions(+), 1 deletion(-) --- a/koha-tmpl/intranet-tmpl/prog/en/js/holds.js +++ a/koha-tmpl/intranet-tmpl/prog/en/js/holds.js @@ -62,6 +62,10 @@ $(document).ready(function() { data += "

"; } + if ( oObj.itemtype_limit ) { + data += _(" Next available %s item").format( oObj.itemtype_limit ); + } + if ( oObj.barcode ) { data += ""; if ( oObj.found == "W" ) { --- a/reserve/request.pl +++ a/reserve/request.pl @@ -567,7 +567,7 @@ foreach my $biblionumber (@biblionumbers) { $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() ) ]; --- a/svc/holds +++ a/svc/holds @@ -73,6 +73,12 @@ while ( my $h = $holds_rs->next() ) { 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, @@ -89,6 +95,7 @@ while ( my $h = $holds_rs->next() ) { 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) --