Bug 24860: Add hold's item group to holds table on circulation.pl and moremember.pl

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>

Signed-off-by: Rebecca Coert <rcoert@arlingtonva.us>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Kyle M Hall 2020-03-26 09:24:49 -04:00 committed by Tomas Cohen Arazi
parent ef2977fd51
commit d7537b40ab
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
2 changed files with 10 additions and 0 deletions

View File

@ -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 <strong>%s</strong> item").format( oObj.item_group_description );
}
if ( oObj.barcode ) {
data += "<em>";
if ( oObj.found == "W" ) {

View File

@ -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 );
}