[open-ils-commits] r12711 - branches/rel_1_4/Open-ILS/xul/staff_client/server/cat (dbs)

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Mar 27 19:13:35 EDT 2009


Author: dbs
Date: 2009-03-27 19:13:34 -0400 (Fri, 27 Mar 2009)
New Revision: 12711

Modified:
   branches/rel_1_4/Open-ILS/xul/staff_client/server/cat/marcedit.js
Log:
Backport r12478 from trunk - fallback to a default record type if nothing valid turns up

Modified: branches/rel_1_4/Open-ILS/xul/staff_client/server/cat/marcedit.js
===================================================================
--- branches/rel_1_4/Open-ILS/xul/staff_client/server/cat/marcedit.js	2009-03-27 23:08:10 UTC (rev 12710)
+++ branches/rel_1_4/Open-ILS/xul/staff_client/server/cat/marcedit.js	2009-03-27 23:13:34 UTC (rev 12711)
@@ -987,13 +987,17 @@
 		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;
 			}
 		}
 	} catch(E) {
 		alert('FIXME, MARC Editor, recordType: ' + E);
 	}
+
+	// in case we don't have a valid record type ... 
+	_record_type = 'BKS'; 
+	return _record_type; 
 }
 
 function toggleFFE () {



More information about the open-ils-commits mailing list