From 3f812dc4d69029c97fcd44e1ec7e1c5c1f02984a 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 Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- .../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 ab345ca3b2..973332fd29 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/holds-table.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/holds-table.inc @@ -56,6 +56,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 1965a0dd50..1a0f2cf6fa 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt @@ -314,6 +314,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 ) %]
  • @@ -326,7 +340,7 @@ [% IF bibitemloo.itemholdable %]