Simple translator issue
Using translator framework I wrote a small translator for fetching multiple item from http://journals.ut.ac.ir/page/article-frame.html?conversationContext=2
function detectWeb(doc, url) {
if (FW.Xpath("//meta[contains(@content,'Chista')]"))
return FW.detectWeb(doc, url); }
function doWeb(doc, url) { return FW.doWeb(doc, url); }
FW.MultiScraper({
itemType : 'multiple',
detect : FW.Xpath("//a[contains(@href,'page/article-frame.html?')]"),
choices : {
titles : FW.Xpath("//a[contains(@href,'page/article-frame.html?')]").text().trim(),
urls : FW.Xpath("//a[contains(@href,'page/article-frame.html?')]").key("href")
}
});
I was working before, but I do know why in the last Zotero version it stopped working.
function detectWeb(doc, url) {
if (FW.Xpath("//meta[contains(@content,'Chista')]"))
return FW.detectWeb(doc, url); }
function doWeb(doc, url) { return FW.doWeb(doc, url); }
FW.MultiScraper({
itemType : 'multiple',
detect : FW.Xpath("//a[contains(@href,'page/article-frame.html?')]"),
choices : {
titles : FW.Xpath("//a[contains(@href,'page/article-frame.html?')]").text().trim(),
urls : FW.Xpath("//a[contains(@href,'page/article-frame.html?')]").key("href")
}
});
I was working before, but I do know why in the last Zotero version it stopped working.
-
dstillmanPlease post technical questions to zotero-dev. Your posting of this there was denied simply because you tried to attach a file—I told you to create a Gist instead and include a link.