replace, do not extend, the innerHTML of the slot
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 29 Apr 2009 00:48:57 +0000 (00:48 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 29 Apr 2009 00:48:57 +0000 (00:48 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@13011 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/dojo/openils/BibTemplate.js

index 2dad934..5483986 100644 (file)
@@ -62,7 +62,7 @@ if(!dojo._hasResource["openils.BibTemplate"]) {
                                 if (slot_handler) slot_handler = new Function('item', slot_handler);
                                 else slot_handler = new Function('item','return dojox.data.dom.textContent(item);');
                 
-                                slot.innerHTML += dojo.query(
+                                slot.innerHTML = dojo.query(
                                     slot.getAttribute('query'),
                                     bib
                                 ).map(slot_handler).join(' ');