var a = xulG.url_prefix( urls.XUL_MARC_EDIT );
var b = {};
var c = {
+ 'marc_control_number_identifier' : g.data.hash.aous['cat.marc_control_number_identifier'] || 'Set cat.marc_control_number_identifier in Library Settings',
'record' : { 'url' : '/opac/extras/supercat/retrieve/marcxml/record/' + docid, "id": docid, "rtype": "bre" },
'fast_add_item' : function(doc_id,cn_label,cp_barcode) {
try {
window.xulG = {};
window.xulG.record = {};
window.xulG.save = {};
+ window.xulG.marc_control_number_identifier = 'CONS';
window.xulG.save.label = $('catStrings').getString('staff.cat.marcedit.save.label');
window.xulG.save.func = function (r) { alert(r); }
[source_f, ses()]
);
if (new_auth && new_auth.id()) {
- var id_sf = <subfield code="0" xmlns="http://www.loc.gov/MARC21/slim">(CONS){new_auth.id()}</subfield>;
+ var id_sf = <subfield code="0" xmlns="http://www.loc.gov/MARC21/slim">({xulG.marc_control_number_identifier}){new_auth.id()}</subfield>;
sf.parent().appendChild(id_sf);
var new_sf = marcSubfield(id_sf);
target.parentNode.appendChild(new_sf);
if (!new_rec) {
return '';
}
- var id_sf = <subfield code="0" xmlns="http://www.loc.gov/MARC21/slim">(CONS){new_rec.id()}</subfield>;
+ var id_sf = <subfield code="0" xmlns="http://www.loc.gov/MARC21/slim">({xulG.marc_control_number_identifier}){new_rec.id()}</subfield>;
sf.parent().appendChild(id_sf);
var new_sf = marcSubfield(id_sf);
target.parentNode.appendChild(new_sf);