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 -->New 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) {_alertString += "- target name missing\n";
50 if (f.host.value.length==0) {_alertString += "- host missing\n";
52 if (f.port.value.length==0) {_alertString += "- port missing\n";
54 if (f.db.value.length==0) {_alertString += "- database missing\n";
56 if (isNaN(f.port.value)) {_alertString += "- port must be a number\n";
58 if (isNaN(f.rank.value)) {_alertString += "- rank must be a number\n";
60 if (isNaN(f.checked.value) || f.checked.value<0 || f.checked.value>1) {_alertString += "- checked must be 0 or 1\n";
62 if (_alertString.length==0) {document.Aform.submit();
63 } else {alertString2 = "Form not submitted because of the following problem(s)\n";alertString2 += "------------------------------------------------------------------------------------\n\n";alertString2 += _alertString;alert(alertString2);
71 <!-- TMPL_INCLUDE NAME="header.inc" -->
72 <!-- TMPL_INCLUDE NAME="z3950-admin-search.inc" -->
74 <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 -->
75 <!-- 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 -->New z39.50 Server<!-- /TMPL_IF --><!-- /TMPL_IF -->
76 <!-- TMPL_IF NAME="delete_confirm" --> <a href="/cgi-bin/koha/admin/z3950servers.pl">z39.50 Servers</a> › Confirm Deletion<!-- /TMPL_IF -->
77 <!-- TMPL_IF NAME="add_validate" --> <a href="/cgi-bin/koha/admin/z3950servers.pl">z39.50 Servers</a> › z39.50 Server Added<!-- /TMPL_IF -->
78 <!-- TMPL_IF NAME="delete_confirmed" --> <a href="/cgi-bin/koha/admin/z3950servers.pl">z39.50 Servers</a> › z39.50 Server Deleted<!-- /TMPL_IF --></div>
80 <div id="doc3" class="yui-t2">
86 <!-- TMPL_IF NAME="add_form" -->
88 <form action="<!-- TMPL_VAR NAME="script_name" -->" name="Aform" method="post">
89 <input type="hidden" name="op" value="add_validate" />
90 <!-- TMPL_IF NAME="searchfield" -->
91 <h1>Modify Z39.50 Server</h1>
93 <h1>New Z39.50 Server</h1>
95 <fieldset class="rows">
96 <ol><!-- TMPL_IF NAME="searchfield" -->
97 <li><span class="label">Z39.50 Server: </span> <input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" /><!-- TMPL_VAR NAME="searchfield" --></li>
99 <li><label for="searchfield">Z39.50 Server: </label> <input type="text" name="searchfield" id="searchfield" size="65" maxlength="100" onblur="toUC(this)" /></li>
102 <li><label for="host">Hostname: </label> <input type="text" name="host" id="host" size="30" value="<!-- TMPL_VAR NAME="host" -->" />
104 <li><label for="port">Port: </label> <input type="text" name="port" id="port" size="5" value="<!-- TMPL_VAR NAME="port" -->" onblur="isNum(this)" />
106 <li><label for="db">Database: </label> <input type="text" name="db" id="db" value="<!-- TMPL_VAR NAME="db" -->" />
108 <li><label for="userid">Userid: </label> <input type="text" name="userid" id="userid" value="<!-- TMPL_VAR NAME="userid" -->" />
110 <li><label for="password">Password: </label> <input type="text" name="password" id="password" value="<!-- TMPL_VAR NAME="password" -->" />
112 <li><label for="checked">Checked (searched by default): </label> <input type="text" size="1" name="checked" id="checked" value="<!-- TMPL_VAR NAME="checked" -->" onblur="isNum(this)" /> </li>
113 <li><label for="rank">Rank (display order): </label> <input type="text" name="rank" id="rank" size="4" value="<!-- TMPL_VAR NAME="rank" -->" onblur="isNum(this)" />
114 </li> <li><label for="syntax">Syntax (z3950 can send<br /> records in various format. Choose one): </label>
115 <select name="syntax">
116 <option value="UNIMARC">UNIMARC</option>
117 <option value="INTERMARC">INTERMARC</option>
118 <option value="CCF">CCF</option>
119 <option selected="selected" value="USMARC">MARC21/USMARC</option>
120 <option value="UKMARC">UKMARC</option>
121 <option value="NORMARC">NORMARC</option>
122 <option value="LIBRISMARC">LIBRISMARC</option>
123 <option value="DANMARC">DANMARC</option>
124 <option value="FINMARC">FINMARC</option>
125 <option value="CANMARC">CANMARC</option>
126 <option value="SBN">SBN</option>
127 <option value="PICAMARC">PICAMARC</option>
128 <option value="AUSMARC">AUSMARC</option>
129 <option value="IBERMARC">IBERMARC</option>
130 <option value="CATMARC">CATMARC</option>
131 <option value="MALMARC">MALMARC</option>
133 </li><li><label for="encoding">Encoding (z3950 can send<br /> records in various encodings. Choose one): </label>
134 <select name="encoding">
135 <option selected="selected" value="utf8">utf8</option>
136 <option value="ISO_5426">Iso5426 (MARC8 ANSEL)</option>
137 <option value="ISO_6937">ISO_6937</option>
142 <fieldset class="action"><input type="button" value="Save" onclick="Check(this.form)" /> <a class="cancel" href="/cgi-bin/koha/admin/z3950servers.pl">Cancel</a></fieldset>
146 <!-- TMPL_IF NAME="add_validate" -->
147 <h3>Z39.50 Server Added</h3>
148 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
149 <input type="submit" value="OK" />
153 <!-- TMPL_IF NAME="delete_confirm" -->
154 <!-- TMPL_VAR NAME="reqsel" -->
155 <h3>Confirm Deletion of Server <!-- TMPL_VAR NAME="searchfield" --></h3>
157 <li><strong>Target: </strong> <!-- TMPL_VAR NAME="searchfield" --></li>
158 <li><strong>Hostname: </strong><!-- TMPL_VAR NAME="host" --></li>
159 <li><strong>Port: </strong><!-- TMPL_VAR NAME="port" --></li>
160 <li><strong>Database: </strong><!-- TMPL_VAR NAME="db" --></li>
161 <li><strong>Userid: </strong><!-- TMPL_VAR NAME="userid" --></li>
162 <li><strong>Password: </strong><!-- TMPL_VAR NAME="password" --></li>
163 <li><strong>Checked: </strong><!-- TMPL_VAR NAME="checked" --></li>
164 <li><strong>Rank: </strong><!-- TMPL_VAR NAME="rank" --></li>
165 <li><strong>Syntax: </strong><!-- TMPL_VAR NAME="syntax" --></li>
166 <li><strong>Encoding: </strong><!-- TMPL_VAR NAME="encoding" --></li>
167 </ul> <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="hidden" name="op" value="delete_confirmed" /><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>
173 <!-- TMPL_IF NAME="delete_confirmed" -->
174 <h3>Z39.50 Server Deleted</h3>
175 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
176 <input type="submit" value="OK" />
180 <!-- TMPL_IF NAME="else" -->
183 <script type="text/javascript">
185 // prepare DOM for YUI Toolbar
186 $(document).ready(function() {
189 // YUI Toolbar Functions
190 function yuiToolbar() {
191 new YAHOO.widget.Button("newserver");
195 <li><a id="newserver" href="/cgi-bin/koha/admin/z3950servers.pl?op=add_form">New z39.50 Server</a></li>
198 <h3>Z39.50 Servers Admininistration</h3>
200 <!-- TMPL_IF NAME="searchfield" -->
201 You searched for <!-- TMPL_VAR NAME="searchfield" -->
204 <tr><th>Target:</th><th>Hostname/Port:</th><th>Database:</th><th>Userid:</th><th>Password:</th><th>Checked:</th><th>Rank:</th> <th>Syntax:</th><th>Encoding:</th><th colspan="2"> </th>
206 <!-- TMPL_LOOP NAME="loop" -->
207 <!-- TMPL_IF NAME="toggle" --><tr class="highlight"><!-- TMPL_ELSE --><tr><!-- /TMPL_IF --><td><!-- TMPL_VAR NAME="name" --></td><td><!-- TMPL_VAR NAME="host" -->:<!-- TMPL_VAR NAME="port" --></td><td><!-- TMPL_VAR NAME="db" --></td><td><!-- TMPL_VAR NAME="userid" --></td><td><!-- TMPL_VAR NAME="password" --></td><td><!-- TMPL_VAR NAME="checked" --></td><td><!-- TMPL_VAR NAME="rank" --></td> <td><!-- TMPL_VAR NAME="syntax" --></td><td><!-- TMPL_VAR NAME="encoding" --></td><td><a href="<!-- TMPL_VAR name="script_name" -->?op=add_form&searchfield=<!-- TMPL_VAR NAME="name" -->">Edit</a></td><td><a href="<!-- TMPL_VAR name="script_name" -->?op=delete_confirm&searchfield=<!-- TMPL_VAR NAME="name" -->">Delete</a></td> </tr>
211 <!-- TMPL_IF NAME="offsetgtzero" --><form action="<!-- TMPL_VAR NAME="script_name" -->" method="get">
212 <input type="hidden" name="offset" value="<!-- TMPL_VAR NAME="prevpage" -->" />
213 <input type="submit" value="<< Previous">
214 </form><!-- /TMPL_IF -->
216 <!-- TMPL_IF NAME="ltcount" --><form action="<!-- TMPL_VAR NAME="script_name" -->" method="get">
217 <input type="hidden" name="offset" value="<!-- TMPL_VAR NAME="nextpage" -->" />
218 <input type="submit" value="Next >>" />
219 </form> <!-- /TMPL_iF -->
227 <!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
230 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->