|
Lines 289-305
Link Here
|
| 289 |
[%# FIXME Should not we filter the libraries displayed? %] |
289 |
[%# FIXME Should not we filter the libraries displayed? %] |
| 290 |
[% PROCESS options_for_libraries prefix => "branch:" libraries => Branches.all( unfiltered => 1, do_not_select_my_library => 1 ) %] |
290 |
[% PROCESS options_for_libraries prefix => "branch:" libraries => Branches.all( unfiltered => 1, do_not_select_my_library => 1 ) %] |
| 291 |
</select></p> |
291 |
</select></p> |
| 292 |
<!-- <input type="hidden" name="limit" value="branch: MAIN" /> --> |
|
|
| 293 |
[% IF search_groups %] |
292 |
[% IF search_groups %] |
| 294 |
<p>OR</p> <!-- should addjs to grey out group pulldown if a library is selected. --> |
293 |
<p>OR</p> |
| 295 |
|
294 |
|
| 296 |
<p> |
295 |
<p> |
| 297 |
<label for="categoryloop">Groups of libraries: </label> |
296 |
<label for="categoryloop">Groups of libraries: </label> |
| 298 |
<select name="multibranchlimit" id="categoryloop"> |
297 |
<select name="limit" id="categoryloop"> |
| 299 |
<option value=""> -- none -- </option> |
298 |
<option value=""> -- none -- </option> |
| 300 |
[% FOREACH sg IN search_groups %] |
299 |
[% FOREACH sg IN search_groups %] |
| 301 |
[% UNLESS sg.branchcode %] |
300 |
[% UNLESS sg.branchcode %] |
| 302 |
<option value="[% sg.id | html %]">[% sg.title | html %]</option> |
301 |
<option value="multibranchlimit:[% sg.id | html %]">[% sg.title | html %]</option> |
| 303 |
[% END %] |
302 |
[% END %] |
| 304 |
[% END %] |
303 |
[% END %] |
| 305 |
</select> |
304 |
</select> |
|
Lines 338-343
Link Here
|
| 338 |
dad.appendChild(line.cloneNode(true)); |
337 |
dad.appendChild(line.cloneNode(true)); |
| 339 |
line.removeChild(ButtonPlus); |
338 |
line.removeChild(ButtonPlus); |
| 340 |
} |
339 |
} |
|
|
340 |
|
| 341 |
var Sticky; |
341 |
var Sticky; |
| 342 |
$(document).ready(function() { |
342 |
$(document).ready(function() { |
| 343 |
$("input[name=q]:eq(0)").focus(); |
343 |
$("input[name=q]:eq(0)").focus(); |
|
Lines 347-359
Link Here
|
| 347 |
stickTo: ".main", |
347 |
stickTo: ".main", |
| 348 |
stickyClass: "floating" |
348 |
stickyClass: "floating" |
| 349 |
}); |
349 |
}); |
| 350 |
$("#branchloop").on("change",function(){ |
350 |
[% IF search_groups %] |
| 351 |
if( this.value != ""){ |
351 |
function branch_limit() { |
| 352 |
document.getElementById("categoryloop").disabled=true; |
352 |
if( $("#branchloop").val() != "" ){ |
| 353 |
} else { |
353 |
$("#categoryloop").val("").prop('disabled',true); |
| 354 |
document.getElementById("categoryloop").disabled=false; |
354 |
} else { |
|
|
355 |
$("#categoryloop").prop('disabled',false); |
| 356 |
} |
| 357 |
if ( $("#categoryloop").val() != "" ){ |
| 358 |
$("#branchloop").val("").prop('disabled',true); |
| 359 |
} else { |
| 360 |
$("#branchloop").prop('disabled',false); |
| 361 |
} |
| 355 |
} |
362 |
} |
| 356 |
}); |
363 |
branch_limit(); |
|
|
364 |
$("#branchloop,#categoryloop").on("change",function(){ |
| 365 |
branch_limit(); |
| 366 |
}); |
| 367 |
[% END %] |
| 357 |
|
368 |
|
| 358 |
[% IF searchid %] |
369 |
[% IF searchid %] |
| 359 |
browser = KOHA.browser('[% searchid | html %]'); |
370 |
browser = KOHA.browser('[% searchid | html %]'); |