Bugzilla – Attachment 161833 Details for
Bug 35538
List of libraries on OPAC self registration form should sort by branchname rather than branchcode
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35538: Sort OPAC self registration library list by library name
Bug-35538-Sort-OPAC-self-registration-library-list.patch (text/plain), 1.60 KB, created by
Emily Lamancusa (emlam)
on 2024-02-07 17:19:08 UTC
(
hide
)
Description:
Bug 35538: Sort OPAC self registration library list by library name
Filename:
MIME Type:
Creator:
Emily Lamancusa (emlam)
Created:
2024-02-07 17:19:08 UTC
Size:
1.60 KB
patch
obsolete
>From 531d9c0b35196b18eabd553318b21ecd05262d99 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Mon, 18 Dec 2023 19:05:10 +0000 >Subject: [PATCH] Bug 35538: Sort OPAC self registration library list by > library name > >This patch modifies opac-memberentry.pl so that the list of libraries is >sorted by library name instead of library code. > >To test, apply the patch and restart services. > >- If using the default testing data you'll have to go to Administration > -> Libraries and edit one or more libraries so that the library name > is alphabetically different than the library code. e.g. Centerville -> > Zanzibar. >- Go the OPAC and click "Create an account" (requires the > PatronSelfRegistration system preference). >- Under "Home library," the dropdown of libraries should be ordered by > library name. > >Signed-off-by: David Nind <david@davidnind.com> >Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov> >--- > opac/opac-memberentry.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/opac/opac-memberentry.pl b/opac/opac-memberentry.pl >index 51f03fca19..f4c5998051 100755 >--- a/opac/opac-memberentry.pl >+++ b/opac/opac-memberentry.pl >@@ -90,7 +90,7 @@ if ( $action eq 'create' || $action eq 'new' ) { > $params = { branchcode => { -in => \@PatronSelfRegistrationLibraryList } } > if @PatronSelfRegistrationLibraryList; > } >-my $libraries = Koha::Libraries->search($params); >+my $libraries = Koha::Libraries->search( $params, { order_by => ['branchname'] } ); > > my ( $min, $max ) = Koha::Policy::Patrons::Cardnumber->get_valid_length(); > if ( defined $min ) { >-- >2.34.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 35538
:
159979
|
159986
| 161833