[open-ils-commits] r15095 - in branches/rel_1_6_0/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:10:34 EST 2009
Author: erickson
Date: 2009-12-07 16:10:29 -0500 (Mon, 07 Dec 2009)
New Revision: 15095
Modified:
branches/rel_1_6_0/Open-ILS/web/js/ui/default/vandelay/vandelay.js
branches/rel_1_6_0/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: branches/rel_1_6_0/Open-ILS/web/js/ui/default/vandelay/vandelay.js
===================================================================
--- branches/rel_1_6_0/Open-ILS/web/js/ui/default/vandelay/vandelay.js 2009-12-07 21:10:15 UTC (rev 15094)
+++ branches/rel_1_6_0/Open-ILS/web/js/ui/default/vandelay/vandelay.js 2009-12-07 21:10:29 UTC (rev 15095)
@@ -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: branches/rel_1_6_0/Open-ILS/web/templates/default/vandelay/inc/matches.tt2
===================================================================
--- branches/rel_1_6_0/Open-ILS/web/templates/default/vandelay/inc/matches.tt2 2009-12-07 21:10:15 UTC (rev 15094)
+++ branches/rel_1_6_0/Open-ILS/web/templates/default/vandelay/inc/matches.tt2 2009-12-07 21:10:29 UTC (rev 15095)
@@ -18,8 +18,7 @@
{name: '&vandelay.id;', field:'id'},
{ name: '&vandelay.view.marc;',
get: vlGetViewMARC,
- value:'<a href="javascript:void(0);" onclick="vlLoadMARCHtml(RECID, '+
- 'true, function(){displayGlobalDiv(\'vl-match-div\');});">&vandelay.view.marc;</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