Summary: | Extend Koha::Template::Plugin::Branches for use in masthead.inc | ||
---|---|---|---|
Product: | Koha | Reporter: | David Cook <dcook> |
Component: | OPAC | Assignee: | Bugs List <koha-bugs> |
Status: | RESOLVED FIXED | QA Contact: | Testopia <testopia> |
Severity: | enhancement | ||
Priority: | P5 - low | ||
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: |
Description
David Cook
2014-07-24 05:09:04 UTC
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 %] |