X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=tools%2Fhtdocs%2Findex.html;h=c1341be181a8fb51a958e4c0b82c97924111198f;hb=7722615c17cf1b36d1d2f25c6b60eadfc04653ee;hp=2a67a4b74fb8b57090455cf530b3d3f2e8725840;hpb=10963c36b208e35c7430ab32307df4b73fca49a1;p=mkws-moved-to-github.git diff --git a/tools/htdocs/index.html b/tools/htdocs/index.html index 2a67a4b..c1341be 100644 --- a/tools/htdocs/index.html +++ b/tools/htdocs/index.html @@ -6,10 +6,17 @@ body { font-family: Gill Sans, "Gillius ADF", Gillius, GilliusADF, Sans-Serif; } - h1 { font-weight: normal; color: #606060 } - h2 { font-size: 100% } - .pane { background: #eee; border-radius: 1em; - padding: 0.25em 1em; margin: 0.75em; } + h1, h3 { font-weight: normal; color: #606060 } + h2 { margin-top: 0.5em } + .pane { padding: 0em 1em; margin: 0.75em; + border: 0.5em solid #eee; + border-radius: 1em; + background-image: url('images/mkws-logo-48x48-light.png'); + background-repeat: no-repeat; + background-position: right top; + background-color: #eee; + } + .nologo { background-image: none } pre { background: #ddd; padding: 0.5em; } @@ -18,7 +25,7 @@ style="float:right; margin: 1.5em"/>

MKWS: the MasterKey Widget Set

-
+
-

Example

+

A minimal example

Here is a completely functional (though ugly) MKWS-based searching application: @@ -67,6 +74,9 @@

Tools

+

+ Here are the files that this web-site provides: +

  • mkws.js @@ -74,18 +84,26 @@ JavaScript code that powers the MasterKey Widget Set
  • - /pazpar2/js/pz2.js + pazpar2/js/pz2.js -- Low-level JavaScript library for access to the MasterKey web service.
  • + handlebars-v1.1.2.js + -- + A local copy of + the Handlebars templating library, + since it doesn't like to be hotlinked. +
  • +
  • mkws-complete.js -- 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. + MKWS to work: the widget-set itself, the API library, and + the prerequisites jQuery and Handlebars.
  • mkws.css @@ -94,72 +112,141 @@ otherwise interfere with application-site's styles.
+

+ Minified versions of the MKWS JavaScript files are also available: +

+

+

+ (This domain also hosts two web-service endpoints that are used by + running MKWS-based applications: + /service-proxy-auth + is used to authenticate new sessions and + /service-proxy/ + is the main endpoint for searching and retrieval. But there is + no need to use these directly: the widgets take care of that.) + +

-

For examples of how to use the widget-set, see:

+

Versions

+

+ The links above to the various forms of the widget-set JavaScript + (mkws.js, + mkws-complete.js, + mkws.min.js + and + mkws-complete.min.js) + are always to the current versions of those + files. Applications that rely on a particular version can + instead use the specific numbered versions in + the releases area, + for example + releases/mkws-0.9.1.js. +

+

+ The current version number is always in + the VERSION file. +

+

+ Version history is in + the NEWS file. +

+
+ +
+

Examples using the widget-set

+

+ It's worth viewing the source of these to see how small they + are and how various things are done. +

+

Simple examples

+ +

Advanced examples

+ + +

Non-standard interfaces

+
-

The set of targets can be maintained:

- +

Target selection

+

+ MKWS comes pre-configured to search in a set of a dozen or so + open-access targets, as a proof of concept. But you'll want + to use it to search your own selection of targets -- some open + access, some subscription. +

+

+ We can set that up for you: email us on + info@indexdata.com. +

+ +

+ Copyright © 2013 IndexData ApS. + http://indexdata.com +