From c09fc1432f541c387775880cf86218d3989b31fe 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 5daded0745..ebc297d416 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 a43b084032..b93d24ea5c 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt @@ -313,6 +313,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 ) %]
  • @@ -325,7 +339,7 @@ [% IF bibitemloo.itemholdable %]