Change all references to libjs-pz2/pz2api.1.js to pazpar2/js/pz2.js
[mkws-moved-to-github.git] / examples / htdocs / popup.html
1 <html>
2   <head>
3     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4     <title>MKWS demo: popup search box</title>
5
6     <link rel="stylesheet" type="text/css" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
7     <link rel="stylesheet" type="text/css" href="http://mkws.indexdata.com/mkws.css" />
8
9     <script type="text/javascript">
10       mkws_config = {
11         show_lang: false,
12         perpage_default: 10,
13         query_width: 50,
14         service_proxy_auth: "http://mkws.indexdata.com/service-proxy-auth"
15      };
16     </script>
17
18     <script type="text/javascript" src="http://code.jquery.com/jquery-1.10.0.min.js"></script>
19     <!-- legacy libs for testing
20     <script type="text/javascript" src="http://code.jquery.com/jquery-1.4.4.min.js"></script>
21     <script src="http://code.jquery.com/ui/1.8.0/jquery-ui.min.js"></script>
22     -->
23
24     <script type="text/javascript" src="http://mkws.indexdata.com/pazpar2/js/pz2.js"></script>
25     <script type="text/javascript" src="http://mkws.indexdata.com/mkws.js"></script>
26
27   </head>
28   <body>
29     <script type="text/javascript">
30      jQuery.pazpar2({ "layout":"popup", width: 800, height: 500 } );
31     </script>
32
33     <pre>
34       An embryonic MasterKey Widget Set
35 =================================
36
37 This directory contains an embryonic MasterKey Widget Set, based
38 initially on "jsdemo" though now far removed from those beginnnings.
39
40
41 How this works
42 --------------
43
44 The goal is to make it that as much of the searching functionality as
45 possible is hosted on
46         http://mkws.indexdata.com/
47 so that very simple websites such as
48         http://example.indexdata.com/
49 can have MasterKey searching with minimal effort.
50
51 The following files must be hosted on mkws.indexdata.com:
52         mkws.js
53         mkws.css
54         /pazpar2/js/pz2.js (*)
55
56 The following files make up the application:
57         index.html
58         favicon.ico [optional]
59         robots.txt [optional]
60
61 (At present, the client application's configuruation also needs an
62 Alias for /service-proxy/, to avoid cross-site scripting issues. We
63 will fix this.)
64
65 (*) if you don't have already installed pazpar2 on the machine, you can
66 do it by installing a debian package or check it out from GIT:
67 $ git clone ssh://git.indexdata.com:222/home/git/pub/pazpar2
68
69 Configuring a client
70 --------------------
71
72 The application's HTML must contains the following elements as well as
73 whatever makes up the application itself:
74
75 [...]
76     </pre>
77     <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.min.js"></script>
78   </body>
79 </html>