[open-ils-commits] r19946 - in branches/rel_1_6/Open-ILS: web/js/ui/default/booking xul/staff_client/chrome/content/main xul/staff_client/server/patron (senator)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Apr 4 12:33:27 EDT 2011
Author: senator
Date: 2011-04-04 12:33:24 -0400 (Mon, 04 Apr 2011)
New Revision: 19946
Modified:
branches/rel_1_6/Open-ILS/web/js/ui/default/booking/capture.js
branches/rel_1_6/Open-ILS/web/js/ui/default/booking/pull_list.js
branches/rel_1_6/Open-ILS/web/js/ui/default/booking/reservation.js
branches/rel_1_6/Open-ILS/xul/staff_client/chrome/content/main/menu.js
branches/rel_1_6/Open-ILS/xul/staff_client/server/patron/display.js
Log:
Whoops: didn't mean to backport r19942 to the 1.6 branch. Not appropriate here.
Modified: branches/rel_1_6/Open-ILS/web/js/ui/default/booking/capture.js
===================================================================
--- branches/rel_1_6/Open-ILS/web/js/ui/default/booking/capture.js 2011-04-04 16:30:51 UTC (rev 19945)
+++ branches/rel_1_6/Open-ILS/web/js/ui/default/booking/capture.js 2011-04-04 16:33:24 UTC (rev 19946)
@@ -195,7 +195,7 @@
"open-ils.booking",
"open-ils.booking.resources.capture_for_reservation"
],
- [openils.User.authtoken, barcode]
+ [xulG.auth.session.key, barcode]
);
if (result && result.ilsevent !== undefined) {
Modified: branches/rel_1_6/Open-ILS/web/js/ui/default/booking/pull_list.js
===================================================================
--- branches/rel_1_6/Open-ILS/web/js/ui/default/booking/pull_list.js 2011-04-04 16:30:51 UTC (rev 19945)
+++ branches/rel_1_6/Open-ILS/web/js/ui/default/booking/pull_list.js 2011-04-04 16:33:24 UTC (rev 19946)
@@ -31,7 +31,7 @@
return fieldmapper.standardRequest(
["open-ils.booking", "open-ils.booking.reservations.get_pull_list"],
- [openils.User.authtoken, null, secs, owning_lib_selected]
+ [xulG.auth.session.key, null, secs, owning_lib_selected]
);
}
@@ -121,7 +121,7 @@
"open-ils.booking",
"open-ils.booking.asset.get_copy_fleshed_just_right"
],
- [openils.User.authtoken, barcodes]
+ [xulG.auth.session.key, barcodes]
);
if (!results) {
Modified: branches/rel_1_6/Open-ILS/web/js/ui/default/booking/reservation.js
===================================================================
--- branches/rel_1_6/Open-ILS/web/js/ui/default/booking/reservation.js 2011-04-04 16:30:51 UTC (rev 19945)
+++ branches/rel_1_6/Open-ILS/web/js/ui/default/booking/reservation.js 2011-04-04 16:33:24 UTC (rev 19946)
@@ -215,7 +215,7 @@
return fieldmapper.standardRequest(
["open-ils.booking", "open-ils.booking.resources.filtered_id_list"],
- [openils.User.authtoken, options]
+ [xulG.auth.session.key, options]
);
}
@@ -298,7 +298,7 @@
results = fieldmapper.standardRequest(
["open-ils.booking", "open-ils.booking.reservations.create"],
[
- openils.User.authtoken,
+ xulG.auth.session.key,
barcode,
reserve_timestamp_range.get_range(),
pickup_lib_selected,
@@ -413,7 +413,7 @@
function get_actor_by_barcode(barcode) {
var usr = fieldmapper.standardRequest(
["open-ils.actor", "open-ils.actor.user.fleshed.retrieve_by_barcode"],
- [openils.User.authtoken, barcode]
+ [xulG.auth.session.key, barcode]
);
if (usr == null) {
alert(localeStrings.GET_PATRON_NO_RESULT);
@@ -432,7 +432,7 @@
["open-ils.booking",
"open-ils.booking.reservations.filtered_id_list"
],
- [openils.User.authtoken, {
+ [xulG.auth.session.key, {
"user_barcode": barcode,
"fields": {
"pickup_time": null,
@@ -480,7 +480,7 @@
try {
var result = fieldmapper.standardRequest(
["open-ils.booking", "open-ils.booking.reservations.cancel"],
- [openils.User.authtoken, bresv_id_list]
+ [xulG.auth.session.key, bresv_id_list]
);
} catch (E) {
alert(localeStrings.CXL_BRESV_FAILURE2 + E);
@@ -509,7 +509,7 @@
var r = fieldmapper.standardRequest(
["open-ils.booking",
"open-ils.booking.resources.create_from_copies"],
- [openils.User.authtoken,
+ [xulG.auth.session.key,
copy_list.map(function(o) { return o.id(); })]
);
Modified: branches/rel_1_6/Open-ILS/xul/staff_client/chrome/content/main/menu.js
===================================================================
--- branches/rel_1_6/Open-ILS/xul/staff_client/chrome/content/main/menu.js 2011-04-04 16:30:51 UTC (rev 19945)
+++ branches/rel_1_6/Open-ILS/xul/staff_client/chrome/content/main/menu.js 2011-04-04 16:33:24 UTC (rev 19946)
@@ -663,45 +663,75 @@
'cmd_booking_reservation' : [
['oncommand'],
function() {
- open_eg_web_page(
+ obj.set_tab(
"/eg/booking/reservation",
- "menu.cmd_booking_reservation.tab"
+ {
+ "tab_name": offlineStrings.getString(
+ "menu.cmd_booking_reservation.tab"
+ ),
+ "browser": false
+ },
+ xulG
);
}
],
'cmd_booking_pull_list' : [
['oncommand'],
function() {
- open_eg_web_page(
+ obj.set_tab(
"/eg/booking/pull_list",
- "menu.cmd_booking_pull_list.tab"
+ {
+ "tab_name": offlineStrings.getString(
+ "menu.cmd_booking_pull_list.tab"
+ ),
+ "browser": false
+ },
+ xulG
);
}
],
'cmd_booking_capture' : [
['oncommand'],
function() {
- open_eg_web_page(
+ obj.set_tab(
"/eg/booking/capture",
- "menu.cmd_booking_capture.tab"
+ {
+ "tab_name": offlineStrings.getString(
+ "menu.cmd_booking_capture.tab"
+ ),
+ "browser": false
+ },
+ xulG
);
}
],
'cmd_booking_reservation_pickup' : [
['oncommand'],
function() {
- open_eg_web_page(
+ obj.set_tab(
"/eg/booking/pickup",
- "menu.cmd_booking_reservation_pickup.tab"
+ {
+ "tab_name": offlineStrings.getString(
+ "menu.cmd_booking_reservation_pickup.tab"
+ ),
+ "browser": false
+ },
+ xulG
);
}
],
'cmd_booking_reservation_return' : [
['oncommand'],
function() {
- open_eg_web_page(
+ obj.set_tab(
"/eg/booking/return",
- "menu.cmd_booking_reservation_return.tab"
+ {
+ "tab_name": offlineStrings.getString(
+ "menu.cmd_booking_reservation_return.tab"
+ ),
+ "browser": false
+ },
+ xulG
);
}
],
Modified: branches/rel_1_6/Open-ILS/xul/staff_client/server/patron/display.js
===================================================================
--- branches/rel_1_6/Open-ILS/xul/staff_client/server/patron/display.js 2011-04-04 16:30:51 UTC (rev 19945)
+++ branches/rel_1_6/Open-ILS/xul/staff_client/server/patron/display.js 2011-04-04 16:33:24 UTC (rev 19946)
@@ -1,6 +1,4 @@
dump('entering patron/display.js\n');
-dojo.require("openils.User");
-dojo.require("openils.XUL");
function $(id) { return document.getElementById(id); }
@@ -358,51 +356,63 @@
'cmd_patron_reservation' : [
['command'],
function(ev) {
- openils.XUL.newTabEasy(
+ if (xulG.auth == undefined) {
+ xulG.auth = {"session": {"key": ses()}};
+ }
+ xulG.bresv_interface_opts = {
+ "patron_barcode": obj.patron.card().barcode()
+ };
+ xulG.new_tab(
"/eg/booking/reservation",
- $("offlineStrings").getString(
- "menu.cmd_booking_reservation.tab"
- ), {
- "bresv_interface_opts": {
- "patron_barcode":
- obj.patron.card().barcode()
- }
+ {
+ "tab_name": $("offlineStrings").getString(
+ "menu.cmd_booking_reservation.tab"
+ ),
+ "browser": false
},
- true
+ xulG
);
}
],
'cmd_patron_reservation_pickup' : [
['command'],
function(ev) {
- openils.XUL.newTabEasy(
+ if (xulG.auth == undefined) {
+ xulG.auth = {"session": {"key": ses()}};
+ }
+ xulG.bresv_interface_opts = {
+ "patron_barcode": obj.patron.card().barcode()
+ };
+ xulG.new_tab(
"/eg/booking/pickup",
- $("offlineStrings").getString(
- "menu.cmd_booking_reservation_pickup.tab"
- ), {
- "bresv_interface_opts": {
- "patron_barcode":
- obj.patron.card().barcode()
- }
+ {
+ "tab_name": $("offlineStrings").getString(
+ "menu.cmd_booking_reservation_pickup.tab"
+ ),
+ "browser": false
},
- true
+ xulG
);
}
],
'cmd_patron_reservation_return' : [
['command'],
function(ev) {
- openils.XUL.newTabEasy(
+ if (xulG.auth == undefined) {
+ xulG.auth = {"session": {"key": ses()}};
+ }
+ xulG.bresv_interface_opts = {
+ "patron_barcode": obj.patron.card().barcode()
+ };
+ xulG.new_tab(
"/eg/booking/return",
- $("offlineStrings").getString(
- "menu.cmd_booking_reservation_return.tab"
- ), {
- "bresv_interface_opts": {
- "patron_barcode":
- obj.patron.card().barcode()
- }
+ {
+ "tab_name": $("offlineStrings").getString(
+ "menu.cmd_booking_reservation_return.tab"
+ ),
+ "browser": false
},
- true
+ xulG
);
}
],
More information about the open-ils-commits
mailing list