Give cataloguers a chance to recover from errors, or add holdings to an empty MFHD...
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 16 Jul 2009 05:53:11 +0000 (05:53 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 16 Jul 2009 05:53:11 +0000 (05:53 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@13611 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/skin/default/js/rdetail.js

index c2db9d8..1c5546e 100644 (file)
@@ -253,7 +253,12 @@ function _holdingsDrawMFHD(holdings, entryNum) {
                hcs.length == 0 && hi.length == 0 && hci.length == 0 &&
                ho.length == 0 && hm.length == 0 && hinc.length == 0 && !isXUL()
        ) {
-               return null;
+               /* 
+                * If we have a record, but nothing to show for it, then the
+                * record is likely empty or corrupt. This gives cataloguers a
+                 * chance to add holdings or correct the record
+                */
+               hh = 'PLACEHOLDER';
        }
 
        dojo.place("<table style='width: 100%;'><caption id='mfhdHoldingsCaption' class='rdetail_header color_1'>" +