<!-- AVAILABILITY LIMITS -->
<fieldset><legend>Location and availability: </legend>
<p>
- <label>Library</label><select name="limit" id="branchloop">
- <option value="">All Locations</option>
+ <label for="available-items">Only items currently available</label><input type="checkbox" id="available-items" name="limit" value="datedue:0000-00-00" /></p>
+ <p>
+ <label>Individual Libraries </label><select name="limit" id="branchloop" onchange='if(this.value != ""){document.getElementById("categoryloop").disabled=true;} else {document.getElementById("categoryloop").disabled=false;}'>
+ <option value="">All Libraries</option>
<!-- TMPL_LOOP NAME="branchloop" -->
<option value="<!-- TMPL_VAR NAME='value' -->"><!-- TMPL_VAR NAME='branchname' --></option>
<!-- /TMPL_LOOP -->
</select>
+ <!-- <input type='hidden' name='limit' value='branch: MAIN' /> -->
</p>
- <p>
- <label for="available-items">Only items currently available</label><input type="checkbox" id="available-items" name="limit" value="datedue:0000-00-00" /></p>
+ <!-- TMPL_IF NAME="searchdomainloop" -->
+ <p>OR<p> <!-- should addjs to grey out group pulldown if a library is selected. -->
+ <p>
+ <label>Groups of Libraries</label><select name="multibranchlimit" id="categoryloop">
+ <option value=""> -- none -- </option>
+ <!-- TMPL_LOOP NAME="searchdomainloop" -->
+ <option value="<!-- TMPL_VAR NAME='categorycode' -->"><!-- TMPL_VAR NAME='categoryname' --></option>
+ <!-- /TMPL_LOOP -->
+ </select>
+ </p>
+ <!-- /TMPL_IF -->
</fieldset>
<!-- /AVAILABILITY LIMITS -->