Bugzilla – Attachment 123464 Details for
Bug 28554
In itemsearch sort filters by description
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28554: In Koha::AuthorisedValues sort by description
Bug-28554-In-KohaAuthorisedValues-sort-by-descript.patch (text/plain), 1.70 KB, created by
David Nind
on 2021-08-04 21:13:14 UTC
(
hide
)
Description:
Bug 28554: In Koha::AuthorisedValues sort by description
Filename:
MIME Type:
Creator:
David Nind
Created:
2021-08-04 21:13:14 UTC
Size:
1.70 KB
patch
obsolete
>From d9aecbeeb3c67e983e5fdb4e97493e3b8e90d1c2 Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Fri, 11 Jun 2021 13:35:41 +0200 >Subject: [PATCH] Bug 28554: In Koha::AuthorisedValues sort by description > >In itemsearch form, there are several filters build with authorized values. >There values should be sorted by description. > >Test plan : >1) Create several values and descriptions in authorized values LOC >2) Go to itemsearch >3) See filter by location sorts on description and not on value > >Seems change in search_by_marc_field can not be tested in interface > >Signed-off-by: David Nind <david@davidnind.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> > >Signed-off-by: David Nind <david@davidnind.com> >--- > Koha/AuthorisedValues.pm | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > >diff --git a/Koha/AuthorisedValues.pm b/Koha/AuthorisedValues.pm >index b89ed9be4a..628ddc331d 100644 >--- a/Koha/AuthorisedValues.pm >+++ b/Koha/AuthorisedValues.pm >@@ -51,7 +51,10 @@ sub search_by_marc_field { > ( defined $tagfield ? ( 'marc_subfield_structures.tagfield' => $tagfield ) : () ), > ( defined $tagsubfield ? ( 'marc_subfield_structures.tagsubfield' => $tagsubfield ) : () ), > }, >- { join => { category => 'marc_subfield_structures' } } >+ { >+ join => { category => 'marc_subfield_structures' }, >+ order_by => [ 'category', 'lib', 'lib_opac' ], >+ } > ); > } > >@@ -70,6 +73,7 @@ sub search_by_koha_field { > }, > { join => { category => 'marc_subfield_structures' }, > distinct => 1, >+ order_by => [ 'category', 'lib', 'lib_opac' ], > } > ); > } >-- >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 28554
:
121820
|
121821
|
121891
|
121892
|
121935
|
121936
|
123451
|
123464
|
123465
|
123466
|
124209
|
124210
|
124211