From: phasefx Date: Fri, 18 Sep 2009 20:26:54 +0000 (+0000) Subject: just in case code ever tries to get the OPAC to show the magic PreCat record, don... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=9587d10a3576f73f30571a79a8263c8c657d295b;p=contrib%2FConifer.git just in case code ever tries to get the OPAC to show the magic PreCat record, don't let it git-svn-id: svn://svn.open-ils.org/ILS/trunk@14059 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/cat/util.js b/Open-ILS/xul/staff_client/server/cat/util.js index 0a73e17f82..8a1b977b95 100644 --- a/Open-ILS/xul/staff_client/server/cat/util.js +++ b/Open-ILS/xul/staff_client/server/cat/util.js @@ -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; }