commit 520fc2c196d9df44e58a53edfd222090a3bb1b71
parent 5336df69c343ed53ac20a1079d4ab4b296126f3c
Author: Avram Lyon <ajlyon@gmail.com>
Date: Sat, 29 Jan 2011 16:30:20 +0000
Trans: Fix for ACM items with no DOI
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/translators/ACM.js b/translators/ACM.js
@@ -171,7 +171,7 @@ function scrape(doc) {
}
// If the URL is just a DOI, clear it.
if (newItem.url.match(/^http:\/\/doi\.acm\.org\//)) newItem.url = "";
- newItem.DOI = newItem.DOI.replace(/^http:\/\/doi\.acm\.org\//, '');
+ if (newItem.DOI) newItem.DOI = newItem.DOI.replace(/^http:\/\/doi\.acm\.org\//, '');
var acmid = bibtex.match(/acmid = {(\d+)}/);
if(acmid) newItem.extra = "ACM ID: "+ acmid[1];
//Complete the parsing of the page