From 9abbdf7065ea67cfc54cd15231a2c8138dcdfb71 Mon Sep 17 00:00:00 2001 From: Petro Vashchuk Date: Thu, 25 Feb 2021 12:28:17 +0200 Subject: [PATCH] Bug 27790: separate earliest hold date into two different columns Currently "Earliest hold date" and "Pickup place" are displayed in one single column, but to make filtering possible it is necessary to split those fields into separate ones. This patch does exactly that and adds sorting list drop down feature to the "Pickup place" column. To reproduce: 1) Make a few holds and head over to "Circulations->Holds to pull". 2) Ensure that pickup place and earliest hold date are in the same column "Earliest hold date" 3) Apply the patch. 4) Check "Circulations->Holds to pull list" again, this time booking date and pickup place should have their own columns. Ensure that filtering by "pickup location" works fine. Signed-off-by: Owen Leonard Signed-off-by: Jonathan Druart --- .../prog/en/modules/circ/pendingreserves.tt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt index 0f02419d6b..0d2380e953 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt @@ -79,6 +79,7 @@ Available locations Earliest hold date Reserve notes + Pickup location Action @@ -179,6 +180,9 @@ [% hold.reservedate | $KohaDates %] in [% Branches.GetName ( hold.branchcode ) | html %] [% hold.reservenotes | html %] + + [% Branches.GetName ( hold.branchcode ) | html %] +
@@ -239,6 +243,7 @@ + @@ -347,6 +352,12 @@ holdst.fnFilter( $(this).val(), 11 ); }); }); + $("#pickup-location").each( function () { + $(this).html( createSelect( holdst.fnGetColumnData(13) ) ); + $('select', this).change( function () { + holdst.fnFilter( $(this).val(), 13 ); + }); + }); }); [% END %] -- 2.39.5