"open-ils.booking",
"open-ils.booking.resources.capture_for_reservation"
],
- [xulG.auth.session.key, barcode]
+ [openils.User.authtoken, barcode]
);
if (result && result.ilsevent !== undefined) {
return fieldmapper.standardRequest(
["open-ils.booking", "open-ils.booking.reservations.get_pull_list"],
- [xulG.auth.session.key, null, secs, owning_lib_selected]
+ [openils.User.authtoken, null, secs, owning_lib_selected]
);
}
"open-ils.booking",
"open-ils.booking.asset.get_copy_fleshed_just_right"
],
- [xulG.auth.session.key, barcodes]
+ [openils.User.authtoken, barcodes]
);
if (!results) {
return fieldmapper.standardRequest(
["open-ils.booking", "open-ils.booking.resources.filtered_id_list"],
- [xulG.auth.session.key, options]
+ [openils.User.authtoken, options]
);
}
results = fieldmapper.standardRequest(
["open-ils.booking", "open-ils.booking.reservations.create"],
[
- xulG.auth.session.key,
+ openils.User.authtoken,
barcode,
reserve_timestamp_range.get_range(),
pickup_lib_selected,
function get_actor_by_barcode(barcode) {
var usr = fieldmapper.standardRequest(
["open-ils.actor", "open-ils.actor.user.fleshed.retrieve_by_barcode"],
- [xulG.auth.session.key, barcode]
+ [openils.User.authtoken, barcode]
);
if (usr == null) {
alert(localeStrings.GET_PATRON_NO_RESULT);
["open-ils.booking",
"open-ils.booking.reservations.filtered_id_list"
],
- [xulG.auth.session.key, {
+ [openils.User.authtoken, {
"user_barcode": barcode,
"fields": {
"pickup_time": null,
try {
var result = fieldmapper.standardRequest(
["open-ils.booking", "open-ils.booking.reservations.cancel"],
- [xulG.auth.session.key, bresv_id_list]
+ [openils.User.authtoken, bresv_id_list]
);
} catch (E) {
alert(localeStrings.CXL_BRESV_FAILURE2 + E);
var r = fieldmapper.standardRequest(
["open-ils.booking",
"open-ils.booking.resources.create_from_copies"],
- [xulG.auth.session.key,
+ [openils.User.authtoken,
copy_list.map(function(o) { return o.id(); })]
);
'cmd_booking_reservation' : [
['oncommand'],
function() {
- obj.set_tab(
+ open_eg_web_page(
"/eg/booking/reservation",
- {
- "tab_name": offlineStrings.getString(
- "menu.cmd_booking_reservation.tab"
- ),
- "browser": false
- },
- xulG
+ "menu.cmd_booking_reservation.tab"
);
}
],
'cmd_booking_pull_list' : [
['oncommand'],
function() {
- obj.set_tab(
+ open_eg_web_page(
"/eg/booking/pull_list",
- {
- "tab_name": offlineStrings.getString(
- "menu.cmd_booking_pull_list.tab"
- ),
- "browser": false
- },
- xulG
+ "menu.cmd_booking_pull_list.tab"
);
}
],
'cmd_booking_capture' : [
['oncommand'],
function() {
- obj.set_tab(
+ open_eg_web_page(
"/eg/booking/capture",
- {
- "tab_name": offlineStrings.getString(
- "menu.cmd_booking_capture.tab"
- ),
- "browser": false
- },
- xulG
+ "menu.cmd_booking_capture.tab"
);
}
],
'cmd_booking_reservation_pickup' : [
['oncommand'],
function() {
- obj.set_tab(
+ open_eg_web_page(
"/eg/booking/pickup",
- {
- "tab_name": offlineStrings.getString(
- "menu.cmd_booking_reservation_pickup.tab"
- ),
- "browser": false
- },
- xulG
+ "menu.cmd_booking_reservation_pickup.tab"
);
}
],
'cmd_booking_reservation_return' : [
['oncommand'],
function() {
- obj.set_tab(
+ open_eg_web_page(
"/eg/booking/return",
- {
- "tab_name": offlineStrings.getString(
- "menu.cmd_booking_reservation_return.tab"
- ),
- "browser": false
- },
- xulG
+ "menu.cmd_booking_reservation_return.tab"
);
}
],
dump('entering patron/display.js\n');
+dojo.require("openils.User");
+dojo.require("openils.XUL");
function $(id) { return document.getElementById(id); }
'cmd_patron_reservation' : [
['command'],
function(ev) {
- if (xulG.auth == undefined) {
- xulG.auth = {"session": {"key": ses()}};
- }
- xulG.bresv_interface_opts = {
- "patron_barcode": obj.patron.card().barcode()
- };
- xulG.new_tab(
+ openils.XUL.newTabEasy(
"/eg/booking/reservation",
- {
- "tab_name": $("offlineStrings").getString(
- "menu.cmd_booking_reservation.tab"
- ),
- "browser": false
+ $("offlineStrings").getString(
+ "menu.cmd_booking_reservation.tab"
+ ), {
+ "bresv_interface_opts": {
+ "patron_barcode":
+ obj.patron.card().barcode()
+ }
},
- xulG
+ true
);
}
],
'cmd_patron_reservation_pickup' : [
['command'],
function(ev) {
- if (xulG.auth == undefined) {
- xulG.auth = {"session": {"key": ses()}};
- }
- xulG.bresv_interface_opts = {
- "patron_barcode": obj.patron.card().barcode()
- };
- xulG.new_tab(
+ openils.XUL.newTabEasy(
"/eg/booking/pickup",
- {
- "tab_name": $("offlineStrings").getString(
- "menu.cmd_booking_reservation_pickup.tab"
- ),
- "browser": false
+ $("offlineStrings").getString(
+ "menu.cmd_booking_reservation_pickup.tab"
+ ), {
+ "bresv_interface_opts": {
+ "patron_barcode":
+ obj.patron.card().barcode()
+ }
},
- xulG
+ true
);
}
],
'cmd_patron_reservation_return' : [
['command'],
function(ev) {
- if (xulG.auth == undefined) {
- xulG.auth = {"session": {"key": ses()}};
- }
- xulG.bresv_interface_opts = {
- "patron_barcode": obj.patron.card().barcode()
- };
- xulG.new_tab(
+ openils.XUL.newTabEasy(
"/eg/booking/return",
- {
- "tab_name": $("offlineStrings").getString(
- "menu.cmd_booking_reservation_return.tab"
- ),
- "browser": false
+ $("offlineStrings").getString(
+ "menu.cmd_booking_reservation_return.tab"
+ ), {
+ "bresv_interface_opts": {
+ "patron_barcode":
+ obj.patron.card().barcode()
+ }
},
- xulG
+ true
);
}
],