Move example clients into their own area
authorMike Taylor <mike@indexdata.com>
Tue, 9 Jul 2013 11:16:48 +0000 (12:16 +0100)
committerMike Taylor <mike@indexdata.com>
Tue, 9 Jul 2013 11:16:48 +0000 (12:16 +0100)
20 files changed:
examples/htdocs/favicon.ico [new file with mode: 0644]
examples/htdocs/index-full.html [new file with mode: 0644]
examples/htdocs/index-jquery.html [new file with mode: 0644]
examples/htdocs/index-lowlevel.html [new file with mode: 0644]
examples/htdocs/index-mike.html [new file with mode: 0644]
examples/htdocs/index-mkws.html [new file with mode: 0644]
examples/htdocs/index-mobile.html [new file with mode: 0644]
examples/htdocs/index-popup.html [new file with mode: 0644]
examples/htdocs/index.html [new file with mode: 0644]
examples/htdocs/robots.txt [new file with mode: 0644]
experiments/spclient/favicon.ico [deleted file]
experiments/spclient/index-full.html [deleted file]
experiments/spclient/index-jquery.html [deleted file]
experiments/spclient/index-lowlevel.html [deleted file]
experiments/spclient/index-mike.html [deleted file]
experiments/spclient/index-mkws.html [deleted file]
experiments/spclient/index-mobile.html [deleted file]
experiments/spclient/index-popup.html [deleted file]
experiments/spclient/index.html [deleted file]
experiments/spclient/robots.txt [deleted file]

