Shorten magic div.
[mkws-moved-to-github.git] / examples / htdocs / mike.html
index faace6e..323e644 100644 (file)
@@ -4,50 +4,31 @@
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     <title>MKWS demo: Mike's playground</title>
-    <link rel="stylesheet" type="text/css" href="http://mkws.indexdata.com/mkws.css" />
-    <script type="text/javascript">
-      var mkws_config = {
-        service_proxy_auth: "http://x.example.indexdata.com/service-proxy-auth/",
-      };
-      // See also the Apache2 RewriteRule needed to make this work:
-      // http://example.indexdata.com/apache-config.txt
-    </script>
+    <link rel="stylesheet" type="text/css" href="http://x.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://x.mkws.indexdata.com/jquery.json-2.4.js"></script>
     <script type="text/javascript" src="http://x.mkws.indexdata.com/handlebars-v1.1.2.js"></script>
     <script type="text/javascript" src="http://x.mkws.indexdata.com/pazpar2/js/pz2.js"></script>
     <script type="text/javascript" src="http://x.mkws.indexdata.com/mkws.js"></script>
-    <style type="text/css">
-      td { vertical-align: top }
-    </style>
+    <script id="mkwsTemplateSummary" type="text/x-handlebars-template">
+      <a href="#" id="{{_id}}" onclick="{{_onclick}}">
+        {{#each md-thumburl}}
+         <img src="{{this}}" alt="{{../md-title}}"/>
+        {{/each}}
+       <br/>
+       {{md-title}}
+      {{#if md-title-remainder}}
+        <span>{{md-title-remainder}}</span>
+      {{/if}}
+      {{#if md-title-responsibility}}
+       <span><i>{{md-title-responsibility}}</i></span>
+      {{/if}}
+      </a>
+    </script>
   </head>
   <body>
-    <h1>A site about stuff</h1>
-    <table border="1" width="100%">
-      <tr>
-       <td width="33%">
-         <h2>Welcome</h2>
-         Main site content goes here.
-       </td>
-       <td width="33%">
-         <h2>Blog</h2>
-<div id='mkwsRecords'
-       autosearch='mike'
-       sort='relevance'
-       targets='pz:id~josiah.brown.edu:210/innopac'
->Brown results will appear here</div>
-         <div id='mkwsTermlists'/>
-       </td>
-       <td width="33%">
-         <h2>News</h2>
-<div id='mkwsRecords_MIT'
-       autosearch='fiona'
-       sort='title'
-       targets='pz:id~connect.indexdata.com:9000/mit_opencourseware'
->MIT results will appear here</div>
-         <div id='mkwsTermlists_MIT'/>
-       </td>
-      </tr>
-    </table>
+    <div class='mkwsRecords' autosearch='!param!q'
+       targets='pz:id=lui.indexdata.com:8080/solr4/#5853'
+       >results will appear here</div>
   </body>
 </html>