Bugzilla – Attachment 129699 Details for
Bug 29922
Group of libraries are now displayed in alphabetical order
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Bug 29922 - Group of libraries are now displayed in alphabetical order
Bug-29922---Group-of-libraries-are-now-displayed-i.patch (text/plain), 1.57 KB, created by
The Minh Luong
on 2022-01-21 14:43:46 UTC
(
hide
)
Description:
Bug 29922 - Group of libraries are now displayed in alphabetical order
Filename:
MIME Type:
Creator:
The Minh Luong
Created:
2022-01-21 14:43:46 UTC
Size:
1.57 KB
patch
obsolete
>From a551583476d4d0058008305801c6d8098329cd9c Mon Sep 17 00:00:00 2001 >From: The Minh Luong <the-minh.luong@inlibro.com> >Date: Fri, 21 Jan 2022 08:45:23 -0500 >Subject: [PATCH] Bug 29922 - Group of libraries are now displayed in > alphabetical order > >This patch modifies the OPAC's "Group of libraries" field in Advanced search tab. When the select button under the text "Groups of libraries" is clicked, the library groups are now displayed in alphabetical orders. > >To test, start by creating multiple libraries (At least 5). Then, create library groups (At least 5) in non-alphabetical order. (Make sure "Use for OPAC search groups" is checked when creating a library group). > >- Example: CGroup,DGroup,AGroup,EGroup,BGroup (These are the Titles) > >From there, follow these steps: > >1 - Go in OPAC, then Advanced search, then > >2 - Under "Groups of librairies" , click the select button. > >3 - Notice that the library groups are not in alphabetical order. > >4 - Apply the patch. > >5 - Notice that the library groups are in alphabetical order. > >https://bugs.koha-community.org/show_bug.cgi?id=29922 >--- > opac/opac-search.pl | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/opac/opac-search.pl b/opac/opac-search.pl >index 8d5fe07bc0..9d62c7282b 100755 >--- a/opac/opac-search.pl >+++ b/opac/opac-search.pl >@@ -217,6 +217,7 @@ if ($cgi->cookie("search_path_code")) { > } > > my @search_groups = Koha::Library::Groups->get_search_groups(); >+@search_groups = sort { $a->title cmp $b->title } @search_groups; > $template->param( search_groups => \@search_groups ); > > # load the language limits (for search) >-- >2.25.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 Raw
Actions:
View
Attachments on
bug 29922
:
129698
|
129699
|
129737
|
129738
|
130767
|
131343
|
131444
|
136612
|
137045
|
137063
|
137064
|
137325
|
137326
|
137405
|
137406