Skip to content
Permalink
Browse files

Web of Science.js -- fix eslint warnings

  • Loading branch information...
retorquere committed Feb 25, 2019
1 parent b4f5e0c commit 8bd7b995a177a40f080a9f470432d557ec371bae
Showing with 7 additions and 7 deletions.
  1. +7 −7 Web of Science.js
@@ -36,14 +36,14 @@
*/

function detectWeb(doc, url) {
if ( (url.indexOf("full_record.do") !== -1
|| url.indexOf("CitedFullRecord.do") !== -1
|| url.indexOf("InboundService.do") != -1)
if ( (url.includes("full_record.do")
|| url.includes("CitedFullRecord.do")
|| url.includes("InboundService.do") )
&& getSingleItemId(doc)
) {
return "journalArticle";
} else if (((doc.title.indexOf(" Results") !== -1)
|| url.indexOf("search_mode=") !== -1)
} else if (((doc.title.includes(" Results"))
|| url.includes("search_mode="))
&& getRecords(doc).length) {
return "multiple";
}
@@ -188,7 +188,7 @@ function fetchIds(ids, doc) {

//otherwise we have an intermediate page (maybe... it just kind of went away one day)
//everything it mostly the same as above except for a few fields
var postData2 = {}
var postData2 = {};
postData2['locale'] = postData['locale'];
postData2['colName'] = postData['colName'];
postData2['sortBy'] = postData['sortBy'];
@@ -225,4 +225,4 @@ function fetchIds(ids, doc) {
}, { 'Referer': postUrl });

}, { 'Referer': doc.location.href });
}
}

0 comments on commit 8bd7b99

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