From 4616a7147ca4b8c639ad865683b0d7f0762b89b8 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 24 Feb 2022 16:43:14 +0000 Subject: [PATCH] Bug 29713: Make item table when placing an item level hold sortable This patch modifies the holds page in the OPAC so that users selecting a specific item to place a hold on can sort the table of items. This patch also removes some obsolete JavaScript left over from before Flatpickr. To test, apply the patch and go to Administration -> Circulation and fine rules to make sure at least one item type in your system has "OPAC item level holds" set to "allow." - Log in to the OPAC as a user who can place holds. - Search the catalog for items which will accept item-level holds. - Place a hold on one of the results, and click the "Show more options" link on the holds page. - Check the "specific item" radio button. - A table of items should be displayed. Confirm that the table is sortable. - The first entry in the table should be selected. - Perform the same test when placing a hold on multiple titles. Confirm that each table of items is sortable. Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart Signed-off-by: Fridolin Somers --- .../bootstrap/en/modules/opac-reserve.tt | 32 +++++++------------ 1 file changed, 11 insertions(+), 21 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 896cf88a21..45e7b2041c 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt @@ -346,7 +346,7 @@ [% IF bibitemloo.itemholdable %]
- +
@@ -380,7 +380,7 @@ [% ELSE %] [% END %] -
Select a specific item:
+ [% ELSE %] [% SET unholdable_items = 1 %] @@ -495,21 +495,10 @@ [% INCLUDE 'opac-bottom.inc' %] [% BLOCK jsinclude %] [% INCLUDE 'calendar.inc' %] +[% INCLUDE 'datatables.inc' %] [% END %] -- 2.39.5