config option disable_facet_authors_search, MKWS-114
authorWolfram Schneider <wosch@indexdata.dk>
Fri, 7 Feb 2014 13:26:43 +0000 (13:26 +0000)
committerWolfram Schneider <wosch@indexdata.dk>
Fri, 7 Feb 2014 13:26:43 +0000 (13:26 +0000)
it is better to have an config option than to assume that
it will never work with raw pazpar2

examples/htdocs/jasmine-pp2.html
test/spec/mkws-pazpar2.js

index ced0a8c..66a03f3 100644 (file)
@@ -5,6 +5,7 @@
     <script type="text/javascript">
       var mkws_config = {
          use_service_proxy: false,
+         disable_facet_authors_search: true, // does not work with raw pazpar2
          pazpar2_url : "/pazpar2/",
          perpage_default: 10
       };
index 7baff6c..42d3480 100644 (file)
@@ -208,8 +208,8 @@ describe("Check Termlist", function () {
     });
 
     it("limit search to first author", function () {
-        if (!mkws_config.use_service_proxy) {
-            debug("running raw pp2, ignore non-functional limit search for authors");
+        if (mkws_config.disable_facet_authors_search) {
+            debug("Facets: ignore limit search for authors");
             return;
         }