[open-ils-commits] r12478 - trunk/Open-ILS/xul/staff_client/server/cat (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Mar 9 21:14:52 EDT 2009
Author: miker
Date: 2009-03-09 21:14:51 -0400 (Mon, 09 Mar 2009)
New Revision: 12478
Modified:
trunk/Open-ILS/xul/staff_client/server/cat/marcedit.js
Log:
default to BKS if no valid record type can be gleaned from the fixed fields
Modified: trunk/Open-ILS/xul/staff_client/server/cat/marcedit.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/marcedit.js 2009-03-09 21:29:04 UTC (rev 12477)
+++ trunk/Open-ILS/xul/staff_client/server/cat/marcedit.js 2009-03-10 01:14:51 UTC (rev 12478)
@@ -81,10 +81,10 @@
function my_init() {
try {
- netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
- if (typeof JSAN == 'undefined') { throw( $("commonStrings").getString('common.jsan.missing') ); }
- JSAN.errorLevel = "die"; // none, warn, or die
- JSAN.addRepository('/xul/server/');
+ netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
+ if (typeof JSAN == 'undefined') { throw( $("commonStrings").getString('common.jsan.missing') ); }
+ JSAN.errorLevel = "die"; // none, warn, or die
+ JSAN.addRepository('/xul/server/');
// Fake xulG for standalone...
try {
@@ -1003,10 +1003,15 @@
for (var t in rec_type) {
if (_t.match(rec_type[t].Type) && _b.match(rec_type[t].BLvl)) {
document.getElementById('recordTypeLabel').value = t;
- _record_type = t;
+ _record_type = t;
return t;
}
}
+
+ // in case we don't have a valid record type ...
+ _record_type = 'BKS';
+ return _record_type;
+
} catch(E) {
alert('FIXME, MARC Editor, recordType: ' + E);
}
More information about the open-ils-commits
mailing list