Omit the unnecessary complication of the
[mkws-moved-to-github.git] / examples / htdocs / images.html
index d8822c4..f16bd2e 100644 (file)
@@ -3,34 +3,32 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
   <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://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>
-    <script id="mkwsTemplateSummary" type="text/x-handlebars-template">
+    <title>MKWS demo: Images</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>
+    <script class="mkwsTemplate_Summary" type="text/x-handlebars-template">
       <a href="#" id="{{_id}}" onclick="{{_onclick}}">
         {{#each md-thumburl}}
-         <img src="{{this}}"/>
+         <img src="{{this}}" alt="{{../md-title}}"/>
         {{/each}}
        <br/>
-       <b>{{md-title}}</b>
-      </a>
+       {{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>
+    <script type="text/javascript">
+      var mkws_config = {
+        sp_auth_credentials: "mkwsimages/mkwsimages"
+      };
     </script>
   </head>
   <body>
-    <div id='mkwsRecords'
-       autosearch='!param!q'
-       sort='relevance'
-       targets='pz:id=lui.indexdata.com:8080/solr4/#5853'
+    <div class='mkwsRecords' autosearch='!param!q'
        >results will appear here</div>
   </body>
 </html>