[open-ils-commits] r17149 - trunk/Open-ILS/web/templates/default/acq/lineitem (erickson)

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Aug 10 10:45:23 EDT 2010


Author: erickson
Date: 2010-08-10 10:45:21 -0400 (Tue, 10 Aug 2010)
New Revision: 17149

Modified:
   trunk/Open-ILS/web/templates/default/acq/lineitem/related.tt2
Log:
similar to findbib, replace dojox.data.dom.textContent (which fails for unknown reasons) with node.textContent for bibtemplate rendering in related lineitems page

Modified: trunk/Open-ILS/web/templates/default/acq/lineitem/related.tt2
===================================================================
--- trunk/Open-ILS/web/templates/default/acq/lineitem/related.tt2	2010-08-10 13:13:23 UTC (rev 17148)
+++ trunk/Open-ILS/web/templates/default/acq/lineitem/related.tt2	2010-08-10 14:45:21 UTC (rev 17149)
@@ -7,10 +7,8 @@
     <script type="text/javascript">
         function iterateSubfields(item) {
             var out = '';
-            var list = dojo.query('subfield', item);
-            for (var i = 0; i < list.length; i++) {
-                out += dojox.data.dom.textContent(list[i]) + ' ';
-            }
+            dojo.query('subfield', item).forEach(
+                function(item) { out += item.textContent + ' '; } );
             return out;
         }
     </script>



More information about the open-ils-commits mailing list