From 935be575de91cecbf79abaf8d3ad10c278412289 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 --- .../intranet-tmpl/prog/en/modules/circ/pendingreserves.tt | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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 5909cfdbac..e8f60429ec 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt @@ -64,6 +64,7 @@ Available item types Available locations Earliest hold date + Pickup location Action @@ -157,7 +158,10 @@ - [% hold.reservedate | $KohaDates %] in [% Branches.GetName ( hold.branchcode ) | html %] + [% hold.reservedate | $KohaDates %] + + + [% Branches.GetName ( hold.branchcode ) | html %]
@@ -219,6 +223,7 @@ + @@ -326,6 +331,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.11.0