From 2d406572ba0f6881804b78a2cd84fe4f1b158d5a Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 19 Feb 2021 14:42:49 +0000 Subject: [PATCH] Bug 27733: Add "_sort_by" paramter to pickup_locations API query On the place hold page in the staff interface, add a "_sort_by" parameter with the "name" value so that the list of libraries is returned in name order. To test, apply the patch and locate a title in the staff interface which has holds on it. - View the holds information for that title. - In the table of exising holds, expand the "Pickup library" dropdown for any of the entries. The list of libraries should be in order by library name. Signed-off-by: Barbara Johnson Signed-off-by: Martin Renvoize --- koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt index 09e8e66188..ee38b49b00 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt @@ -1167,7 +1167,8 @@ data: function (params) { var search_term = (params.term === undefined) ? '' : params.term; var query = { - "q": JSON.stringify({"name":{"-like":search_term+'%'}}) + "q": JSON.stringify({"name":{"-like":search_term+'%'}}), + "_order_by": "name" }; return query; }, -- 2.20.1