From cb3c6c4b637ee5c0bfb506aa2ec9ab66448e9acb Mon Sep 17 00:00:00 2001 From: Kyle Hall Date: Thu, 9 Jun 2022 14:06:45 -0400 Subject: [PATCH] Bug 24860: Add ability to select an item group when placing a hold - OPAC Signed-off-by: Andrew Fuerste-Henry Signed-off-by: Rebecca Coert --- .../bootstrap/en/includes/holds-table.inc | 3 +++ .../bootstrap/en/modules/opac-reserve.tt | 24 +++++++++++++++++-- opac/opac-reserve.pl | 5 ++++ 3 files changed, 30 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/holds-table.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/holds-table.inc index 2263737ec8..7ba9f7a7f3 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/holds-table.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/holds-table.inc @@ -58,6 +58,9 @@ [% END %] [% HOLD.biblio.author | html %] + [% IF HOLD.item_group_id %] +

Next available item from item group: [% HOLD.item_group.description | html %]

+ [% END %] [% IF HOLD.item_level_hold %]

Item on hold: [% HOLD.item.barcode | html %]

[% END %] diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt index 4e8b2d1ba2..0e894de614 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt @@ -306,6 +306,20 @@ [% END %] + [% UNLESS bibitemloo.forced_hold_level && ( bibitemloo.forced_hold_level == 'item' || bibitemloo.forced_hold_level == 'record' ) %] + [% IF bibitemloo.object.item_groups %] +
  • + + +
  • + [% END %] + [% END %] + [% IF ( OpacHoldNotes ) %]
  • @@ -321,7 +335,7 @@ [% IF bibitemloo.itemholdable %]