[open-ils-commits] r14112 - trunk/Open-ILS/xul/staff_client/server/patron (phasefx)

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Sep 22 23:37:43 EDT 2009


Author: phasefx
Date: 2009-09-22 23:37:40 -0400 (Tue, 22 Sep 2009)
New Revision: 14112

Modified:
   trunk/Open-ILS/xul/staff_client/server/patron/hold_details.js
   trunk/Open-ILS/xul/staff_client/server/patron/holds.js
Log:
remove dedundant bib summary

Modified: trunk/Open-ILS/xul/staff_client/server/patron/hold_details.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/hold_details.js	2009-09-23 03:28:17 UTC (rev 14111)
+++ trunk/Open-ILS/xul/staff_client/server/patron/hold_details.js	2009-09-23 03:37:40 UTC (rev 14112)
@@ -41,10 +41,16 @@
         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();
 

Modified: trunk/Open-ILS/xul/staff_client/server/patron/holds.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/holds.js	2009-09-23 03:28:17 UTC (rev 14111)
+++ trunk/Open-ILS/xul/staff_client/server/patron/holds.js	2009-09-23 03:37:40 UTC (rev 14112)
@@ -213,6 +213,7 @@
                                     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();
                                 }



More information about the open-ils-commits mailing list