}
function staff_hold_usr_prepop() {
if (xulG && xulG.patron_barcode) {
+ var sel = document.getElementById("pickup_lib");
+ for (var i = 0; i < sel.options.length; i++) {
+ if (sel.options[i].value == xulG.patron_home_ou) {
+ sel.selectedIndex = i;
+ break;
+ }
+ }
document.getElementById("hold_usr_input").value = xulG.patron_barcode;
document.getElementById("hold_usr_input").disabled = false;
document.getElementById("hold_usr_is_requestor_not").checked = true;
[%
- BLOCK build_org_selector_options; %]
- <option value='[% walker.id %]' [% IF walker.id == value %] selected='selected' [% END %]>
+ BLOCK build_org_selector_options;
+ disabled = '';
+ IF can_have_vols_only;
+ UNLESS walker.ou_type.can_have_vols == 't';
+ disabled = 'disabled="disabled"';
+ END;
+ END;
+%]
+ <option value='[% walker.id %]' [% IF walker.id == value %] selected='selected' [% END %][% disabled %]>
[%
pad = walker.ou_type.depth * 2;
FOR idx IN [0..pad]; ' '; END;
[% END %]
<p>
[% | l(attrs.title, ctx.get_aou(ctx.default_pickup_lib).name) %]
- You would like to place a hold on <strong><q>[_1]</q></strong> to be picked up at [_2].
- If this is correct, press <strong>SUBMIT</strong>.
+ You would like to place a hold on <strong><q>[_1]</q></strong>.<br />
+ If this is correct, confirm your pickup location and click <strong>SUBMIT</strong>.
[% END %]
</p>
<p>
- [% l('If you would like to change the library pick up location, select from the location dropdown menu.') %]
- <br class="clear-both" />
+ [% l('Pickup location:') %]
[% PROCESS "default/opac/parts/org_selector.tt2";
- PROCESS build_org_selector name='pickup_lib' value=ctx.default_pickup_lib %]
+ PROCESS build_org_selector name='pickup_lib' value=ctx.default_pickup_lib id='pickup_lib' can_have_vols_only=1 %]
</p>
<p>
[% |l %]If you use the Traveling Library Center (TLC) and ABC Express
obj.error.standard_unexpected_error_alert('holds.js, opac_hold_placed(): ',E);
}
},
- 'patron_barcode' : obj.patron_barcode
+ 'patron_barcode' : obj.patron_barcode,
+ 'patron_home_ou': patron.util.retrieve_au_via_id(ses(),obj.patron_id).home_ou()
},
'url_prefix' : xulG.url_prefix,
'url' : xulG.url_prefix( urls.browser )