Trans: Fix for ACM items with no DOI

This commit is contained in:
Avram Lyon 2011-01-29 16:30:20 +00:00
parent 5336df69c3
commit 520fc2c196

View file

@ -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