Trans: Fixed Scitation
This commit is contained in:
parent
785a56b184
commit
34e30ad7f8
1 changed files with 14 additions and 14 deletions
|
@ -1,14 +1,14 @@
|
||||||
{
|
{
|
||||||
"translatorID":"d75381ee-7d8d-4a3b-a595-b9190a06f43f",
|
"translatorID": "d75381ee-7d8d-4a3b-a595-b9190a06f43f",
|
||||||
"translatorType":4,
|
"label": "Scitation",
|
||||||
"label":"Scitation",
|
"creator": "Eugeniy Mikhailov",
|
||||||
"creator":"Eugeniy Mikhailov",
|
"target": "^https?://(?:www\\.)?scitation.aip.org",
|
||||||
"target":"^https?://(?:www\\.)?scitation.aip.org",
|
"minVersion": "1.0.0b3.r1",
|
||||||
"minVersion":"1.0.0b3.r1",
|
"maxVersion": "",
|
||||||
"maxVersion":"",
|
"priority": 100,
|
||||||
"priority":100,
|
"inRepository": "1",
|
||||||
"inRepository":true,
|
"translatorType": 4,
|
||||||
"lastUpdated":"2011-01-11 04:31:00"
|
"lastUpdated": "2011-03-12 12:50:18"
|
||||||
}
|
}
|
||||||
|
|
||||||
function detectWeb(doc, url) {
|
function detectWeb(doc, url) {
|
||||||
|
@ -67,13 +67,13 @@ function doWeb(doc, url) {
|
||||||
translator.setTranslator("32d59d2d-b65a-4da4-b0a3-bdd3cfb979e7");
|
translator.setTranslator("32d59d2d-b65a-4da4-b0a3-bdd3cfb979e7");
|
||||||
translator.setString(text);
|
translator.setString(text);
|
||||||
translator.setHandler("itemDone", function(obj, item) {
|
translator.setHandler("itemDone", function(obj, item) {
|
||||||
var doi = text.match(/ER\s{2}\-\s.*org\/(.*)\n/)[1];
|
var doi = text.match(/[E|U]R\s{2}\-\s.*org\/(10\..*)\n/);
|
||||||
if (doi) item.DOI = doi;
|
if (doi) item.DOI = doi[1];
|
||||||
item.complete();
|
item.complete();
|
||||||
});
|
});
|
||||||
translator.translate();
|
translator.translate();
|
||||||
|
|
||||||
Zotero.done();
|
Zotero.done();
|
||||||
});
|
});
|
||||||
Zotero.wait();
|
Zotero.wait();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue