|
9 | 9 | "inRepository": true,
|
10 | 10 | "translatorType": 4,
|
11 | 11 | "browserSupport": "gcsibv",
|
12 |
| - "lastUpdated": "2014-12-07 14:59:05" |
| 12 | + "lastUpdated": "2015-02-12 22:42:23" |
13 | 13 | }
|
14 | 14 |
|
15 | 15 | /*
|
@@ -132,6 +132,11 @@ function scrape(doc, url, dois) {
|
132 | 132 | //unfortunately, bibtex is missing some data
|
133 | 133 | //publisher, ISSN/ISBN
|
134 | 134 | ZU.doPost(postUrl, postBody + doi + risFormat, function(text) {
|
| 135 | + // Y1 is online publication date |
| 136 | + if (/^DA\s+-\s+/m.test(text)) { |
| 137 | + text = text.replace(/^Y1(\s+-.*)/gm, ''); |
| 138 | + } |
| 139 | + |
135 | 140 | risTrans = Zotero.loadTranslator("import");
|
136 | 141 | risTrans.setTranslator("32d59d2d-b65a-4da4-b0a3-bdd3cfb979e7");
|
137 | 142 | risTrans.setString(text);
|
@@ -292,7 +297,7 @@ var testCases = [
|
292 | 297 | "libraryCatalog": "Taylor and Francis+NEJM",
|
293 | 298 | "pages": "37-46",
|
294 | 299 | "publicationTitle": "Applied Economics",
|
295 |
| - "url": "http://www.tandfonline.com/doi/abs/10.1080/00036846.2011.568404", |
| 300 | + "url": "http://dx.doi.org/10.1080/00036846.2011.568404", |
296 | 301 | "volume": "45",
|
297 | 302 | "attachments": [
|
298 | 303 | {
|
@@ -353,7 +358,7 @@ var testCases = [
|
353 | 358 | "libraryCatalog": "Taylor and Francis+NEJM",
|
354 | 359 | "pages": "1179-1181",
|
355 | 360 | "publicationTitle": "New England Journal of Medicine",
|
356 |
| - "url": "http://www.nejm.org/doi/full/10.1056/NEJMp1207920", |
| 361 | + "url": "http://dx.doi.org/10.1056/NEJMp1207920", |
357 | 362 | "volume": "367",
|
358 | 363 | "attachments": [
|
359 | 364 | {
|
|
0 commit comments