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);
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);
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 {