<input type="text" title="Type search term" id = "transl1" name="q" class="left" style="width: 35%; font-size: 111%;"/><div id="translControl"></div>
[% END %]
[% IF ( OpacAddMastheadLibraryPulldown ) %]
- <select name="limit" id="select_library" class="left">
+ <select name="branch_group_limit" id="select_library" class="left">
<option value="">All libraries</option>
- [% 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 %]
+ <optgroup label="Libraries">
+ [% 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 %]
+ [% END %]
+ </optgroup>
+ [% IF BranchCategoriesLoop %]
+ <optgroup label="Groups">
+ [% FOREACH bc IN BranchCategoriesLoop %]
+ [% IF ( bc.selected ) %]
+ <option selected="selected" value="multibranchlimit-[% bc.categorycode %]">[% bc.categoryname %]</option>
+ [% ELSE %]
+ <option value="multibranchlimit-[% bc.categorycode %]">[% bc.categoryname %]</option>
+ [% END %]
+ [% END %]
+ </optgroup>
[% END %]
</select>
[% ELSE %]