just in case code ever tries to get the OPAC to show the magic PreCat record, don...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 18 Sep 2009 20:26:54 +0000 (20:26 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 18 Sep 2009 20:26:54 +0000 (20:26 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@14059 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/cat/util.js

index 0a73e17..8a1b977 100644 (file)
@@ -186,6 +186,9 @@ cat.util.show_in_opac = function(selection_list) {
                                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;
                        }