From c8f77c597ddc78b9bd23d6b60bd95be55abe110c Mon Sep 17 00:00:00 2001 From: phasefx Date: Tue, 17 Jan 2006 02:46:25 +0000 Subject: [PATCH] toward copy editor git-svn-id: svn://svn.open-ils.org/ILS/trunk@2722 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../content/evergreen/legacy/_browse.xul | 11 +- .../content/evergreen/main/constants.js | 2 + .../staff_client/server/cat/copy_editor.xul | 103 ++++++++++++++++++ 3 files changed, 113 insertions(+), 3 deletions(-) create mode 100644 Open-ILS/xul/staff_client/server/cat/copy_editor.xul diff --git a/Open-ILS/xul/staff_client/chrome/content/evergreen/legacy/_browse.xul b/Open-ILS/xul/staff_client/chrome/content/evergreen/legacy/_browse.xul index 8381103e47..2826fed6d3 100644 --- a/Open-ILS/xul/staff_client/chrome/content/evergreen/legacy/_browse.xul +++ b/Open-ILS/xul/staff_client/chrome/content/evergreen/legacy/_browse.xul @@ -52,7 +52,8 @@ mw.G = {}; mw.G.main_test_variable = 'Hello World'; g.cgi = new CGI(); - mw.G.auth_ses = [ g.cgi.param('session') ]; + g.session = g.cgi.param('session'); + mw.G.auth_ses = [ g.session ]; mw.sdump = function(a,b) { g.error.sdump(a,b); } find_this_id = g.cgi.param('docid'); @@ -329,8 +330,12 @@ } ); - - alert('spawn copy editor with barcodes = ' + js2JSON(list)); + JSAN.use('util.window'); var win = new util.window(); + win.open( + urls.XUL_COPY_EDITOR+'?session='+window.escape(g.session)+'©_ids='+window.escape(js2JSON(list)), + 'Copies', + 'chrome,modal' + ); } function spawn_volume_editor() { diff --git a/Open-ILS/xul/staff_client/chrome/content/evergreen/main/constants.js b/Open-ILS/xul/staff_client/chrome/content/evergreen/main/constants.js index dba6bcae2d..82a27514fd 100644 --- a/Open-ILS/xul/staff_client/chrome/content/evergreen/main/constants.js +++ b/Open-ILS/xul/staff_client/chrome/content/evergreen/main/constants.js @@ -9,6 +9,7 @@ var api = { 'CHECKOUT_PERMIT_VIA_BARCODE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.permit_checkout' }, 'CHECKOUT_VIA_BARCODE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.checkout.barcode' }, 'FM_ACP_RETRIEVE' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.asset.copy.fleshed.retrieve' }, + 'FM_ACP_FLESHED_BATCH_RETRIEVE' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.asset.copy.fleshed.batch.retrieve' }, 'FM_ACPL_RETRIEVE' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.config.copy_location.retrieve.all' }, 'FM_ACTSC_RETRIEVE_VIA_AOU' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.stat_cat.actor.retrieve.all' }, 'FM_AHR_RETRIEVE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.holds.retrieve' }, @@ -48,6 +49,7 @@ var urls = { 'XUL_CHECKIN' : '/xul/server/circ/checkin.xul', 'XUL_CHECKOUT' : '/xul/server/circ/checkout.xul', 'XUL_CAT_DETAILS' : 'chrome://evergreen/content/cat/details.xul', + 'XUL_COPY_EDITOR' : '/xul/server/cat/copy_editor.xul', 'XUL_COPY_VOLUME_BROWSE' : 'chrome://evergreen/content/legacy/_browse.xul', 'XUL_DEBUG_CONSOLE' : 'chrome://global/content/console.xul', 'XUL_DEBUG_FIELDMAPPER' : '/xul/server/util/fm_view.xul', diff --git a/Open-ILS/xul/staff_client/server/cat/copy_editor.xul b/Open-ILS/xul/staff_client/server/cat/copy_editor.xul new file mode 100644 index 0000000000..8d3e070265 --- /dev/null +++ b/Open-ILS/xul/staff_client/server/cat/copy_editor.xul @@ -0,0 +1,103 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- 2.43.2