display an error alert if service proxy authentifiction failed
[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() { alert("service proxy authentifiction failed"); });
26         } 
27       } 
28     );
29   </script>
30  </head>
31  
32  <body onload="domReady();">
33
34   <div id="noscript">
35     <noscript>
36         <p>Your browser does not support or allow execution of scripts required by this site to work properly.</p>
37         <p>If you run Internet Explorer 6+ or FireFox 2.0+ and see this message ensure the JavaScript is enabled in your browser.</p>
38         <p>If you run Internet Explorer 7 add the site to the Trusted Sites group.</p>
39         <p>Finally, check your personal firewall settings.</p>
40     </noscript>
41   </div>
42
43   <div id="switchmenu">
44    <a href="#" onclick="switchView('recordview')">Record Browser</a>
45    <span> | </span>
46    <a href="#" onclick="switchView('targetview')">Target Info</a>
47   </div>
48  
49   <div id="heading">
50    <table width="100%" border="0" cellpadding="6" cellspacing="0">
51     <tr>
52      <td width="250" height="100" align="center"><b>Pazpar2</b></td>
53      <td>
54       <form id="searchForm" name="search">
55        <input id="query" type="text" size="50"/>
56        <input id="button" type="submit" value="Search"/>
57       </form>
58      </td>
59      <td>
60       <a href="http://www.indexdata.com"><img border="0" title="IndexData home page" src="indexdata_logo.png" height="98" align="right" alt="" /></a>
61      </td>
62     </tr>
63    </table>
64   </div>
65   
66   <div id="recordview">
67    <table width="100%" border="0" cellpadding="6" cellspacing="0">
68     <tr>
69      <td width="250" valign="top">
70       <div id="termlist"></div>
71      </td>
72      <td valign="top">
73       <div id="ranking">
74        <form name="select">
75         Sort by
76         <select name="sort" id="sort">
77          <option value="relevance" selected="selected">relevance</option>
78          <option value="title:1">title</option>
79          <option value="date:0">newest</option>
80          <option value="date:1">oldest</option>
81         </select>
82         and show 
83         <select name="perpage" id="perpage">
84          <option value="10">10</option>
85          <option value="20" selected="selected">20</option>
86          <option value="30">30</option>
87          <option value="50">50</option>
88         </select>
89         per page.
90        </form>
91       </div>
92       <div id="pager"></div>
93       <div id="navi"></div>
94       <div id="results"></div>
95      </td>
96     </tr>
97    </table>
98   </div>
99   
100   <div id="targetview" style="display: none">
101    <div id="bytarget">
102        No information available yet.
103    </div>
104   </div>
105   
106   <div id="footer">
107       <div id="stat"></div>
108       <span>Copyright &copy; 1999-2013 by <a href="http://www.indexdata.com">Index Data</a></span> 
109   </div>
110
111  </body>
112 </html>