Skip to content

Commit

Permalink
Update wiso translator (#1087)
Browse files Browse the repository at this point in the history
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 9e4b12f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wiso.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsv",
"lastUpdated": "2016-02-04 08:08:19"
"lastUpdated": "2016-06-26 18:54:53"
}

/*
Expand Down Expand Up @@ -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";
Expand Down

0 comments on commit 9e4b12f

Please sign in to comment.