Bugzilla – Attachment 117159 Details for
Bug 27733
Sort pickup locations by library name instead of branchcode
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27733: Add "_sort_by" paramter to pickup_locations API query
Bug-27733-Add-sortby-paramter-to-pickuplocations-A.patch (text/plain), 1.74 KB, created by
Martin Renvoize (ashimema)
on 2021-02-22 15:59:53 UTC
(
hide
)
Description:
Bug 27733: Add "_sort_by" paramter to pickup_locations API query
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2021-02-22 15:59:53 UTC
Size:
1.74 KB
patch
obsolete
>From 2d406572ba0f6881804b78a2cd84fe4f1b158d5a Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >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 <barbara.johnson@bedfordtx.gov> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 27733
:
117087
|
117093
| 117159