[open-ils-commits] [GIT] Evergreen ILS branch rel_2_1 updated. 218a25fc234cce7e3f8f982291438c65b595c2c2

Evergreen Git git at git.evergreen-ils.org
Tue Jun 7 11:20:05 EDT 2011


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, rel_2_1 has been updated
       via  218a25fc234cce7e3f8f982291438c65b595c2c2 (commit)
      from  cd35c83a52ecba29fb5e5c58adddbd31683bd958 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 218a25fc234cce7e3f8f982291438c65b595c2c2
Author: Dan Wells <dbw2 at calvin.edu>
Date:   Thu Jun 2 15:44:36 2011 -0400

    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 <dbw2 at calvin.edu>
    Signed-off-by: Dan Scott <dan at coffeecode.net>

diff --git a/Open-ILS/web/opac/skin/default/js/rdetail.js b/Open-ILS/web/opac/skin/default/js/rdetail.js
index b9d1cd6..5b5004a 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');

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/web/opac/skin/default/js/rdetail.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list