Skip to content
Permalink
Browse files

EM translator has to be called as "web"

This fixes zotero#1120.
  • Loading branch information...
zuphilip committed Jul 27, 2017
1 parent 1e142d8 commit 4de6404c010a19a21245f0fbabc643406461b080
Showing with 10 additions and 10 deletions.
  1. +2 −2 Brill Journals.js
  2. +2 −2 Journal of Electronic Publishing.js
  3. +2 −2 OSTI Energy Citations.js
  4. +2 −2 UPCommons.js
  5. +2 −2 WIPO.js
@@ -9,7 +9,7 @@
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsibv",
"lastUpdated": "2014-08-26 03:35:40"
"lastUpdated": "2017-07-27 10:35:13"
}

/*
@@ -74,7 +74,7 @@ function doWeb(doc,url)
});
} else {
// We call the Embedded Metadata translator to do the actual work
var translator = Zotero.loadTranslator("import");
var translator = Zotero.loadTranslator("web");
translator.setTranslator("951c027d-74ac-47d4-a107-9c3069ab7b48");
translator.setHandler("itemDone", function(obj, item) {
item.DOI = ZU.xpathText(doc, '//span[@class="meta-value doi"]')
@@ -9,7 +9,7 @@
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsibv",
"lastUpdated": "2017-01-01 16:54:45"
"lastUpdated": "2017-07-27 10:42:26"
}

/*
@@ -71,7 +71,7 @@ function doWeb(doc,url)
var issue = ZU.xpathText(doc, '//meta[@name="DC.citation.issue"]/@content')
var volume = ZU.xpathText(doc, '//meta[@name="DC.citation.volume"]/@content')

var translator = Zotero.loadTranslator("import");
var translator = Zotero.loadTranslator("web");
translator.setTranslator("951c027d-74ac-47d4-a107-9c3069ab7b48");
translator.setHandler("itemDone", function(obj, item) {
item.itemType = "journalArticle";
@@ -9,7 +9,7 @@
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsibv",
"lastUpdated": "2017-01-03 11:31:22"
"lastUpdated": "2017-07-27 10:41:29"
}

/*
@@ -77,7 +77,7 @@ function doWeb(doc,url)
if (type && type.indexOf("Thesis")!=-1) itemtype = "thesis";

// We call the Embedded Metadata translator to do the actual work
var translator = Zotero.loadTranslator("import");
var translator = Zotero.loadTranslator("web");
translator.setTranslator("951c027d-74ac-47d4-a107-9c3069ab7b48");
translator.setHandler("itemDone", function(obj, item) {
if (item.institution){
@@ -9,7 +9,7 @@
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsibv",
"lastUpdated": "2017-06-22 17:09:55"
"lastUpdated": "2017-07-27 10:44:28"
}

/*
@@ -93,7 +93,7 @@ function doWeb(doc, url) {

function scrape(doc, url) {
// We call the Embedded Metadata translator to do the actual work
var translator = Zotero.loadTranslator("import");
var translator = Zotero.loadTranslator("web");
translator.setTranslator("951c027d-74ac-47d4-a107-9c3069ab7b48");
translator.setHandler("itemDone", function(obj, item) {
var type = ZU.xpathText(doc, '//meta[@name="DC.type"]/@content');
@@ -9,7 +9,7 @@
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsbv",
"lastUpdated": "2013-04-15 18:04:37"
"lastUpdated": "2017-07-27 10:44:58"
}

/*
@@ -77,7 +77,7 @@ function doWeb(doc,url)
var assignee = ZU.xpathText(doc, '//meta[@scheme="assignee"]/@content');
var abstract = ZU.xpathText(doc, '//tr/td[b[contains(text(), "Abstract:")]]/following-sibling::td/div/span');
// We call the Embedded Metadata translator to do the actual work
var translator = Zotero.loadTranslator("import");
var translator = Zotero.loadTranslator("web");
translator.setTranslator("951c027d-74ac-47d4-a107-9c3069ab7b48");
translator.setHandler("itemDone", function(obj, item) {
item.itemType = "patent";

0 comments on commit 4de6404

Please sign in to comment.
You can’t perform that action at this time.