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>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 5998fe93f5
)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
fa4ce83a9d
commit
e37c7d27e1
1 changed files with 1 additions and 1 deletions
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in a new issue