1 % The MasterKey Widget Set
2 % Mike Taylor; Wolfram Schneider
9 This is the MasterKey Widget Set. It provides searching and other
10 information-related functionality which can be inserted into existing
11 web pages as small snippets of HTML.
13 As much of the searching functionality as possible is hosted on
14 <http://mkws.indexdata.com/>
15 so that very simple websites such as
16 <http://example.indexdata.com/>
17 can have MasterKey searching with minimal effort.
19 The following files are hosted on `mkws.indexdata.com`:
21 * `mkws.js` (and its compressed version `mkws.min.js`)
22 * `/pazpar2/js/pz2.js`
23 * `mkws-complete.js` (and its compressed version `mkws-complete.min.js`)
24 -- a single file consisting of `mkws.js` together with the files it
25 uses: `pz2.js` jQuery, jQuery-JSON and Handlebars.
26 * Local copy of `jquery-1.10.0.min.js`
27 * Local copy of `jquery.json-2.4.js`
28 * Local copy of `handlebars-v1.1.2.js`
35 Any modern browser will work fine. JavaScript must be enabled.
39 * Google Chrome 27 or later
42 * iOS 6.x (iPhone, iPad)
45 Not supported: IE6, IE7
48 Configuring a client (short version)
49 ------------------------------------
51 The application's HTML must contains the following elements as well as
52 whatever makes up the application itself:
57 <link rel="stylesheet" href="http://mkws.indexdata.com/mkws.css" />
58 <script type="text/javascript" src="http://mkws.indexdata.com/mkws-complete.js"></script>
61 Then the following special `<div>`s can be added (with no content), and
62 will be filled in by MKWS:
64 * `<div id="mkwsSwitch"></div>` -- switch between record and target views
65 * `<div id="mkwsLang"></div> ` -- switch between English, Danish and German
66 * `<div id="mkwsSearch"></div>` -- search box and button
67 * `<div id="mkwsResults"></div>` -- result list, including pager/sorting
68 * `<div id="mkwsTargets"></div>` -- target list, including status
69 * `<div id="mkwsStat"></div>` -- summary statistics
71 You can configure and control the client by creating an `mkws_config`
72 object before loading the widget-set. Here is an example showing how
73 to use options to offer a choice between English and German UI
74 languages, and to default to sorting by title ascending:
77 <script type="text/javascript">
79 lang_options: ["en", "de" ],
80 sort_default: "title:1"
85 For much more detail, see:
87 * [Embedded metasearching with the MasterKey Widget Set](whitepaper.html)
88 * [MKWS Target Selection](library-configuration.html)
93 Copyright 2014 IndexData ApS. <http://indexdata.com>