Bug 20875: (bug 16735 follow-up) Fix library list for OpacAddMastheadLibraryPulldown
This patch fixes a regression introduced by
commit 2059f7d801
Bug 16735: Migrate library search groups into the new hierarchical groups
It re-added code that was removed by bug 15758 (use of var BranchesLoop).
Test plan:
- Create library search groups
- Turn OpacAddMastheadLibraryPulldown on
- At the OPAC confirm that the search box with libraries and library
groups is displayed and works correctly.
- Remove the library search group
- The dropdown list should not have the optgroup tags
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
parent
421746dd63
commit
f8ea20344b
|
|
@ -224,9 +224,12 @@
|
|||
|
||||
[% IF LibrarySearchGroups %]<optgroup label="Libraries">[% END %]
|
||||
|
||||
[% FOREACH BranchesLoo IN BranchesLoop %]
|
||||
[% IF ( BranchesLoo.selected ) %]<option selected="selected" value="branch:[% BranchesLoo.value %]">[% BranchesLoo.branchname %]</option>
|
||||
[% ELSE %]<option value="branch:[% BranchesLoo.value %]">[% BranchesLoo.branchname %]</option>[% END %]
|
||||
[% FOREACH library IN Branches.all( selected => opac_name ) %]
|
||||
[% IF library.selected %]
|
||||
<option selected="selected" value="branch:[% library.branchcode %]">[% library.branchname %]</option>
|
||||
[% ELSE %]
|
||||
<option value="branch:[% library.branchcode %]">[% library.branchname %]</option>
|
||||
[% END %]
|
||||
[% END %]
|
||||
|
||||
[% IF LibrarySearchGroups %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue