From d52933411f3316bac879c2d59b008e68b6a6338f Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Mon, 1 Dec 2025 15:05:17 +0100 Subject: [PATCH] Bug 41335: Adjust toggling hold options, preselect lone item Content-Type: text/plain; charset=utf-8 By default hold options are collapsed. In the following cases they are expanded: - one of the hold dates is made mandatory via OPACMandatoryHoldDates - an item level hold is forced for this biblio (at least one item is controlled by a circ rule where opacitemholds == F [Forced] ) When DisplayMultiItemHolds is enabled, item selection for specific items is done via checkboxes; no item is preselected unless there is only one. Otherwise an item is selected via radio buttons. The first one is preselected. Test plan: Verify in steps 2 to 4 that the above rules are respected. [1] Enable DisplayMultiItemHolds and OPACAllowHoldDateInFuture. [2] Place hold on biblio with only one item where record and item level are allowed. [3] Place hold on biblio with multiple items where item level is forced. [4] Place hold on biblio with multiple items where item level is not forced. [5] Toggle OPACMandatoryHoldDates (between no hold dates and another value) and repeat 2-4 [6] Disable DisplayMultiItemHolds and repeat 2-5 Signed-off-by: Marcel de Rooy --- .../bootstrap/en/modules/opac-reserve.tt | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) 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 3c3c64d686..3d74110dcb 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt @@ -418,7 +418,7 @@