3 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4 <title>MKWS: the MasterKey Widget Set</title>
5 <style type="text/css">
7 font-family: Gill Sans, "Gillius ADF", Gillius, GilliusADF, Sans-Serif;
9 h1, h3 { font-weight: normal; color: #606060 }
10 h2 { margin-top: 0.5em }
11 .pane { padding: 0em 1em; margin: 0.75em;
12 border: 0.5em solid #eee;
14 background-image: url('images/mkws-logo-48x48-light.png');
15 background-repeat: no-repeat;
16 background-position: right top;
17 background-color: #eee;
19 .nologo { background-image: none }
20 pre { background: #ddd; padding: 0.5em; }
24 <img src="images/mkws-logo-300px.png" alt="MKWS logo" =
25 style="float:right; margin: 1.5em"/>
26 <h1>MKWS: the MasterKey Widget Set</h1>
28 <div class="pane nologo">
29 <h2>Add metasearching to your web-site painlessly</h2>
31 The MasterKey Widget Set provides the easiest possible way to
32 enhance an existing web-site with customised searching across
33 multiple sources, ranking and merging the results.
36 All you need to do is pull in our JavaScript and optional
37 stylesheet, then add <tt><div></tt>s to your page that
38 have special <tt>id</tt> attributes. We do the rest.
43 <h2>A minimal example</h2>
45 Here is a completely functional (though ugly) MKWS-based
46 searching application:
50 <script type="text/javascript"
51 src="http://mkws.indexdata.com/mkws-complete.js"></script>
52 <div id="mkwsSearch"></div>
53 <div id="mkwsResults"></div></pre>
56 That's it. A complete metasearching application. Everything
62 <h2>Documentation</h2>
65 The <a href="README.html">README</a> -- mostly technical details.
68 The <a href="whitepaper.html">whitepaper, including a
69 reference section.</a>
70 This is a much better introduction.
78 Here are the files that this web-site provides:
82 <a href="mkws.js">mkws.js</a>
84 JavaScript code that powers the MasterKey Widget Set
87 <a href="pazpar2/js/pz2.js">pazpar2/js/pz2.js</a>
89 Low-level JavaScript library for access to the MasterKey web
93 <a href="handlebars-v1.1.2.js">handlebars-v1.1.2.js</a>
96 <a href="http://handlebarsjs.com/"
97 >the Handlebars templating library</a>,
98 since it doesn't like to be hotlinked.
101 <a href="mkws-complete.js"
102 >mkws-complete.js</a>
104 A single large JavaScript file containing everything needed for
105 MKWS to work: the widget-set itself, the API library, and
106 the prerequisites jQuery and Handlebars.
109 <a href="mkws.css">mkws.css</a>
111 A stylesheet which styles only MasterKey widgets, and does not
112 otherwise interfere with application-site's styles.
116 Minified versions of the MKWS JavaScript files are also available:
120 <a href="mkws.min.js">mkws.min.js</a>
123 <a href="mkws-complete.min.js">mkws-complete.min.js</a>
127 (This domain also hosts two web-service endpoints that are used by
128 running MKWS-based applications:
129 <tt>/service-proxy-auth</tt>
130 is used to authenticate new sessions and
131 <code>/service-proxy/</code>
132 is the main endpoint for searching and retrieval. But there is
133 no need to use these directly: the widgets take care of that.)
139 <h2>Examples using the widget-set</h2>
141 It's worth viewing the source of these to see how small they
142 are and how various things are done.
144 <h3>Simple examples</h3>
147 A very simple application at
148 <a href="http://example.indexdata.com/"
149 >http://example.indexdata.com/</a>.
152 <a href="http://example.indexdata.com/minimal.html"
153 >The absolutely minimal application</a>
157 <a href="http://example.indexdata.com/language.html"
158 >A more detailed version</a>
159 that contains a configuration structure instead of accepting
160 the defaults. Includes a custom translation option to present
161 the application in Arabic.
164 <a href="http://example.indexdata.com/mobile.html"
165 >A version suitable for mobile devices</a>,
166 with a responsive design that moves components around
167 depending on the screen size.
171 <h3>Advanced examples</h3>
175 <a href="http://example.indexdata.com/lowlevel.html"
176 >uses lower-level MKWS components</a>
177 rather than the all-in-one <tt>#mkwsResults</tt> division,
178 allowing it to use a rather different layout.
181 An application that specifies how to display brief and full records
182 <a href="http://example.indexdata.com/templates.html"
183 >using Handlebar templates</a>.
185 <a href="http://handlebarsjs.com/"
186 >the templating language</a>.)
189 <a href="http://example.indexdata.com/localauth.html"
190 >An application that uses a local authentication regime</a>,
191 and the corresponding
192 <a href="http://example.indexdata.com/apache-config.txt"
193 >Apache2 configuration stanza</a>.
197 <a href="http://example.indexdata.com/jquery.html"
199 version, consisting of a single JavaScript statement.
202 <a href="http://example.indexdata.com/popup.html"
203 >A version that uses a jQuery popup</a>.
207 <h3>Non-standard interfaces</h3>
210 <a href="http://example.indexdata.com/dict.html"
211 >An application that uses MKWS to find dictionary
212 definitions of words when you highlight them</a>.
215 <a href="http://example.indexdata.com/auto.html"
216 >An application that runs an automatic search on load</a>.
219 An existing web-site,
220 <a href="http://sagp.miketaylor.org.uk/"
221 >The Self-Appointed Grammar Police</a>,
222 which has been fitted with an MKWS searching widget.
223 (See also the MKWS-widget customisations in
224 <a href="http://sagp.miketaylor.org.uk/style.css"
225 >that site's stylesheet</a>.)
229 Another existing web-site,
230 <a href="http://zthes.z3950.org/"
231 >The Zthes specifications</a>,
232 which has been fitted with a popup MKWS search-box.
239 <h2>Target selection</h2>
241 MKWS comes pre-configured to search in a set of a dozen or so
242 open-access targets, as a proof of concept. But you'll want
243 to use it to search your own selection of targets -- some open
244 access, some subscription.
247 We can set that up for you: email us on
248 <a href="mailto:info@indexdata.com"
249 >info@indexdata.com</a>.
253 <p style="text-align: right; font-size: small">
254 Copyright © 2013 IndexData ApS.
255 <a href="http://indexdata.com"><code>http://indexdata.com</code></a>