Facet-related elements are identified by class rather than ID.
[mkws-moved-to-github.git] / test / spec / mkws-pazpar2.js
index 60483cd..9a95044 100644 (file)
@@ -208,6 +208,11 @@ describe("Check Termlist", function () {
     });
 
     it("limit search to first author", function () {
+        if (mkws_config.disable_facet_authors_search) {
+            debug("Facets: ignore limit search for authors");
+            return;
+        }
+
         var hits_all_targets = get_hit_counter();
         var author_number = 2; // 2=first author
         // do not click on author with numbers, e.g.: "Bower, James M. Beeman, David, 1938-"
@@ -242,7 +247,7 @@ describe("Check Termlist", function () {
         var hits_all_targets = get_hit_counter();
         var source_number = 2; // 2=first source
         // do not click on wikipedia link - no author or subject facets possible
-        var terms = $("div#mkwsFacetSources div.term a");
+        var terms = $("div.mkwsFacetSources div.term a");
         for (var i = 0; i < terms.length; i++) {
             var term = $(terms[i]).text();
             if (term.match(/wikipedia/i)) {