From 4bd878997c3c28e2d9a5c4d633fc9ab25e98efde 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. --- .../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 aff10f9f33..dab9757844 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt @@ -344,7 +344,7 @@ [% IF bibitemloo.itemholdable %]
- +
@@ -378,7 +378,7 @@ [% ELSE %] [% END %] -
Select a specific item:
+ [% ELSE %] [% SET unholdable_items = 1 %] @@ -493,21 +493,10 @@ [% INCLUDE 'opac-bottom.inc' %] [% BLOCK jsinclude %] [% INCLUDE 'calendar.inc' %] +[% INCLUDE 'datatables.inc' %] [% END %] -- 2.20.1