Bug 40075: Only show pickup_location libraries in OPAC

And list alphabetically on branchname

Signed-off by: Chris Rowlands <chris.rowlands6@nhs.net>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 9657c19608)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
Pedro Amorim 2025-06-05 08:26:20 +00:00 committed by Paul Derscheid
parent 946a0625b9
commit d165bfd019
No known key found for this signature in database
GPG Key ID: C25F9FD44CED595B
1 changed files with 6 additions and 3 deletions

View File

@ -191,9 +191,12 @@ if ( $op eq 'list' ) {
} else {
$template->param(
types => [ "Book", "Article", "Journal" ],
branches => Koha::Libraries->search->unblessed,
whole => $backend_result,
request => $request
branches => Koha::Libraries->search(
{ pickup_location => 1 },
{ order_by => ['branchname'] }
),
whole => $backend_result,
request => $request
);
if ( $backend_result->{stage} eq 'commit' ) {