Hyperlink DOI in reports fixes #388

This commit is contained in:
Ashley Wright 2013-10-19 20:01:16 -05:00
parent 3c653903c5
commit 2881ad1643

View file

@ -255,6 +255,11 @@ Zotero.Report = new function() {
fieldText = '<a href="' + escapeXML(arr[i]) + '">'
+ escapeXML(arr[i]) + '</a>';
}
// Hyperlink DOI
else if (i == 'DOI') {
fieldText = '<a href="' + escapeXML('http://doi.org/' + arr[i]) + '">'
+ escapeXML(arr[i]) + '</a>';
}
// Remove SQL date from multipart dates
// (e.g. '2006-00-00 Summer 2006' becomes 'Summer 2006')
else if (i=='date') {