From 520fc2c196d9df44e58a53edfd222090a3bb1b71 Mon Sep 17 00:00:00 2001 From: Avram Lyon Date: Sat, 29 Jan 2011 16:30:20 +0000 Subject: [PATCH] Trans: Fix for ACM items with no DOI --- translators/ACM.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translators/ACM.js b/translators/ACM.js index 756e47220c..26b61e38af 100644 --- 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