From f45d083f9aafb512ea615e99e0ac4228f0872077 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 19 Feb 2021 11:46:16 +0000 Subject: [PATCH] Bug 27731: Remove hold class from individual OPAC search result hold link This patch removes the "hold" class from the "Place hold" link associated with each search result in the OPAC. The class isn't required for any functionality or style and it unintentionally triggers the "hold multiple" JS function which requires that a checkbox be checked. To test, apply the patch and log into the OPAC as a user who can place holds. - Perform a catalog search which will return multiple results. - Click the "Place hold" link under any search result. - You should be taken to the hold confirmation page. - On the search results page, confirm that the "Place hold" link at the top of the search results still works to place multiple holds at once. Signed-off-by: Phil Ringnalda Signed-off-by: Martin Renvoize Signed-off-by: Jonathan Druart --- .../opac-tmpl/bootstrap/en/includes/title-actions-menu.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/title-actions-menu.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/title-actions-menu.inc index 0b58145c49..55ff553370 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/title-actions-menu.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/title-actions-menu.inc @@ -4,14 +4,14 @@ [% IF Koha.Preference( 'opacuserlogin' ) == 1 %] [% IF ( shelf AND op == 'view' ) # Lists view has more granular checking of hold availability %] [% IF ( items.allow_onshelf_holds ) %] - Place hold + Place hold [% ELSE %] [% IF ( items.itemsissued ) %] - Place hold + Place hold [% END %] [% END %] [% ELSE %] - Place hold + Place hold [% END %] [% END # / IF opacuserlogin %] [% END # / UNLESS items.norequests %] -- 2.39.5