Modified to be a recipient for mike.html's source-facet links.
authorMike Taylor <mike@indexdata.com>
Tue, 10 Jun 2014 15:53:16 +0000 (16:53 +0100)
committerMike Taylor <mike@indexdata.com>
Tue, 10 Jun 2014 15:53:16 +0000 (16:53 +0100)
examples/htdocs/mike2.html

index c51f022..68fdbf7 100644 (file)
@@ -2,11 +2,10 @@
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     <title>MKWS demo: Reference Universe widget</title>
-    <link rel="stylesheet" type="text/css" href="//x.mkws.indexdata.com/mkws.css"></script>
+    <link rel="stylesheet" type="text/css" href="//x.mkws.indexdata.com/mkws.css" />
     <script type="text/javascript">
       var mkws_config = {
-        //service_proxy_auth: "//mkws.indexdata.com/service-proxy-credoauth"
-        service_proxy_auth: "//mkws.indexdata.com/service-proxy/?command=auth&action=login&username=credo&password=emu",
+        service_proxy_auth: "//mkws.indexdata.com/service-proxy/?command=auth&action=check,login&username=mkwstest&password=mkwstest"
       };
     </script>
     <script type="text/javascript" src="//code.jquery.com/jquery-1.10.0.min.js"></script>
     <div class="mkwsLang"></div>
     <div class="mkwsProgress"></div>
     <div class="mkwsSearch"></div>
-    <div class="mkwsResults"></div>
+    <div class="mkwsResults" autosearch="!param!q" targets="!param!t"></div>
     <div class="mkwsTargets"></div>
     <div class="mkwsStat"></div>
     <div class="mkwsBuilder"></div>
   </body>
+  <script class="mkwsTemplate_facetTitle-Sources" type="text/x-handlebars-template">
+    <a href="?q={{query}}">Targets</a>
+  </script>
+  <script class="mkwsTemplate_facet-Sources" type="text/x-handlebars-template">
+    <a href="mike2.html?q={{query}}&t={{field}}">{{term}}</a>
+    <span>{{count}}</span>
+  </script>
 </html>