Pushed ScienceDirect (and disabled icon for search results mode, which is still broken)
This commit is contained in:
parent
fbd744bd54
commit
7a4558ad6f
1 changed files with 13 additions and 13 deletions
|
@ -8,7 +8,7 @@
|
|||
"priority":100,
|
||||
"inRepository":true,
|
||||
"translatorType":4,
|
||||
"lastUpdated":"2010-09-28 19:51:15"
|
||||
"lastUpdated":"2010-09-28 16:45:00"
|
||||
}
|
||||
|
||||
function detectWeb(doc, url) {
|
||||
|
@ -16,7 +16,9 @@ function detectWeb(doc, url) {
|
|||
return false;
|
||||
}
|
||||
if((!url.match("pdf") && url.indexOf("_ob=ArticleURL") == -1 && url.indexOf("/article/") == -1) || url.indexOf("/journal/") != -1) {
|
||||
return "multiple";
|
||||
// TEMP: disabled
|
||||
//return "multiple";
|
||||
return false;
|
||||
} else if (!url.match("pdf")) {
|
||||
return "journalArticle";
|
||||
}
|
||||
|
@ -34,8 +36,6 @@ function doWeb(doc, url) {
|
|||
|| doc.evaluate('//*[contains(@src, "exportarticle_a.gif")]', doc, nsResolver, XPathResult.ANY_TYPE, null).iterateNext()) {
|
||||
var articles = new Array();
|
||||
if(detectWeb(doc, url) == "multiple") {
|
||||
throw ("Multiple-item saving from ScienceDirect temporarily disabled due to a site update -- an updated Zotero translator will be available soon");
|
||||
|
||||
//search page
|
||||
var items = new Object();
|
||||
var xpath;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue