<!ENTITY opac.advanced.quick.tcn "TCN"> <!-- title control number -->
<!ENTITY opac.advanced.quick.barcode "Item Barcode">
<!ENTITY opac.advanced.quick.cn "Call Number">
-<!ENTITY opac.advanced.copy_loc_filter "Filter by Shelving Location">
+<!ENTITY opac.advanced.copy_loc_filter "Shelving Location">
<!-- ==========================================================
MARC expert search
if(isTrue(findOrgType(findOrgUnit(org).ou_type()).can_have_vols())) {
unHideMe($('adv_copy_location_filter_row'));
- if(!$('adv_copy_location_filter_div').className.match(/hide_me/))
- advLoadCopyLocations(org);
+ advLoadCopyLocations(org);
} else {
hideMe($('adv_copy_location_filter_row'));
}
var itemtypes = advGetVisSelectorVals('adv_global_item_type');
var audiences = advGetVisSelectorVals('adv_global_audience');
var biblevels = advGetVisSelectorVals('adv_global_bib_level');
+ var locations = advGetVisSelectorVals('adv_copy_location_filter_select');
var languages = getSelectedList($('adv_global_lang')) + '';
var limit2avail = $('opac.result.limit2avail').checked ? 1 : ''
args[PARAM_LITFORM] = litforms;
args[PARAM_AUDIENCE] = audiences;
args[PARAM_LANGUAGE] = languages;
+ args[PARAM_COPYLOCS] = locations;
//args[PARAM_SEARCHES] = js2JSON(searches); /* break these out */
args[PARAM_DEPTH] = depthSelGetDepth();
args[PARAM_LOCATION] = depthSelGetNewLoc();
// retrieves the shelving locations
var advLocationsLoaded = false;
function advLoadCopyLocations(org) {
- if(advLocationsLoaded) {
- removeChildren($('adv_copy_location_filter_select'));
- hideMe($('adv_copy_location_filter_div'));
- advLocationsLoaded = false;
- return;
- }
- if(org == null) {
- if(advSelectedOrg == null)
- org = getLocation();
- else
- org = advSelectedOrg;
- }
- unHideMe($('adv_copy_location_filter_div'));
+ if(org == null)
+ org = advSelectedOrg;
var req = new Request(FETCH_COPY_LOCATIONS, org);
req.callback(advShowCopyLocations);
req.send();
</td>
</tr>
+ <!-- copy location selector -->
+ <tr id='adv_copy_location_filter_row' class='hide_me'>
+ <td align='right'>&opac.advanced.copy_loc_filter;</td>
+ <td align='left' id='adv_copy_location_filter_td'>
+ <select size='3' id='adv_copy_location_filter_select' multiple='multiple'>
+ </select>
+ </td>
+ </tr>
</tbody>
</table>
</td>
</table>
</td>
</tr>
- <tr id='adv_copy_location_filter_row' class='hide_me'>
- <td id='adv_copy_location_filter_td' colspan='2'>
- <a class='classic_link' href='javascript:advLoadCopyLocations();'>&opac.advanced.copy_loc_filter;</a>
- <div id='adv_copy_location_filter_div' class='hide_me'>
- <select id='adv_copy_location_filter_select' multiple='multiple'>
- </select>
- </div>
- </td>
- </tr>
</table>
</td>