Ignore generated file
[mkws-moved-to-github.git] / experiments / spdemo / index.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
4 <html xmlns="http://www.w3.org/1999/xhtml">
5
6  <head>
7   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8   <title>Pazpar2 demo client</title>
9   <link rel="stylesheet" href="styles.css"></link>
10   <script type="text/javascript" src="http://code.jquery.com/jquery-1.10.0.min.js"></script>
11
12   <!-- pre configure -->
13   <script type="text/javascript">
14     var useServiceProxy = true;
15   </script>
16
17   <script type="text/javascript" src="pz2.js"></script>
18   <script type="text/javascript" src="example_client.js"></script>
19
20   <!-- post configure -->
21   <script type="text/javascript">
22     $(document).ready(function() {
23         if (useServiceProxy) {
24             var jqxhr = jQuery.get(authURLServiceProxy)
25                 .fail(function() {
26                   alert("service proxy authentifiction failed for URL " + authURLServiceProxy + " , give up!");
27                 })
28                 .success(function(data) {
29                    if (!jQuery.isXMLDoc(data)) {
30                      alert("service proxy auth response document is not valid XML document, give up!");
31                      return;
32                    }
33
34                    var status = $(data).find("status");
35                    if (status.text() != "OK") {
36                     alert("service proxy auth repsonse status: " + status.text() + ", give up!");
37                     return;
38                    }
39                   });
40         }
41       }
42     );
43   </script>
44  </head>
45
46  <body onload="domReady();">
47
48   <div id="noscript">
49     <noscript>
50         <p>Your browser does not support or allow execution of scripts required by this site to work properly.</p>
51         <p>If you run Internet Explorer 6+ or FireFox 2.0+ and see this message ensure the JavaScript is enabled in your browser.</p>
52         <p>If you run Internet Explorer 7 add the site to the Trusted Sites group.</p>
53         <p>Finally, check your personal firewall settings.</p>
54     </noscript>
55   </div>
56
57   <div id="switchmenu">
58    <a href="#" onclick="switchView('recordview')">Record Browser</a>
59    <span> | </span>
60    <a href="#" onclick="switchView('targetview')">Target Info</a>
61   </div>
62
63   <div id="heading">
64    <table width="100%" border="0" cellpadding="6" cellspacing="0">
65     <tr>
66      <td width="250" height="100" align="center"><b>Pazpar2</b></td>
67      <td>
68       <form id="searchForm" name="search">
69        <input id="query" type="text" size="50"/>
70        <input id="button" type="submit" value="Search"/>
71       </form>
72      </td>
73      <td>
74       <a href="http://www.indexdata.com"><img border="0" title="IndexData home page" src="indexdata_logo.png" height="98" align="right" alt="" /></a>
75      </td>
76     </tr>
77    </table>
78   </div>
79
80   <div id="recordview">
81    <table width="100%" border="0" cellpadding="6" cellspacing="0">
82     <tr>
83      <td width="250" valign="top">
84       <div id="termlist"></div>
85      </td>
86      <td valign="top">
87       <div id="ranking">
88        <form name="select">
89         Sort by
90         <select name="sort" id="sort">
91          <option value="relevance" selected="selected">relevance</option>
92          <option value="title:1">title</option>
93          <option value="date:0">newest</option>
94          <option value="date:1">oldest</option>
95         </select>
96         and show
97         <select name="perpage" id="perpage">
98          <option value="10">10</option>
99          <option value="20" selected="selected">20</option>
100          <option value="30">30</option>
101          <option value="50">50</option>
102         </select>
103         per page.
104        </form>
105       </div>
106       <div id="pager"></div>
107       <div id="navi"></div>
108       <div id="results"></div>
109      </td>
110     </tr>
111    </table>
112   </div>
113
114   <div id="targetview" style="display: none">
115    <div id="bytarget">
116        No information available yet.
117    </div>
118   </div>
119
120   <div id="footer">
121       <div id="stat"></div>
122       <span>Copyright &copy; 1999-2013 by <a href="http://www.indexdata.com">Index Data</a></span>
123   </div>
124
125  </body>
126 </html>