1 dojo.requireLocalization("openils.booking", "pickup_and_return");
2 var localeStrings = dojo.i18n.getLocalization(
3 "openils.booking", "pickup_and_return"
7 function react_to_pass_in(opts) {
8 if (opts && opts.patron_barcode) {
9 p.populate({"patron": opts.patron_barcode});
12 document.getElementById("contains_barcode_control")
14 document.getElementById("patron_barcode").value = opts.patron_barcode;
15 p._extra_resetting = function() {
17 document.getElementById("contains_barcode_control")
27 "patron": document.getElementById("patron_info")
28 }, document.getElementById("patron_barcode"));
29 init_auto_l10n(document.getElementById("auto_l10n_start_here"));
34 if (typeof xulG != 'undefined' && typeof xulG.bresv_interface_opts != 'undefined') {
35 opts = xulG.bresv_interface_opts;
39 var uri = location.href;
40 var query = uri.substring(uri.indexOf("?") + 1, uri.length);
41 var queryObject = dojo.queryToObject(query);
42 if (typeof queryObject['patron_barcode'] != 'undefined') {
43 opts.patron_barcode = queryObject['patron_barcode'];
45 react_to_pass_in(opts);