[open-ils-commits] r15093 - in trunk/Open-ILS/web: js/ui/default/vandelay templates/default/vandelay/inc (erickson)

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Dec 7 16:09:48 EST 2009


Author: erickson
Date: 2009-12-07 16:09:43 -0500 (Mon, 07 Dec 2009)
New Revision: 15093

Modified:
   trunk/Open-ILS/web/js/ui/default/vandelay/vandelay.js
   trunk/Open-ILS/web/templates/default/vandelay/inc/matches.tt2
Log:
repaired 'view marc' link in record matches grid.  the link was missing a formatter, required by newer versions of dojo to display HTML content in a cell grid

Modified: trunk/Open-ILS/web/js/ui/default/vandelay/vandelay.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/vandelay/vandelay.js	2009-12-07 20:12:02 UTC (rev 15092)
+++ trunk/Open-ILS/web/js/ui/default/vandelay/vandelay.js	2009-12-07 21:09:43 UTC (rev 15093)
@@ -544,6 +544,11 @@
     return '<a href="javascript:void(0);" onclick="vlLoadMatchUI(' + id + ');">' + this.name + '</a>';
 }
 
+function vlFormatViewMatchMARC(id) {
+    return '<a href="javascript:void(0);" onclick="vlLoadMARCHtml(' + id + ', false, '+
+        'function(){displayGlobalDiv(\'vl-match-div\');});">' + this.name + '</a>';
+}
+
 function getAttrValue(rowIdx, item) {
     if(!item) return '';
     var attrCode = this.field.split('.')[1];

Modified: trunk/Open-ILS/web/templates/default/vandelay/inc/matches.tt2
===================================================================
--- trunk/Open-ILS/web/templates/default/vandelay/inc/matches.tt2	2009-12-07 20:12:02 UTC (rev 15092)
+++ trunk/Open-ILS/web/templates/default/vandelay/inc/matches.tt2	2009-12-07 21:09:43 UTC (rev 15093)
@@ -18,8 +18,7 @@
                 {name: '&vandelay.id;', field:'id'},
                 {   name: '&vandelay.view.marc;', 
                     get: vlGetViewMARC, 
-                    value:'&lt;a href="javascript:void(0);" onclick="vlLoadMARCHtml(RECID, '+
-                        'true, function(){displayGlobalDiv(\'vl-match-div\');});">&vandelay.view.marc;&lt;/a>'
+                    formatter : vlFormatViewMatchMARC
                 },
                 {name: '&vandelay.creator;', get: vlGetCreator},
                 {name: '&vandelay.create.date;', field:'create_date', get: vlGetDateTimeField},



More information about the open-ils-commits mailing list