From d5ab294e70a6ba33eea4193969ed552ea7ddc3b1 Mon Sep 17 00:00:00 2001 From: phasefx Date: Wed, 23 Sep 2009 03:37:40 +0000 Subject: [PATCH] remove dedundant bib summary git-svn-id: svn://svn.open-ils.org/ILS/trunk@14112 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/patron/hold_details.js | 14 ++++++++++---- Open-ILS/xul/staff_client/server/patron/holds.js | 1 + 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/patron/hold_details.js b/Open-ILS/xul/staff_client/server/patron/hold_details.js index ae63f8c477..8c2d112e28 100644 --- a/Open-ILS/xul/staff_client/server/patron/hold_details.js +++ b/Open-ILS/xul/staff_client/server/patron/hold_details.js @@ -41,10 +41,16 @@ function fetch_and_render_all() { a_list_of_one(); var x = document.getElementById('bib_brief_box'); while (x.firstChild) x.removeChild(x.lastChild); - var bib_brief = document.createElement('iframe'); x.appendChild(bib_brief); - bib_brief.setAttribute('flex',1); - bib_brief.setAttribute('src',urls.XUL_BIB_BRIEF); - get_contentWindow(bib_brief).xulG = { 'docid' : g.blob.mvr.doc_id() }; + if (xulG.bib_rendered_elsewhere) { + // No bib summary + x.hidden = true; + } else { + x.hidden = false; + var bib_brief = document.createElement('iframe'); x.appendChild(bib_brief); + bib_brief.setAttribute('flex',1); + bib_brief.setAttribute('src',urls.XUL_BIB_BRIEF); + get_contentWindow(bib_brief).xulG = { 'docid' : g.blob.mvr.doc_id() }; + } retrieve_notes(); render_notes(); diff --git a/Open-ILS/xul/staff_client/server/patron/holds.js b/Open-ILS/xul/staff_client/server/patron/holds.js index 8e5442506a..57b09fe200 100644 --- a/Open-ILS/xul/staff_client/server/patron/holds.js +++ b/Open-ILS/xul/staff_client/server/patron/holds.js @@ -213,6 +213,7 @@ patron.holds.prototype = { xulG.ahr_id = obj.retrieve_ids[0].id; xulG.blob = obj.holds_map[ xulG.ahr_id ]; xulG.patron_rendered_elsewhere = (obj.hold_interface_type == 'patron'); + xulG.bib_rendered_elsewhere = (obj.hold_interface_type == 'record'); f.xulG = xulG; f.fetch_and_render_all(); } -- 2.11.0