remove dedundant bib summary
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 23 Sep 2009 03:37:40 +0000 (03:37 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 23 Sep 2009 03:37:40 +0000 (03:37 +0000)
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
Open-ILS/xul/staff_client/server/patron/holds.js

index ae63f8c..8c2d112 100644 (file)
@@ -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();
 
index 8e54425..57b09fe 100644 (file)
@@ -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();
                                 }