The Reference Universe widget now specifies to use the correct target.
[mkws-moved-to-github.git] / examples / htdocs / auto.html
index 35cff2f..e133454 100644 (file)
@@ -3,17 +3,19 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-    <meta name="copyright" content="(c) 1999-2013 IndexData ApS, http://indexdata.com" />
-    <title>MKWS demo: Mike's playground</title>
-    <link rel="stylesheet" type="text/css" href="http://mkws.indexdata.com/mkws.css" />
-    <script type="text/javascript" src="http://code.jquery.com/jquery-1.10.0.min.js"></script>
-    <script type="text/javascript" src="http://mkws.indexdata.com/handlebars-v1.1.2.js"></script>
-    <script type="text/javascript" src="http://mkws.indexdata.com/libjs-pz2/pz2api.1.js"></script>
-    <script type="text/javascript" src="http://mkws.indexdata.com/mkws.js"></script>
+    <meta name="copyright" content="(c) 1999-2013 Index Data ApS, http://indexdata.com" />
+    <title>MKWS demo: Automatic search</title>
+    <link rel="stylesheet" type="text/css" href="//mkws.indexdata.com/mkws.css" />
+    <script type="text/javascript" src="//mkws.indexdata.com/mkws-complete.js"></script>
+    <style type="text/css">
+      td { vertical-align: top; overflow: word-break }
+    </style>
   </head>
   <body>
     <h1>A site about stuff</h1>
-    <table border="1" width="100%">
+    <table border="1" width="100%" style="table-layout:fixed">
+      <col width="50%"/>
+      <col width="50%"/>
       <tr>
        <td>
          <h2>Welcome</h2>
        </td>
        <td>
          <h2>News</h2>
-         <div id="mkwsRecords" autosearch="dinosaur" sort="date-r"><i>News items will appear here</i></div>
+
+
+<div class='mkws-records'
+       autosearch='sushi'
+       sort='relevance'
+       targets='pz:id~josiah.brown.edu:210/innopac|connect.indexdata.com:9000/mit_opencourseware|lui.indexdata.com:8080/solr4/select?fq=database:3602'
+>results will appear here</div>
+
        </td>
       </tr>
     </table>
+    <p style="color:grey">
+      <a href="http://mkws.indexdata.com/">About MKWS</p>
+    </p>
+    <script type="text/javascript">
+      var mkws_config = {
+        sp_auth_credentials: "mkwstest/mkwstest"
+      };
+    </script>
   </body>
 </html>