Permalink
Browse files

Update wiso translator (#1087)

The problem was reported in the forum:
https://forums.zotero.org/discussion/59856/wiso-site-translator/

The website simply changed its structure such that the  permalink is now saved in a url tag and not simple text node. This PR change the XPath accordingly.
  • Loading branch information...
zuphilip authored and adam3smith committed Aug 8, 2016
1 parent 3baeefb commit 9e4b12f8f4d140dc351fdbcdb60590e1a3de146f
Showing with 2 additions and 2 deletions.
  1. +2 −2 wiso.js
View
@@ -9,7 +9,7 @@
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsv",
"lastUpdated": "2016-02-04 08:08:19"
"lastUpdated": "2016-06-26 18:54:53"
}
/*
@@ -48,7 +48,7 @@ function detectWeb(doc, url) {
function scrape(doc, url) {
var address = ZU.xpathText(doc, '//pre[strong and contains(text(), "https://www.wiso-net.de/document/")]');
var address = ZU.xpathText(doc, '//pre[strong]/a[contains(text(), "https://www.wiso-net.de/document/")]');
var docUid = address.substr(address.lastIndexOf('/')+1);
var risUrl = "/stream/exportDocuments?docUids="
+ docUid + "&dbShortcut=&query=&source=Document&format=Citavi";

0 comments on commit 9e4b12f

Please sign in to comment.