Skip to content
Permalink
Browse files

Trove (#1724)

Don't add 'delete tag' when parsing tags while logged in.
  • Loading branch information...
reubot authored and adam3smith committed Sep 5, 2018
1 parent ec55cd8 commit 40020424f3be4c80a9024f762e752304d500b98a
Showing with 3 additions and 3 deletions.
  1. +3 −3 Trove.js
@@ -9,7 +9,7 @@
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsibv",
"lastUpdated": "2017-02-04 19:41:04"
"lastUpdated": "2018-09-03 19:41:04"
}

/*
@@ -113,7 +113,7 @@ function scrapeNewspaper(doc, url) {
// Add tags
var tags = ZU.xpath(doc, "//ul[contains(@class,'nlaTagContainer')]/li");
for (var i = 0; i < tags.length; i++) {
tag = ZU.xpathText(tags[i], "a");
tag = ZU.xpathText(tags[i], "a[not(contains(@class,'anno-remove'))]");
item.tags.push(tag);
}
}
@@ -390,4 +390,4 @@ var testCases = [
]
}
]
/** END TEST CASES **/
/** END TEST CASES **/

0 comments on commit 4002042

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