Skip to content

Commit

Permalink
Fix DBLP translator where the multiple titles are not recognized. (zo…
Browse files Browse the repository at this point in the history
…tero#2169)

and update tests (no more ISBN in metadata)
Fixes zotero#2168
  • Loading branch information
zl8716y authored and MylesFTOP committed Aug 23, 2020
1 parent ce17ffe commit 89be9f5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions DBLP Computer Science Bibliography.js
Expand Up @@ -9,7 +9,7 @@
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsibv",
"lastUpdated": "2019-10-16 21:02:38"
"lastUpdated": "2020-05-03 20:02:38"
}

/*
Expand Down Expand Up @@ -137,7 +137,7 @@ function doWeb(doc, url) {
for (let i = 0; i < rows.length; i++) {
// Careful: If you get more than one node,
// ZU.xpathText will join the textContent of each with commas.
var title = ZU.xpathText(rows[i], './b|./article/span[@class="title"]');
var title = ZU.xpathText(rows[i], './/span[@class="title"]');
var link = ZU.xpathText(rows[i], './a[contains(@href, "rec/bibtex") and not(contains(@href, ".xml"))]/@href|./nav//div/a[contains(@href, "rec/bibtex") and not(contains(@href, ".xml"))]/@href');
items[link] = title;
}
Expand Down Expand Up @@ -247,7 +247,6 @@ var testCases = [
],
"date": "2010",
"DOI": "10.1109/ATS.2010.10",
"ISBN": "9780769542485",
"itemID": "DBLP:conf/ats/KochteZBIWHCP10",
"libraryCatalog": "DBLP Computer Science Bibliography",
"pages": "3–8",
Expand Down Expand Up @@ -316,7 +315,6 @@ var testCases = [
],
"date": "2013",
"DOI": "10.1007/978-3-642-40328-6_47",
"ISBN": "9783642403279",
"itemID": "DBLP:conf/approx/SchederT13",
"libraryCatalog": "DBLP Computer Science Bibliography",
"pages": "683–698",
Expand Down

0 comments on commit 89be9f5

Please sign in to comment.