@@ -, +, @@
circulation.pl and moremember.pl
---
koha-tmpl/intranet-tmpl/prog/js/holds.js | 4 ++++
svc/holds | 6 ++++++
2 files changed, 10 insertions(+)
--- a/koha-tmpl/intranet-tmpl/prog/js/holds.js
+++ a/koha-tmpl/intranet-tmpl/prog/js/holds.js
@@ -278,6 +278,10 @@ $(document).ready(function() {
data += __("Next available %s item").format(oObj.itemtype_limit);
}
+ if ( oObj.item_group_id ) {
+ data += _("Next available item group %s item").format( oObj.item_group_description );
+ }
+
if ( oObj.barcode ) {
data += "";
if ( oObj.found == "W" ) {
--- a/svc/holds
+++ a/svc/holds
@@ -68,6 +68,7 @@ my $holds_rs = Koha::Holds->search(
my @holds;
while ( my $h = $holds_rs->next() ) {
my $item = $h->item();
+ my $item_group = $h->item_group();
my $biblionumber = $h->biblio()->biblionumber();
@@ -153,6 +154,11 @@ while ( my $h = $holds_rs->next() ) {
}
}
+ if ($item_group) {
+ $hold->{item_group_id} = $item_group->id;
+ $hold->{item_group_description} = $item_group->description;
+ }
+
push( @holds, $hold );
}
--