From 7d9c7e89bc65671ad884cea9b5fd140a7b7b0bbf Mon Sep 17 00:00:00 2001 From: Dan Wells Date: Thu, 2 Jun 2011 15:44:36 -0400 Subject: [PATCH] Fix false MFHD editing cues (LP #791974) The in-DB serial holdings use the same general display code as the MFHD records, but were falsely triggering MFHD administration widgets when in fact no MFHD record exists. These holdings were already being marked, so this fix honors that mark. Signed-off-by: Dan Wells Signed-off-by: Dan Scott --- Open-ILS/web/opac/skin/default/js/rdetail.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/web/opac/skin/default/js/rdetail.js b/Open-ILS/web/opac/skin/default/js/rdetail.js index b9d1cd6d2e..5b5004a927 100644 --- a/Open-ILS/web/opac/skin/default/js/rdetail.js +++ b/Open-ILS/web/opac/skin/default/js/rdetail.js @@ -429,7 +429,7 @@ function _holdingsDrawMFHD(holdings, entryNum) { if (hm.length > 0) { _holdingsDrawMFHDEntry(entryNum, opac_strings.MISSING_VOLUMES, hm); } if (hinc.length > 0) { _holdingsDrawMFHDEntry(entryNum, opac_strings.INCOMPLETE_VOLUMES, hinc); } - if (isXUL()) { + if (isXUL() && holdings.sre_id() != -1) { // -1 indicates in-DB only holdings, so no button or menu entries for MFHD mfhdDetails.push({ 'id' : holdings.sre_id(), 'label' : hloc, 'entryNum' : entryNum, 'owning_lib' : holdings.owning_lib() }); dojo.require('openils.Event'); dojo.require('openils.PermaCrud'); -- 2.11.0