1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Administration › <!-- TMPL_IF NAME="else" -->z39.50 Servers<!-- /TMPL_IF -->
3 <!-- TMPL_IF NAME="add_form" --> z39.50 Servers › <!-- TMPL_IF NAME="searchfield" -->Modify z39.50 Server <!-- TMPL_VAR NAME="searchfield" --><!-- TMPL_ELSE -->Add z39.50 Server<!-- /TMPL_IF --><!-- /TMPL_IF -->
4 <!-- TMPL_IF NAME="delete_confirm" -->z39.50 Servers › Confirm Deletion<!-- /TMPL_IF -->
5 <!-- TMPL_IF NAME="add_validate" -->z39.50 Servers › z39.50 Server Added<!-- /TMPL_IF -->
6 <!-- TMPL_IF NAME="delete_confirmed" -->z39.50 Servers › z39.50 Server Deleted<!-- /TMPL_IF --></title>
7 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
9 <!-- TMPL_IF NAME="add_form" -->
10 <script type="text/javascript">
13 function isNotNull(f,noalert) {
14 if (f.value.length ==0) {
21 var x=f.value.toUpperCase();
26 function isNum(v,maybenull) {
27 var n = new Number(v.value);
31 if (maybenull==0 && v.value=='') {
38 var t = Date.parse(f.value);
48 if (f.searchfield.value.length==0) {
49 _alertString += "- site name missing\n";
51 if (f.host.value.length==0) {
52 _alertString += "- host missing\n";
54 if (f.port.value.length==0) {
55 _alertString += "- port missing\n";
57 if (f.db.value.length==0) {
58 _alertString += "- database missing\n";
60 if (isNaN(f.port.value)) {
61 _alertString += "- port must be a number\n";
63 if (isNaN(f.rank.value)) {
64 _alertString += "- rank must be a number\n";
66 if (isNaN(f.checked.value) || f.checked.value<0 || f.checked.value>1) {
67 _alertString += "- checked must be 0 or 1\n";
69 if (_alertString.length==0) {
70 document.Aform.submit();
72 alertString2 = "Form not submitted because of the following problem(s)\n";
73 alertString2 += "------------------------------------------------------------------------------------\n\n";
74 alertString2 += _alertString;
83 <!-- TMPL_INCLUDE NAME="header.inc" -->
84 <!-- TMPL_INCLUDE NAME="z3950-admin-search.inc" -->
86 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> › <!-- TMPL_IF NAME="else" -->z39.50 Servers<!-- /TMPL_IF -->
87 <!-- TMPL_IF NAME="add_form" --> <a href="/cgi-bin/koha/admin/z3950servers.pl">z39.50 Servers</a> › <!-- TMPL_IF NAME="searchfield" -->Modify z39.50 Server <!-- TMPL_VAR NAME="searchfield" --><!-- TMPL_ELSE -->Add z39.50 Server<!-- /TMPL_IF --><!-- /TMPL_IF -->
88 <!-- TMPL_IF NAME="delete_confirm" --> <a href="/cgi-bin/koha/admin/z3950servers.pl">z39.50 Servers</a> › Confirm Deletion<!-- /TMPL_IF -->
89 <!-- TMPL_IF NAME="add_validate" --> <a href="/cgi-bin/koha/admin/z3950servers.pl">z39.50 Servers</a> › z39.50 Server Added<!-- /TMPL_IF -->
90 <!-- TMPL_IF NAME="delete_confirmed" --> <a href="/cgi-bin/koha/admin/z3950servers.pl">z39.50 Servers</a> › z39.50 Server Deleted<!-- /TMPL_IF --></div>
92 <div id="doc3" class="yui-t2">
98 <!-- TMPL_IF NAME="add_form" -->
102 <form action="<!-- TMPL_VAR NAME="script_name" -->" name="Aform" method="post">
103 <input type="hidden" name="op" value="add_validate" />
104 <!-- TMPL_IF NAME="searchfield" -->
105 <h1>Modify Z39.50 Server</h1>
107 <h1>Add Z39.50 Server</h1>
109 <fieldset class="rows">
110 <ol><!-- TMPL_IF NAME="searchfield" -->
112 <span class="label">Z39.50 Server: </span>
114 <input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" /><!-- TMPL_VAR NAME="searchfield" -->
119 <label for="searchfield">Z39.50 Server: </label>
121 <input type="text" name="searchfield" id="searchfield" size="65" maxlength="100" onblur="toUC(this)" />
127 <label for="host">Hostname: </label>
129 <input type="text" name="host" id="host" size="30" value="<!-- TMPL_VAR NAME="host" -->" />
133 <label for="port">Port: </label>
135 <input type="text" name="port" id="port" size="5" value="<!-- TMPL_VAR NAME="port" -->" onblur="isNum(this)" />
139 <label for="db">Database: </label>
141 <input type="text" name="db" id="db" value="<!-- TMPL_VAR NAME="db" -->" />
145 <label for="userid">Userid: </label>
147 <input type="text" name="userid" id="userid" value="<!-- TMPL_VAR NAME="userid" -->" />
151 <label for="password">Password: </label>
153 <input type="text" name="password" id="password" value="<!-- TMPL_VAR NAME="password" -->" />
157 <label for="checked">Checked (searched by default): </label>
159 <input type="text" size="1" name="checked" id="checked" value="<!-- TMPL_VAR NAME="checked" -->" onblur="isNum(this)" /> </li>
161 <label for="rank">Rank (display order): </label>
163 <input type="text" name="rank" id="rank" size="4" value="<!-- TMPL_VAR NAME="rank" -->" onblur="isNum(this)" />
167 <label for="syntax">Syntax (z3950 can send<br />
168 records in various format. Choose one): </label>
170 <select name="syntax" id="syntax">
171 <option value="USMARC">USMARC</option>
172 <option value="UNIMARC">UNIMARC</option>
176 </fieldset><input type="button" value="<!-- TMPL_IF NAME="searchfield" -->Update Z39.50 Server<!-- TMPL_ELSE -->Add Z39.50 Server<!-- /TMPL_IF -->" onclick="Check(this.form)" />
180 <!-- TMPL_IF NAME="add_validate" -->
181 <h3>Z39.50 Server Added</h3>
182 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
183 <input type="submit" value="OK" />
187 <!-- TMPL_IF NAME="delete_confirm" -->
188 <!-- TMPL_VAR NAME="reqsel" -->
189 <h3>Confirm Deletion of Server <!-- TMPL_VAR NAME="searchfield" --></h3>
192 <strong>Site: </strong>
194 <!-- TMPL_VAR NAME="searchfield" -->
198 <strong>Hostname: </strong>
199 <!-- TMPL_VAR NAME="host" -->
202 <strong>Port: </strong>
203 <!-- TMPL_VAR NAME="port" -->
206 <strong>Database: </strong>
207 <!-- TMPL_VAR NAME="db" -->
210 <strong>Userid: </strong>
211 <!-- TMPL_VAR NAME="userid" -->
214 <strong>Password: </strong>
215 <!-- TMPL_VAR NAME="password" -->
218 <strong>Checked: </strong>
219 <!-- TMPL_VAR NAME="checked" -->
222 <strong>Rank: </strong>
223 <!-- TMPL_VAR NAME="rank" -->
226 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
227 <input type="hidden" name="op" value="delete_confirmed" />
228 <input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" /><input type="submit" value="Delete this Server" /></form> <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="submit" value="Do Not Delete" /></form>
234 <!-- TMPL_IF NAME="delete_confirmed" -->
235 <h3>Z39.50 Server Deleted</h3>
236 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
237 <input type="submit" value="OK" />
241 <!-- TMPL_IF NAME="else" -->
242 <h3>Z39.50 Servers Admininistration</h3>
244 <!-- TMPL_IF NAME="searchfield" -->
245 You searched for <!-- TMPL_VAR NAME="searchfield" -->
250 <th>Hostname/Port</th>
257 <th colspan="2"> </th>
259 <!-- TMPL_LOOP NAME="loop" -->
260 <!-- TMPL_IF NAME="toggle" --><tr class="highlight"><!-- TMPL_ELSE --><tr><!-- /TMPL_IF -->
261 <td><!-- TMPL_VAR NAME="name" --></td>
262 <td><!-- TMPL_VAR NAME="host" -->:<!-- TMPL_VAR NAME="port" --></td>
263 <td><!-- TMPL_VAR NAME="db" --></td>
264 <td><!-- TMPL_VAR NAME="userid" --></td>
265 <td><!-- TMPL_VAR NAME="password" --></td>
266 <td><!-- TMPL_VAR NAME="checked" --></td>
267 <td><!-- TMPL_VAR NAME="rank" --></td>
268 <td><!-- TMPL_VAR NAME="syntax" --></td>
269 <td><a href="<!-- TMPL_VAR name="script_name" -->?op=add_form&searchfield=<!-- TMPL_VAR NAME="name" -->">Edit</a></td>
270 <td><a href="<!-- TMPL_VAR name="script_name" -->?op=delete_confirm&searchfield=<!-- TMPL_VAR NAME="name" -->">Delete</a></td>
275 <!-- TMPL_IF NAME="offsetgtzero" --><form action="<!-- TMPL_VAR NAME="script_name" -->" method="get">
276 <input type="hidden" name="offset" value="<!-- TMPL_VAR NAME="prevpage" -->" />
277 <input type="submit" value="<< Prev">
278 </form><!-- /TMPL_IF -->
279 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
280 <input type="hidden" name="op" value="add_form" />
281 <input type="submit" value="Add z39.50 Server" />
283 <!-- TMPL_IF NAME="ltcount" --><form action="<!-- TMPL_VAR NAME="script_name" -->" method="get">
284 <input type="hidden" name="offset" value="<!-- TMPL_VAR NAME="nextpage" -->" />
285 <input type="submit" value="Next >>" />
286 </form> <!-- /TMPL_iF -->
294 <!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
297 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->