[Koha-bugs] [Bug 12645] Extend Koha::Template::Plugin::Branches for use in masthead.inc
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Sat Jul 15 22:38:32 CEST 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12645
Katrin Fischer <katrin.fischer at bsz-bw.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #1 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
It appears this has been fixed, using the TT plugin for building the list:
[% IF ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 ) %]
<div class="col-sm col-md-3 col-lg-2 order-3 order-sm-4">
<select name="limit" id="select_library" class="form-control">
<option value="">All libraries</option>
[% IF LibrarySearchGroups %]<optgroup label="Libraries">[% END %]
[% FOREACH library IN Branches.all( selected => opac_name ) %]
[% NEXT UNLESS library.public %]
[% IF library.selected %]
<option selected="selected" value="branch:[%
library.branchcode | html %]">[% library.branchname | html %]</option>
[% ELSE %]
<option value="branch:[% library.branchcode | html %]">[%
library.branchname | html %]</option>
[% END %]
[% END %]
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list