Skip to content
Permalink
Browse files

ZIPonline -- fix eslint warnings (#1842)

  • Loading branch information...
retorquere authored and adam3smith committed Feb 25, 2019
1 parent 32892f6 commit 77896270dfece9b221111ff2fb2088f4118cf0f1
Showing with 5 additions and 5 deletions.
  1. +5 −5 ZIPonline.js
@@ -37,15 +37,15 @@


function detectWeb(doc, url) {
if (url.indexOf('/heft')>-1 && url.indexOf('/zip')>-1) {
if (url.includes('/heft') && url.includes('/zip')) {
//Z.debug(ZU.xpathText(doc, '//meta[@property="article:section"]/@content'));
var articleSection = ZU.xpathText(doc, '//meta[@property="article:section"]/@content');
if (articleSection.indexOf('Rechtsprechung')>-1) {
if (articleSection.includes('Rechtsprechung')) {
return "case";
}
return "journalArticle";

} else if (url.indexOf('/archivsuche/')>-1 || url.indexOf('/aktuelles-heft/')>-1 || url.indexOf('/heft-')>-1) {
} else if (url.includes('/archivsuche/') || url.includes('/aktuelles-heft/') || url.includes('/heft-')) {
if (getSearchResults(doc, true)) {
return "multiple";
}
@@ -263,5 +263,5 @@ var testCases = [
"url": "https://www.zip-online.de/heft-23-24-1987/",
"items": "multiple"
}
]
/** END TEST CASES **/
];
/** END TEST CASES **/

0 comments on commit 7789627

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