repaired 'view marc' link in record matches grid. the link was missing a formatter...
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 7 Dec 2009 21:09:43 +0000 (21:09 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 7 Dec 2009 21:09:43 +0000 (21:09 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@15093 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/ui/default/vandelay/vandelay.js
Open-ILS/web/templates/default/vandelay/inc/matches.tt2

index f8542b1..92e8981 100644 (file)
@@ -544,6 +544,11 @@ function vlFormatViewMatches(id) {
     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];
index 16759ea..0345967 100644 (file)
@@ -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},