From 5fd6c54ba602b9c5ccaf6498281adf573b8c3600 Mon Sep 17 00:00:00 2001 From: dbs Date: Mon, 15 Jun 2009 03:28:56 +0000 Subject: [PATCH] Make it possible to edit MFHD records that have gone bad. Previously, invalid MFHD records would be hidden from the staff client because they had no holdings to display; now we check for isXUL() and display a default location of "MFHD" inside the staff client if things are so messed up that even the location isn't visible. git-svn-id: svn://svn.open-ils.org/ILS/trunk@13383 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/opac/skin/default/js/rdetail.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Open-ILS/web/opac/skin/default/js/rdetail.js b/Open-ILS/web/opac/skin/default/js/rdetail.js index 7f9c07df21..5c81e45f30 100644 --- a/Open-ILS/web/opac/skin/default/js/rdetail.js +++ b/Open-ILS/web/opac/skin/default/js/rdetail.js @@ -246,16 +246,17 @@ function _holdingsDrawMFHD(holdings, entryNum) { var ho = holdings.online(); var hm = holdings.missing(); var hinc = holdings.incomplete(); + var hloc = holdings.location() || 'MFHD'; if ( hh.length == 0 && hch.length == 0 && hs.length == 0 && hcs.length == 0 && hi.length == 0 && hci.length == 0 && - ho.length == 0 && hm.length == 0 && hinc.length == 0 + ho.length == 0 && hm.length == 0 && hinc.length == 0 && !isXUL() ) { return null; } dojo.place("
" + - dojo.string.substitute(opac_strings.HOLDINGS_TABLE_CAPTION, [holdings.location()]) + + dojo.string.substitute(opac_strings.HOLDINGS_TABLE_CAPTION, [hloc]) + "
", "rdetail_details_table", "after" ); -- 2.43.2