Towards an SRU widget demo.
authorMike Taylor <mike@indexdata.com>
Mon, 22 Sep 2014 14:28:25 +0000 (16:28 +0200)
committerMike Taylor <mike@indexdata.com>
Mon, 22 Sep 2014 14:28:25 +0000 (16:28 +0200)
examples/htdocs/mike2.html

index 45e28f9..2f7a395 100644 (file)
@@ -1,14 +1,14 @@
 <html>
   <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="tools/htdocs/mkws.css" />
+    <title>MKWS demo</title>
     <script type="text/javascript">
       var mkws_config = {
-        service_proxy_auth: "//sp-mkws.indexdata.com/service-proxy/?command=auth&action=check,login&username=mkwstest&password=mkwstest"
+//        pp2_hostname: "x.sp-mkws.indexdata.com",
       };
     </script>
-    <script type="text/javascript" src="//code.jquery.com/jquery-1.10.0.min.js"></script>
+    <link rel="stylesheet" type="text/css" href="tools/htdocs/mkws.css" />
+    <script type="text/javascript" src="tools/htdocs/jquery-1.10.0.min.js"></script>
     <script type="text/javascript" src="tools/htdocs/jquery.json-2.4.js"></script>
     <script type="text/javascript" src="tools/htdocs/handlebars-v1.1.2.js"></script>
     <script type="text/javascript" src="tools/htdocs/pz2.js"></script>
     <script type="text/javascript" src="mkws-widget-credo.js"></script>
   </head>
   <body>
-    <div class="mkwsSwitch"></div>
-    <div class="mkwsLang"></div>
-    <div class="mkwsProgress"></div>
-    <div class="mkwsSearch"></div>
-    <div class="mkwsResults" autosearch="!param!q" targets="!param!t"></div>
-    <div class="mkwsTargets"></div>
-    <div class="mkwsStat"></div>
-    <div class="mkwsBuilder"></div>
+    <div class="mkwsSRU" autosearch="dinosaur" maximumRecords="3" recordSchema="dc"></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>