[open-ils-commits] r10522 - trunk/Open-ILS/web/vandelay
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Sep 3 12:23:50 EDT 2008
Author: erickson
Date: 2008-09-03 12:23:48 -0400 (Wed, 03 Sep 2008)
New Revision: 10522
Modified:
trunk/Open-ILS/web/vandelay/vandelay.js
Log:
for now, show the matched attr value and number of matches. will link to a page of matched bibs
Modified: trunk/Open-ILS/web/vandelay/vandelay.js
===================================================================
--- trunk/Open-ILS/web/vandelay/vandelay.js 2008-09-03 16:23:07 UTC (rev 10521)
+++ trunk/Open-ILS/web/vandelay/vandelay.js 2008-09-03 16:23:48 UTC (rev 10522)
@@ -219,7 +219,11 @@
);
}
+function vlLoadMatchUI(recId, attrCode) {
+ alert(recId + ' : ' + attrCode);
+}
+
/**
* Given a record, an attribute definition code, and a matching record attribute,
* this will determine if there are any import matches and build the UI to
@@ -234,13 +238,10 @@
}
if(matches.length > 0) { // found some matches
- var str = '<div>';
- for(var k = 0; k < matches.length; k++) {
- var match = matches[k];
- str += '<div><a href="javascript:void(0);" onclick="alert('+match.eg_record()+');">' + match.eg_record()+'</a></div>';
- }
- str += '</div>';
- return str;
+ return '<div class="match_div">' +
+ '<a href="javascript:void(0);" onclick="vlLoadMatchUI('+
+ rec.id()+',\''+match.field_type()+'\');">'+
+ attr.attr_value() + ' ('+matches.length+')</a></div>';
}
return attr.attr_value();
More information about the open-ils-commits
mailing list