var pazpar2path = '/pazpar2/search.pz2';
if (document.location.hash == '#nosessions') {
usesessions = false;
- pazpar2path = '.';
+ pazpar2path = '/pazpar2-proxy/';
}
my_paz = new pz2( { "onshow": my_onshow,
function my_onstat(data) {
var stat = document.getElementById("stat");
- stat.innerHTML = '<span>Active clients: '+ data.activeclients
+ stat.innerHTML = '<span> -STATUS INFO- : <span>Active clients: '+ data.activeclients
+ '/' + data.clients + ' | </span>'
+ '<span>Retrieved records: ' + data.records
+ '/' + data.hits + '</span>';
details += '<tr><td><b>Location</b></td><td><b>:</b> ' + data["location"][0]["@name"] + " (" +data["location"][0]["@id"] + ")" + '</td></tr>';
recordDiv.innerHTML += '<div class="details" id="det_'+data.recid+'"><table>' + details + '</table></div>';
}
- //EOF
\ No newline at end of file
+ //EOF
</head>
<body onload="domReady();">
-
- <a href="#" onclick="switchView('recordview')">Records Browser</a>
- <span> | </span>
- <a href="#" onclick="switchView('targetview')">Targets Information</a>
-
- <br/><br/>
+ <div id="switchmenu">
+ <a href="#" onclick="switchView('recordview')">Record Browser</a>
+ <span> | </span>
+ <a href="#" onclick="switchView('targetview')">Target Info</a>
+ </div>
<table id="heading" width="100%" border="0" cellpadding="6" cellspacing="0">
<tr>
</table>
<div id="recordview">
-
<table width="100%" border="0" cellpadding="6" cellspacing="0">
<tr>
<td width="250" valign="top">
</td>
</tr>
</table>
-
- <br/>
<hr/>
- <b>STATUS INFO:</b>
- <br/>
- <br/>
- <div id="stat"></div>
-
</div>
<div id="targetview" style="display: none">
-
- <hr/>
- <b>TARGET INFO:</b>
- <hr/>
- <table id="bytarget"></table>
-
+ <table id="bytarget">
+ <thead><tr><td>No information available yet.</td></tr></thead>
+ </table>
+ <hr/>
</div>
+ <br/>
+ <br/>
+
+ <div id="stat"></div>
+
</body>
</html>
hr {
border: 0;
- color: gray;
- background-color: gray;
+ color: #156a16;
+ background-color: #156a16;
height: 1px;
}
margin: 4px;
}
-#recordview {
- background-color: #FFF8DC;
+#bytarget {
+ padding: 7px;
}
-#targetview {
- padding: 6px;
+#stat {
+ color: #a3c896;
+}
+
+#recordview {
+ background-color: #e0f9d6;
}
-#bottom {
- background-color: #FBF5E6;
+#targetview {
+ background-color: #e0f9d6;
}