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:
parent
ef2977fd51
commit
d7537b40ab
|
|
@ -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" ) {
|
||||
|
|
|
|||
|
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue