Lines 77-114
Link Here
|
77 |
<input type="text" title="Type search term" id = "transl1" name="q" class="left" style="width: 35%; font-size: 111%;"/><div id="translControl"></div> |
77 |
<input type="text" title="Type search term" id = "transl1" name="q" class="left" style="width: 35%; font-size: 111%;"/><div id="translControl"></div> |
78 |
[% END %] |
78 |
[% END %] |
79 |
[% IF ( OpacAddMastheadLibraryPulldown ) %] |
79 |
[% IF ( OpacAddMastheadLibraryPulldown ) %] |
80 |
<select name="limit" id="select_library" class="left" onchange="select_library_changed();"> |
80 |
<select name="branch_group_limit" id="select_library" class="left"> |
81 |
<option value="">All libraries</option> |
81 |
<option value="">All libraries</option> |
82 |
[% FOREACH BranchesLoo IN BranchesLoop %] |
82 |
<optgroup label="Libraries"> |
83 |
[% IF ( BranchesLoo.selected ) %]<option selected="selected" value="branch:[% BranchesLoo.value %]">[% BranchesLoo.branchname %]</option> |
83 |
[% FOREACH BranchesLoo IN BranchesLoop %] |
84 |
[% ELSE %]<option value="branch:[% BranchesLoo.value %]">[% BranchesLoo.branchname %]</option>[% END %] |
84 |
[% IF ( BranchesLoo.selected ) %]<option selected="selected" value="branch:[% BranchesLoo.value %]">[% BranchesLoo.branchname %]</option> |
85 |
[% END %] |
85 |
[% ELSE %]<option value="branch:[% BranchesLoo.value %]">[% BranchesLoo.branchname %]</option>[% END %] |
|
|
86 |
[% END %] |
87 |
</optgroup> |
86 |
[% IF BranchCategoriesLoop %] |
88 |
[% IF BranchCategoriesLoop %] |
87 |
<option value="__GROUPS__">-- GROUPS --</option> |
89 |
<optgroup label="Groups"> |
88 |
[% FOREACH bc IN BranchCategoriesLoop %] |
90 |
[% FOREACH bc IN BranchCategoriesLoop %] |
89 |
[% IF ( bc.selected ) %] |
91 |
[% IF ( bc.selected ) %] |
90 |
<option selected="selected" value="[% bc.categorycode %]">[% bc.categoryname %]</option> |
92 |
<option selected="selected" value="multibranchlimit-[% bc.categorycode %]">[% bc.categoryname %]</option> |
91 |
[% ELSE %] |
93 |
[% ELSE %] |
92 |
<option value="[% bc.categorycode %]">[% bc.categoryname %]</option> |
94 |
<option value="multibranchlimit-[% bc.categorycode %]">[% bc.categoryname %]</option> |
|
|
95 |
[% END %] |
93 |
[% END %] |
96 |
[% END %] |
94 |
[% END %] |
97 |
</optgroup> |
95 |
[% END %] |
98 |
[% END %] |
96 |
</select> |
99 |
</select> |
97 |
[% IF BranchCategoriesLoop %] |
|
|
98 |
<script type="text/javascript"> |
99 |
$(document).ready(function() { |
100 |
$("#select_library option[value='__GROUPS__']").attr("disabled","disabled"); |
101 |
}); |
102 |
|
103 |
function select_library_changed() { |
104 |
if ( $("#select_library option:selected").index() > $("#select_library option[value='__GROUPS__']").index() ) { |
105 |
$("#select_library").attr("name", "multibranchlimit"); |
106 |
} else { |
107 |
$("#select_library").attr("name", "limit"); |
108 |
} |
109 |
}; |
110 |
</script> |
111 |
[% END %] |
112 |
[% ELSE %] |
100 |
[% ELSE %] |
113 |
[% IF ( opac_limit_override ) %] |
101 |
[% IF ( opac_limit_override ) %] |
114 |
[% IF ( opac_search_limit ) %] |
102 |
[% IF ( opac_search_limit ) %] |