diff --git a/examples/htdocs/favicon.ico b/examples/htdocs/favicon.ico
new file mode 100644 (file)
index 0000000..35c4899
Binary files /dev/null and b/examples/htdocs/favicon.ico differ
diff --git a/examples/htdocs/index-full.html b/examples/htdocs/index-full.html
new file mode 100644 (file)
index 0000000..f82d261
--- /dev/null
@@ -0,0 +1,67 @@
+<?xml version="1.0"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<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: full configuration</title>
+    <link rel="stylesheet" href="http://mkws.indexdata.com/mkwsStyle.css" />
+    <script type="text/javascript">
+       var mkws_config = {
+               lang: "da",
+               debug: 1,
+               use_service_proxy: true,
+               switch_menu: true,
+               lang_menu: true,
+               sort_default: "relevance",
+               query_width: 50,
+               perpage_default: 20,
+               language_Arabic: {
+                       "Authors": "الكتاب",
+                       "Subjects": "المواضيع",
+                       "Sources": "مصادر",
+                       "Termlists": "العضو الأجل",
+                       "Next": "التالي",
+                       "Prev": "السابق",
+                       "Search": "بحث",
+                       "Sort by": "الترتيب حسب",
+                       "and show": "وعرض",
+                       "per page": "في كل صفحة",
+                       "Displaying": "عرض",
+                       "to": "إلى",
+                       "of": "من",
+                       "found": "أسس",
+                       "Title": "لقب",
+                       "Author": "الكاتب",
+                       "Date": "تاريخ",
+                       "Subject": "موضوع",
+                       "Location": "موقع",
+                       "Records": "أهداف",
+                       "Targets": "السجلات"
+               }
+       };
+    </script>
+    <script type="text/javascript" src="http://mkws.indexdata.com/mkws-complete.js"></script>
+  </head>
+  <body>
+    <div id="mkwsSwitch"></div>
+    <div id="mkwsLang"></div>
+    <div id="mkwsSearch"></div>
+    <div id="mkwsResults"></div>
+    <div id="mkwsTargets"></div>
+    <div id="mkwsMOTD">
+      <p>
+       <b>Welcome to the MasterKey Widget Set demo.</b>
+      </p>
+      <p>
+       Enter a search above to begin, or
+       <a href="http://mkws.indexdata.com/"
+          >Visit the MKWS home page to find out more</a>.
+      </p>
+    </div>
+    <div id="footer">
+      <div id="mkwsStat"></div>
+      <span>Powered by MKWS &copy; 2013 <a target="_new" href="http://www.indexdata.com">Index Data</a></span>
+    </div>
+  </body>
+</html>
diff --git a/examples/htdocs/index-jquery.html b/examples/htdocs/index-jquery.html
new file mode 100644 (file)
index 0000000..e2d3e19
--- /dev/null
@@ -0,0 +1,11 @@
+<html>
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    <title>MKWS demo: jQuery plugin</title>
+    <link rel="stylesheet" href="http://mkws.indexdata.com/mkwsStyle.css" />
+    <script type="text/javascript" src="http://mkws.indexdata.com/mkws-complete.js"></script>
+  </head>
+  <body>
+    <script type="text/javascript">jQuery.pazpar2()</script>
+  </body>
+</html>
diff --git a/examples/htdocs/index-lowlevel.html b/examples/htdocs/index-lowlevel.html
new file mode 100644 (file)
index 0000000..f04060d
--- /dev/null
@@ -0,0 +1,55 @@
+<html>
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    <title>MKWS demo: low-level subcomponents</title>
+    <link rel="stylesheet" href="http://mkws.indexdata.com/mkwsStyle.css" />
+    <script type="text/javascript">
+      var mkws_config = { switch_menu: true };
+    </script>
+    <script type="text/javascript" src="http://mkws.indexdata.com/mkws-complete.js"></script>
+    <style type="text/css">
+      #mkwsTermlists div.facet {
+      float:left;
+      width: 30%;
+      margin: 0.3em;
+      }
+      #mkwsStat {
+      text-align: right;
+      }
+    </style>
+  </head>
+  <body>
+    <table width="100%" border="0">
+      <tr>
+        <td>
+          <div id="mkwsSwitch"></div>
+          <div id="mkwsLang"></div>
+          <div id="mkwsSearch"></div>
+        </td>
+      </tr>
+      <tr>
+        <td>
+          <div style="height:500px; overflow: auto">
+            <div id="mkwsPager"></div>
+            <div id="mkwsNavi"></div>
+            <div id="mkwsRecords"></div>
+            <div id="mkwsTargets"></div>
+            <div id="mkwsRanking"></div>
+          </div>
+        </td>
+      </tr>
+      <tr>
+        <td>
+          <div style="height:300px; overflow: hidden">
+            <div id="mkwsTermlists"></div>
+          </div>
+        </td>
+      </tr>
+      <tr>
+        <td>
+          <div id="mkwsStat"></div>
+        </td>
+      </tr>
+    </table>
+  </body>
+</html>
diff --git a/examples/htdocs/index-mike.html b/examples/htdocs/index-mike.html
new file mode 100644 (file)
index 0000000..69cbc96
--- /dev/null
@@ -0,0 +1,29 @@
+<html>
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    <title>MKWS demo: Mike's playground</title>
+    <link rel="stylesheet" href="mkwsStyle.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/libjs-pz2/pz2api.1.js"></script>
+    <script type="text/javascript" src="mkws.js"></script>
+  </head>
+  <body>
+    <div id="mkwsSwitch"></div>
+    <div id="mkwsLang"></div>
+    <div id="mkwsSearch"></div>
+    <div id="mkwsResults"></div>
+    <div id="mkwsTargets"></div>
+    <div id="mkwsStat"></div>
+    <div id="mkwsMOTD">
+      <p>
+       <b>Welcome to the MasterKey Widget Set demo.</b>
+      </p>
+      <p>
+       Enter a search above to begin, or
+       <a href="http://mkws.indexdata.com/"
+          >Visit the MKWS home page to find out more</a>.
+      </p>
+    </div>
+  </body>
+</html>
+
diff --git a/examples/htdocs/index-mkws.html b/examples/htdocs/index-mkws.html
new file mode 100644 (file)
index 0000000..570f42e
--- /dev/null
@@ -0,0 +1,135 @@
+<html>
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    <title>MKWS: the MasterKey Widget Set</title>
+    <style type="text/css">
+      body {
+      font-family: Gill Sans, "Gillius ADF", Gillius, GilliusADF, Sans-Serif;
+      }
+      h1 { color: #606060 }
+      p { font-weight: bold }
+    </style>
+  </head>
+  <body>
+    <h1>MKWS: the MasterKey Widget Set</h1>
+    <p>
+      This site contains tools, not content:
+    </p>
+    <ul>
+      <li>
+        <a href="mkws.js">mkws.js</a>
+        --
+        JavaScript code that powers the MasterKey Widget Set
+      </li>
+      <li>
+        <a href="/libjs-pz2/pz2api.1.js">/libjs-pz2/pz2api.1.js</a>
+        --
+        Low-level JavaScript library for access to the MasterKey web
+        service.
+      </li>
+      <li>
+        <a href="mkws-complete.js"
+                >mkws-complete.js</a>
+        --
+        A single large JavaScript file containing everything needed for
+        MKWS to work: the widget-set itself, the API library, and any
+        additional prerequisites such as jQuery.
+      </li>
+      <li>
+        <a href="mkwsStyle.css">mkwsStyle.css</a>
+        --
+        A stylesheet which styles only MasterKey widgets, and does not
+        otherwise interfere with application-site's styles.
+    <!--
+        <p style="color:darkred">
+          Note. This is not yet quite true: the stylesheet needs tweaking
+          to make it more specific to only the MKWS components. At present
+          it spills over into styling parts of the containing site, too.
+        </p>
+    -->
+      </li>
+    </ul>
+    <p>
+      For examples of how to use the widget-set, see:
+    </p>
+    <ul>
+      <li>
+        A very simple application at
+        <a href="http://somesite.indexdata.com/"
+                >http://somesite.indexdata.com/</a>.
+        It's worth viewing the source to see how small it is.
+      </li>
+      <li>
+        <a href="http://somesite.indexdata.com/index-full.html"
+           >A more detailed version</a>
+       that contains a configuration structure instead of accepting
+        the defaults. Includes a custom translation option to present
+        the application in Arabic.
+      </li>
+      <li>
+        The
+        <a href="http://somesite.indexdata.com/index-jquery.html"
+           >jQuery plugin</a>
+        version, consisting of a single line of JavaScript code.
+      </li>
+      <li>
+       An application that
+       <a href="http://somesite.indexdata.com/index-lowlevel.html"
+          >uses lower-level MKWS components</a>
+       rather than the all-in-one <tt>#mkwsResults</tt> division,
+       allowing it to use a rather different layout.
+      </li>
+      <li>
+        <a href="http://somesite.indexdata.com/index-mobile.html"
+           >A version suitable for mobile devices</a>,
+       with a responsive design that moves components around
+        depending on the screen size.
+      </li>
+      <li>
+        <a href="http://somesite.indexdata.com/index-popup.html"
+           >A version that uses a jQuery popup</a>.
+      </li>
+      <li>
+        An existing web-site,
+        <a href="http://sagp.miketaylor.org.uk/"
+           >The Self-Appointed Grammar Police</a>,
+        which has been fitted with an MKWS searching widget.
+        (See also the MKWS-widget customisations in
+        <a href="http://sagp.miketaylor.org.uk/style.css"
+           >that site's stylesheet</a>.)
+      </li>
+      <li>
+       Another existing web-site,
+        <a href="http://zthes.z3950.org/"
+           >The Zthes specifications</a>,
+       which has been fitted with a popup MKWS search-box.
+      </li>
+    </ul>
+    <p>
+      The set of targets can be maintained:
+    </p>
+    <ul>
+      <li>
+       Use the main
+       <a href="http://mk2.indexdata.com/console/"
+          >MasterKey Admin Console</a>,
+       and act as the "MK Demo" library administrator.
+      </li>
+    </ul>
+    <p>
+      Documentation is as yet in short supply:
+    </p>
+    <ul>
+      <li>
+        The <a href="README"
+               >README</a> (which may not be fully up to
+        date).
+      </li>
+      <li>
+        The <a href="html-structure.txt"
+               >structure of the HTML generated by the MKWS widgets</a>,
+        which can be used to guide the customisation of its CSS styles.
+      </li>
+    </ul>
+  </body>
+</html>
diff --git a/examples/htdocs/index-mobile.html b/examples/htdocs/index-mobile.html
new file mode 100644 (file)
index 0000000..decaf1c
--- /dev/null
@@ -0,0 +1,43 @@
+<?xml version="1.0"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<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: mobile-screen resizing</title>
+    <link rel="stylesheet" href="http://mkws.indexdata.com/mkwsStyle.css" />
+    <script type="text/javascript">
+       var mkws_config = {
+               lang: "da",
+               debug: 1,
+               use_service_proxy: true,
+               switch_menu: false,
+               lang_menu: true,
+               lang_display: ["da", "en"],
+               sort_default: "relevance",
+               query_width: 50,
+               responsive_design: true,
+               facets: ["authors", "sources", "subjects"],
+               responsive_design_width: 990,
+               perpage_default: 20
+        };
+    </script>
+    <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/libjs-pz2/pz2api.1.js"></script>
+    <script type="text/javascript" src="mkws.js"></script>
+  </head>
+  <body>
+    <div id="mkwsSwitch"></div>
+    <div id="mkwsLang"></div>
+    <div id="mkwsSearch"></div>
+    <div id="mkwsResults"></div>
+    <div id="mkwsTargets"></div>
+
+    <div id="mkwsShiftedTermlists"></div>
+
+    <div id="footer">
+      <div id="mkwsStat"></div>
+      <span>Powered by MKWS &copy; 2013 <a target="_new" href="http://www.indexdata.com">Index Data</a></span>
+    </div>
+  </body>
+</html>
diff --git a/examples/htdocs/index-popup.html b/examples/htdocs/index-popup.html
new file mode 100644 (file)
index 0000000..01d3218
--- /dev/null
@@ -0,0 +1,72 @@
+<html>
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    <title>MKWS demo: popup search box</title>
+    <link rel="stylesheet" href="mkwsStyle.css" />
+    <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
+
+    <script type="text/javascript">
+      mkws_config = { switch_menu: false, lang_menu: false, query_width: 40 };
+    </script>
+    <!-- <script type="text/javascript" src="http://mkws.indexdata.com/mkws-complete.js"></script> -->
+    <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/libjs-pz2/pz2api.1.js"></script>
+    <script type="text/javascript" src="mkws.js"></script>
+
+    <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
+
+    <style>
+      body { font-size: 62.5%; }
+      label, input { display:block; }
+      input.text { margin-bottom:12px; width:95%; padding: .4em; }
+      fieldset { padding:0; border:0; margin-top:25px; }
+      h1 { font-size: 1.2em; margin: .6em 0; }
+      div#users-contain { width: 350px; margin: 20px 0; }
+      div#users-contain table { margin: 1em 0; border-collapse: collapse; width: 100%; }
+      div#users-contain table td, div#users-contain table th { border: 1px solid #eee; padding: .6em 10px; text-align: left; }
+      .ui-dialog .ui-state-error { padding: .3em; }
+      .validateTips { border: 1px solid transparent; padding: 0.3em; }
+    </style>
+
+    <script>
+    $(function() {
+      $( "#dialog-form" ).dialog({
+        closeOnEscape: true,
+        autoOpen: false,
+        height: 600,
+        width: 740,
+        modal: true,
+        resizable: true,
+        buttons: {
+                Cancel: function() {
+                        $( this ).dialog( "close" );
+                }
+        },
+        close: function() {
+                // allFields.val( "" ).removeClass( "ui-state-error" );
+        }
+      });
+
+      $( "#create-user" )
+        .button()
+        .click(function() {
+                $( "#dialog-form" ).dialog( "open" );
+        });
+    });
+    </script>
+  </head>
+  <body>
+
+  <div id="dialog-form" title="Search Box">
+    <script type="text/javascript">
+      jQuery.pazpar2();
+    </script>
+  </div>
+
+  <div id="users-contain" class="ui-widget"></div>
+
+  <button id="create-user">Open Search Box</button>
+
+  </body>
+</html>
+
diff --git a/examples/htdocs/index.html b/examples/htdocs/index.html
new file mode 100644 (file)
index 0000000..687aec5
--- /dev/null
@@ -0,0 +1,16 @@
+<html>
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    <title>MKWS demo client</title>
+    <link rel="stylesheet" href="http://mkws.indexdata.com/mkwsStyle.css" />
+    <script type="text/javascript" src="http://mkws.indexdata.com/mkws-complete.js"></script>
+  </head>
+  <body>
+    <div id="mkwsSwitch"></div>
+    <div id="mkwsLang"></div>
+    <div id="mkwsSearch"></div>
+    <div id="mkwsResults"></div>
+    <div id="mkwsTargets"></div>
+    <div id="mkwsStat"></div>
+  </body>
+</html>
diff --git a/examples/htdocs/robots.txt b/examples/htdocs/robots.txt
new file mode 100644 (file)
index 0000000..1f53798
--- /dev/null
@@ -0,0 +1,2 @@
+User-agent: *
+Disallow: /
diff --git a/experiments/spclient/favicon.ico b/experiments/spclient/favicon.ico
deleted file mode 100644 (file)
index 35c4899..0000000
Binary files a/experiments/spclient/favicon.ico and /dev/null differ
diff --git a/experiments/spclient/index-full.html b/experiments/spclient/index-full.html
deleted file mode 100644 (file)
index f82d261..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<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: full configuration</title>
-    <link rel="stylesheet" href="http://mkws.indexdata.com/mkwsStyle.css" />
-    <script type="text/javascript">
-       var mkws_config = {
-               lang: "da",
-               debug: 1,
-               use_service_proxy: true,
-               switch_menu: true,
-               lang_menu: true,
-               sort_default: "relevance",
-               query_width: 50,
-               perpage_default: 20,
-               language_Arabic: {
-                       "Authors": "الكتاب",
-                       "Subjects": "المواضيع",
-                       "Sources": "مصادر",
-                       "Termlists": "العضو الأجل",
-                       "Next": "التالي",
-                       "Prev": "السابق",
-                       "Search": "بحث",
-                       "Sort by": "الترتيب حسب",
-                       "and show": "وعرض",
-                       "per page": "في كل صفحة",
-                       "Displaying": "عرض",
-                       "to": "إلى",
-                       "of": "من",
-                       "found": "أسس",
-                       "Title": "لقب",
-                       "Author": "الكاتب",
-                       "Date": "تاريخ",
-                       "Subject": "موضوع",
-                       "Location": "موقع",
-                       "Records": "أهداف",
-                       "Targets": "السجلات"
-               }
-       };
-    </script>
-    <script type="text/javascript" src="http://mkws.indexdata.com/mkws-complete.js"></script>
-  </head>
-  <body>
-    <div id="mkwsSwitch"></div>
-    <div id="mkwsLang"></div>
-    <div id="mkwsSearch"></div>
-    <div id="mkwsResults"></div>
-    <div id="mkwsTargets"></div>
-    <div id="mkwsMOTD">
-      <p>
-       <b>Welcome to the MasterKey Widget Set demo.</b>
-      </p>
-      <p>
-       Enter a search above to begin, or
-       <a href="http://mkws.indexdata.com/"
-          >Visit the MKWS home page to find out more</a>.
-      </p>
-    </div>
-    <div id="footer">
-      <div id="mkwsStat"></div>
-      <span>Powered by MKWS &copy; 2013 <a target="_new" href="http://www.indexdata.com">Index Data</a></span>
-    </div>
-  </body>
-</html>
diff --git a/experiments/spclient/index-jquery.html b/experiments/spclient/index-jquery.html
deleted file mode 100644 (file)
index e2d3e19..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-<html>
-  <head>
-    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-    <title>MKWS demo: jQuery plugin</title>
-    <link rel="stylesheet" href="http://mkws.indexdata.com/mkwsStyle.css" />
-    <script type="text/javascript" src="http://mkws.indexdata.com/mkws-complete.js"></script>
-  </head>
-  <body>
-    <script type="text/javascript">jQuery.pazpar2()</script>
-  </body>
-</html>
diff --git a/experiments/spclient/index-lowlevel.html b/experiments/spclient/index-lowlevel.html
deleted file mode 100644 (file)
index f04060d..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-<html>
-  <head>
-    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-    <title>MKWS demo: low-level subcomponents</title>
-    <link rel="stylesheet" href="http://mkws.indexdata.com/mkwsStyle.css" />
-    <script type="text/javascript">
-      var mkws_config = { switch_menu: true };
-    </script>
-    <script type="text/javascript" src="http://mkws.indexdata.com/mkws-complete.js"></script>
-    <style type="text/css">
-      #mkwsTermlists div.facet {
-      float:left;
-      width: 30%;
-      margin: 0.3em;
-      }
-      #mkwsStat {
-      text-align: right;
-      }
-    </style>
-  </head>
-  <body>
-    <table width="100%" border="0">
-      <tr>
-        <td>
-          <div id="mkwsSwitch"></div>
-          <div id="mkwsLang"></div>
-          <div id="mkwsSearch"></div>
-        </td>
-      </tr>
-      <tr>
-        <td>
-          <div style="height:500px; overflow: auto">
-            <div id="mkwsPager"></div>
-            <div id="mkwsNavi"></div>
-            <div id="mkwsRecords"></div>
-            <div id="mkwsTargets"></div>
-            <div id="mkwsRanking"></div>
-          </div>
-        </td>
-      </tr>
-      <tr>
-        <td>
-          <div style="height:300px; overflow: hidden">
-            <div id="mkwsTermlists"></div>
-          </div>
-        </td>
-      </tr>
-      <tr>
-        <td>
-          <div id="mkwsStat"></div>
-        </td>
-      </tr>
-    </table>
-  </body>
-</html>
diff --git a/experiments/spclient/index-mike.html b/experiments/spclient/index-mike.html
deleted file mode 100644 (file)
index 69cbc96..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-<html>
-  <head>
-    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-    <title>MKWS demo: Mike's playground</title>
-    <link rel="stylesheet" href="mkwsStyle.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/libjs-pz2/pz2api.1.js"></script>
-    <script type="text/javascript" src="mkws.js"></script>
-  </head>
-  <body>
-    <div id="mkwsSwitch"></div>
-    <div id="mkwsLang"></div>
-    <div id="mkwsSearch"></div>
-    <div id="mkwsResults"></div>
-    <div id="mkwsTargets"></div>
-    <div id="mkwsStat"></div>
-    <div id="mkwsMOTD">
-      <p>
-       <b>Welcome to the MasterKey Widget Set demo.</b>
-      </p>
-      <p>
-       Enter a search above to begin, or
-       <a href="http://mkws.indexdata.com/"
-          >Visit the MKWS home page to find out more</a>.
-      </p>
-    </div>
-  </body>
-</html>
-
diff --git a/experiments/spclient/index-mkws.html b/experiments/spclient/index-mkws.html
deleted file mode 100644 (file)
index 570f42e..0000000
+++ /dev/null
@@ -1,135 +0,0 @@
-<html>
-  <head>
-    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-    <title>MKWS: the MasterKey Widget Set</title>
-    <style type="text/css">
-      body {
-      font-family: Gill Sans, "Gillius ADF", Gillius, GilliusADF, Sans-Serif;
-      }
-      h1 { color: #606060 }
-      p { font-weight: bold }
-    </style>
-  </head>
-  <body>
-    <h1>MKWS: the MasterKey Widget Set</h1>
-    <p>
-      This site contains tools, not content:
-    </p>
-    <ul>
-      <li>
-        <a href="mkws.js">mkws.js</a>
-        --
-        JavaScript code that powers the MasterKey Widget Set
-      </li>
-      <li>
-        <a href="/libjs-pz2/pz2api.1.js">/libjs-pz2/pz2api.1.js</a>
-        --
-        Low-level JavaScript library for access to the MasterKey web
-        service.
-      </li>
-      <li>
-        <a href="mkws-complete.js"
-                >mkws-complete.js</a>
-        --
-        A single large JavaScript file containing everything needed for
-        MKWS to work: the widget-set itself, the API library, and any
-        additional prerequisites such as jQuery.
-      </li>
-      <li>
-        <a href="mkwsStyle.css">mkwsStyle.css</a>
-        --
-        A stylesheet which styles only MasterKey widgets, and does not
-        otherwise interfere with application-site's styles.
-    <!--
-        <p style="color:darkred">
-          Note. This is not yet quite true: the stylesheet needs tweaking
-          to make it more specific to only the MKWS components. At present
-          it spills over into styling parts of the containing site, too.
-        </p>
-    -->
-      </li>
-    </ul>
-    <p>
-      For examples of how to use the widget-set, see:
-    </p>
-    <ul>
-      <li>
-        A very simple application at
-        <a href="http://somesite.indexdata.com/"
-                >http://somesite.indexdata.com/</a>.
-        It's worth viewing the source to see how small it is.
-      </li>
-      <li>
-        <a href="http://somesite.indexdata.com/index-full.html"
-           >A more detailed version</a>
-       that contains a configuration structure instead of accepting
-        the defaults. Includes a custom translation option to present
-        the application in Arabic.
-      </li>
-      <li>
-        The
-        <a href="http://somesite.indexdata.com/index-jquery.html"
-           >jQuery plugin</a>
-        version, consisting of a single line of JavaScript code.
-      </li>
-      <li>
-       An application that
-       <a href="http://somesite.indexdata.com/index-lowlevel.html"
-          >uses lower-level MKWS components</a>
-       rather than the all-in-one <tt>#mkwsResults</tt> division,
-       allowing it to use a rather different layout.
-      </li>
-      <li>
-        <a href="http://somesite.indexdata.com/index-mobile.html"
-           >A version suitable for mobile devices</a>,
-       with a responsive design that moves components around
-        depending on the screen size.
-      </li>
-      <li>
-        <a href="http://somesite.indexdata.com/index-popup.html"
-           >A version that uses a jQuery popup</a>.
-      </li>
-      <li>
-        An existing web-site,
-        <a href="http://sagp.miketaylor.org.uk/"
-           >The Self-Appointed Grammar Police</a>,
-        which has been fitted with an MKWS searching widget.
-        (See also the MKWS-widget customisations in
-        <a href="http://sagp.miketaylor.org.uk/style.css"
-           >that site's stylesheet</a>.)
-      </li>
-      <li>
-       Another existing web-site,
-        <a href="http://zthes.z3950.org/"
-           >The Zthes specifications</a>,
-       which has been fitted with a popup MKWS search-box.
-      </li>
-    </ul>
-    <p>
-      The set of targets can be maintained:
-    </p>
-    <ul>
-      <li>
-       Use the main
-       <a href="http://mk2.indexdata.com/console/"
-          >MasterKey Admin Console</a>,
-       and act as the "MK Demo" library administrator.
-      </li>
-    </ul>
-    <p>
-      Documentation is as yet in short supply:
-    </p>
-    <ul>
-      <li>
-        The <a href="README"
-               >README</a> (which may not be fully up to
-        date).
-      </li>
-      <li>
-        The <a href="html-structure.txt"
-               >structure of the HTML generated by the MKWS widgets</a>,
-        which can be used to guide the customisation of its CSS styles.
-      </li>
-    </ul>
-  </body>
-</html>
diff --git a/experiments/spclient/index-mobile.html b/experiments/spclient/index-mobile.html
deleted file mode 100644 (file)
index decaf1c..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<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: mobile-screen resizing</title>
-    <link rel="stylesheet" href="http://mkws.indexdata.com/mkwsStyle.css" />
-    <script type="text/javascript">
-       var mkws_config = {
-               lang: "da",
-               debug: 1,
-               use_service_proxy: true,
-               switch_menu: false,
-               lang_menu: true,
-               lang_display: ["da", "en"],
-               sort_default: "relevance",
-               query_width: 50,
-               responsive_design: true,
-               facets: ["authors", "sources", "subjects"],
-               responsive_design_width: 990,
-               perpage_default: 20
-        };
-    </script>
-    <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/libjs-pz2/pz2api.1.js"></script>
-    <script type="text/javascript" src="mkws.js"></script>
-  </head>
-  <body>
-    <div id="mkwsSwitch"></div>
-    <div id="mkwsLang"></div>
-    <div id="mkwsSearch"></div>
-    <div id="mkwsResults"></div>
-    <div id="mkwsTargets"></div>
-
-    <div id="mkwsShiftedTermlists"></div>
-
-    <div id="footer">
-      <div id="mkwsStat"></div>
-      <span>Powered by MKWS &copy; 2013 <a target="_new" href="http://www.indexdata.com">Index Data</a></span>
-    </div>
-  </body>
-</html>
diff --git a/experiments/spclient/index-popup.html b/experiments/spclient/index-popup.html
deleted file mode 100644 (file)
index 01d3218..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-<html>
-  <head>
-    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-    <title>MKWS demo: popup search box</title>
-    <link rel="stylesheet" href="mkwsStyle.css" />
-    <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
-
-    <script type="text/javascript">
-      mkws_config = { switch_menu: false, lang_menu: false, query_width: 40 };
-    </script>
-    <!-- <script type="text/javascript" src="http://mkws.indexdata.com/mkws-complete.js"></script> -->
-    <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/libjs-pz2/pz2api.1.js"></script>
-    <script type="text/javascript" src="mkws.js"></script>
-
-    <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
-
-    <style>
-      body { font-size: 62.5%; }
-      label, input { display:block; }
-      input.text { margin-bottom:12px; width:95%; padding: .4em; }
-      fieldset { padding:0; border:0; margin-top:25px; }
-      h1 { font-size: 1.2em; margin: .6em 0; }
-      div#users-contain { width: 350px; margin: 20px 0; }
-      div#users-contain table { margin: 1em 0; border-collapse: collapse; width: 100%; }
-      div#users-contain table td, div#users-contain table th { border: 1px solid #eee; padding: .6em 10px; text-align: left; }
-      .ui-dialog .ui-state-error { padding: .3em; }
-      .validateTips { border: 1px solid transparent; padding: 0.3em; }
-    </style>
-
-    <script>
-    $(function() {
-      $( "#dialog-form" ).dialog({
-        closeOnEscape: true,
-        autoOpen: false,
-        height: 600,
-        width: 740,
-        modal: true,
-        resizable: true,
-        buttons: {
-                Cancel: function() {
-                        $( this ).dialog( "close" );
-                }
-        },
-        close: function() {
-                // allFields.val( "" ).removeClass( "ui-state-error" );
-        }
-      });
-
-      $( "#create-user" )
-        .button()
-        .click(function() {
-                $( "#dialog-form" ).dialog( "open" );
-        });
-    });
-    </script>
-  </head>
-  <body>
-
-  <div id="dialog-form" title="Search Box">
-    <script type="text/javascript">
-      jQuery.pazpar2();
-    </script>
-  </div>
-
-  <div id="users-contain" class="ui-widget"></div>
-
-  <button id="create-user">Open Search Box</button>
-
-  </body>
-</html>
-
diff --git a/experiments/spclient/index.html b/experiments/spclient/index.html
deleted file mode 100644 (file)
index 687aec5..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-<html>
-  <head>
-    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-    <title>MKWS demo client</title>
-    <link rel="stylesheet" href="http://mkws.indexdata.com/mkwsStyle.css" />
-    <script type="text/javascript" src="http://mkws.indexdata.com/mkws-complete.js"></script>
-  </head>
-  <body>
-    <div id="mkwsSwitch"></div>
-    <div id="mkwsLang"></div>
-    <div id="mkwsSearch"></div>
-    <div id="mkwsResults"></div>
-    <div id="mkwsTargets"></div>
-    <div id="mkwsStat"></div>
-  </body>
-</html>
diff --git a/experiments/spclient/robots.txt b/experiments/spclient/robots.txt
deleted file mode 100644 (file)
index 1f53798..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-User-agent: *
-Disallow: /