[open-ils-commits] r14059 - trunk/Open-ILS/xul/staff_client/server/cat (phasefx)

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Sep 18 16:26:59 EDT 2009


Author: phasefx
Date: 2009-09-18 16:26:54 -0400 (Fri, 18 Sep 2009)
New Revision: 14059

Modified:
   trunk/Open-ILS/xul/staff_client/server/cat/util.js
Log:
just in case code ever tries to get the OPAC to show the magic PreCat record, don't let it

Modified: trunk/Open-ILS/xul/staff_client/server/cat/util.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/util.js	2009-09-18 19:37:33 UTC (rev 14058)
+++ trunk/Open-ILS/xul/staff_client/server/cat/util.js	2009-09-18 20:26:54 UTC (rev 14059)
@@ -186,6 +186,9 @@
 				alert($("catStrings").getFormattedString('staff.cat.util.show_in_opac.unknown_barcode', [selection_list[i].barcode]));
 				continue;
 			}
+            if (doc_id == -1 ) {
+                continue; /* pre-cat */
+            }
 			if (typeof seen[doc_id] != 'undefined') {
 				continue;
 			}



More information about the open-ils-commits mailing list