[open-ils-commits] r19076 - branches/rel_2_0/Open-ILS/xul/staff_client/server/cat (dbs)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Dec 28 23:24:43 EST 2010
Author: dbs
Date: 2010-12-28 23:24:40 -0500 (Tue, 28 Dec 2010)
New Revision: 19076
Modified:
branches/rel_2_0/Open-ILS/xul/staff_client/server/cat/marc_new.xul
branches/rel_2_0/Open-ILS/xul/staff_client/server/cat/z3950.js
Log:
Invoke MARC editor with the appropriate control number identifier
The control number identifier is most critical for the creation
of authority records; given that the callers have the required
context, have them pass in the control number identifier to the
MARC editor. Edit MARC record, new MARC record, import MARC record;
those have to be the big ones, right?
Modified: branches/rel_2_0/Open-ILS/xul/staff_client/server/cat/marc_new.xul
===================================================================
--- branches/rel_2_0/Open-ILS/xul/staff_client/server/cat/marc_new.xul 2010-12-29 04:16:24 UTC (rev 19075)
+++ branches/rel_2_0/Open-ILS/xul/staff_client/server/cat/marc_new.xul 2010-12-29 04:24:40 UTC (rev 19076)
@@ -2,7 +2,7 @@
<!-- Application: Evergreen Staff Client -->
<!-- Screen: Example Template for remote xul -->
<!--
- vim:noet:sw=4:ts=4:
+ vim:et:sw=4:ts=4:
-->
<!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
@@ -60,6 +60,7 @@
JSAN.use('util.network'); g.network = new util.network();
JSAN.use('util.widgets');
JSAN.use('util.functional');
+ JSAN.use('OpenILS.data'); g.data = new OpenILS.data(); g.data.init({'via':'stash'});
var templates = g.network.simple_request('MARC_XML_TEMPLATE_LIST',[]);
if (typeof templates.ilsevent != 'undefined') throw(templates);
@@ -90,6 +91,7 @@
var url = urls.XUL_MARC_EDIT;
var params = {
'record' : { 'marc' : marc },
+ 'marc_control_number_identifier': g.data.hash.aous['cat.marc_control_number_identifier'] || 'Set cat.marc_control_number_identifier in Library Settings',
'fast_add_item' : function(doc_id,cn_label,cp_barcode) {
try {
JSAN.use('cat.util'); return cat.util.fast_item_add(doc_id,cn_label,cp_barcode);
Modified: branches/rel_2_0/Open-ILS/xul/staff_client/server/cat/z3950.js
===================================================================
--- branches/rel_2_0/Open-ILS/xul/staff_client/server/cat/z3950.js 2010-12-29 04:16:24 UTC (rev 19075)
+++ branches/rel_2_0/Open-ILS/xul/staff_client/server/cat/z3950.js 2010-12-29 04:24:40 UTC (rev 19076)
@@ -709,6 +709,7 @@
xulG.url_prefix(urls.XUL_MARC_EDIT),
{ 'tab_name' : 'MARC Editor' },
{
+ 'marc_control_number_identifier': obj.data.hash.aous['cat.marc_control_number_identifier'] || 'Set cat.marc_control_number_identifier in Library Settings',
'record' : { 'marc' : my_marcxml, "rtype": "bre" },
'fast_add_item' : function(doc_id,cn_label,cp_barcode) {
try {
More information about the open-ils-commits
mailing list