1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Administration › [% IF ( else ) %]Z39.50 servers[% END %]
3 [% IF ( add_form ) %] Z39.50 servers › [% IF ( searchfield ) %]Modify Z39.50 server [% searchfield %][% ELSE %]New Z39.50 server[% END %][% END %]
4 [% IF ( delete_confirm ) %]Z39.50 servers › Confirm deletion[% END %]
5 [% IF ( confirm_add ) %] Z39.50 servers › Z39.50 server added[% END %]
6 [% IF ( confirm_update ) %] Z39.50 servers › Z39.50 server updated[% END %]
7 [% IF ( delete_confirmed ) %]Z39.50 servers › Z39.50 server deleted[% END %]</title>
8 [% INCLUDE 'doc-head-close.inc' %]
10 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
11 [% INCLUDE 'datatables.inc' %]
14 <script type="text/javascript">
17 function isNotNull(f,noalert) {
18 if (f.value.length ==0) {
24 function isNum(v,maybenull) {
25 var n = new Number(v.value);
29 if (maybenull==0 && v.value=='') {
36 var t = Date.parse(f.value);
46 if (f.searchfield.value.length==0) {_alertString += "- target name missing\n";
48 if (f.host.value.length==0) {_alertString += "- host missing\n";
50 if (f.port.value.length==0) {_alertString += "- port missing\n";
52 if (f.db.value.length==0) {_alertString += "- database missing\n";
54 if (isNaN(f.port.value)) {_alertString += "- port must be a number\n";
56 if (isNaN(f.rank.value)) {_alertString += "- rank must be a number\n";
58 if (_alertString.length==0) {document.Aform.submit();
59 } else {alertString2 = "Form not submitted because of the following problem(s)\n";alertString2 += "------------------------------------------------------------------------------------\n\n";alertString2 += _alertString;alert(alertString2);
66 <script type="text/javascript">
68 $(document).ready(function() {
69 [% IF ( loop ) %]$("#serverst").dataTable($.extend(true, {}, dataTablesDefaults, {
71 { "aTargets": [ 2,3,4,7,8,9,10,11 ], "bSortable": false, "bSearchable": false },
74 "aLengthMenu": [[10, 20, 50, 100, -1], [10, 20, 50, 100, "All"]],
75 "sPaginationType": "four_button"
83 <body id="admin_z3950servers" class="admin">
84 [% INCLUDE 'header.inc' %]
85 [% INCLUDE 'z3950-admin-search.inc' %]
87 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> › [% IF ( else ) %]Z39.50 servers[% END %]
88 [% IF ( add_form ) %] <a href="/cgi-bin/koha/admin/z3950servers.pl">Z39.50 servers</a> › [% IF ( searchfield ) %]Modify Z39.50 server [% searchfield %][% ELSE %]New Z39.50 server[% END %][% END %]
89 [% IF ( delete_confirm ) %] <a href="/cgi-bin/koha/admin/z3950servers.pl">Z39.50 servers</a> › Confirm deletion[% END %]
90 [% IF ( confirm_add ) %] <a href="/cgi-bin/koha/admin/z3950servers.pl">Z39.50 servers</a> › Z39.50 server added[% END %]
91 [% IF ( confirm_update ) %] <a href="/cgi-bin/koha/admin/z3950servers.pl">Z39.50 servers</a> › Z39.50 server updated[% END %]
93 [% IF ( delete_confirmed ) %] <a href="/cgi-bin/koha/admin/z3950servers.pl">Z39.50 servers</a> › Z39.50 server deleted[% END %]</div>
95 <div id="doc3" class="yui-t2">
101 [% IF ( add_form ) %]
103 <form action="[% script_name %]" name="Aform" method="post">
104 <input type="hidden" name="op" value="add_validate" />
105 [% IF ( searchfield ) %]
106 <h1>Modify Z39.50 server</h1>
108 <h1>New Z39.50 server</h1>
110 <fieldset class="rows">
111 <ol>[% IF ( searchfield ) %]
112 <li><span class="label">Z39.50 server: </span> <input type="hidden" name="searchfield" value="[% searchfield %]" />[% searchfield %]</li>
114 <li><label for="searchfield">Z39.50 server: </label> <input type="text" name="searchfield" id="searchfield" size="65" maxlength="100" onblur="toUC(this)" /></li>
117 <li><label for="host">Hostname: </label> <input type="text" name="host" id="host" size="30" value="[% host %]" />
119 <li><label for="port">Port: </label> <input type="text" name="port" id="port" size="5" value="[% port %]" onblur="isNum(this)" />
121 <li><label for="db">Database: </label> <input type="text" name="db" id="db" value="[% db %]" />
123 <li><label for="userid">Userid: </label> <input type="text" name="userid" id="userid" value="[% userid %]" />
125 <li><label for="password">Password: </label> <input type="text" name="password" id="password" value="[% password %]" />
127 <li><label for="checked">Checked (searched by default): </label>
129 <input type="checkbox" name="checked" id="checked" value="1" checked="checked" />
131 <input type="checkbox" name="checked" id="checked" value="1" />
134 <li><label for="rank">Rank (display order): </label> <input type="text" name="rank" id="rank" size="4" value="[% rank %]" onblur="isNum(this)" />
136 <li><label for="syntax">Syntax (z3950 can send<br /> records in various format. Choose one): </label>
137 <select name="syntax">
138 [% IF ( syntaxUNIMARC ) %]
139 <option value="UNIMARC" selected="selected">UNIMARC</option>
141 <option value="UNIMARC">UNIMARC</option>
143 [% IF ( syntaxINTERMARC ) %]
144 <option value="INTERMARC" selected="selected">INTERMARC</option>
146 <option value="INTERMARC">INTERMARC</option>
148 [% IF ( syntaxCCF ) %]
149 <option value="CCF" selected="selected">CCF</option>
151 <option value="CCF">CCF</option>
153 [% IF ( syntaxUSMARC ) %]
154 <option value="USMARC" selected="selected">MARC21/USMARC</option>
156 <option value="USMARC">MARC21/USMARC</option>
158 [% IF ( syntaxUKMARC ) %]
159 <option value="UKMARC" selected="selected">UKMARC</option>
161 <option value="UKMARC">UKMARC</option>
163 [% IF ( syntaxNORMARC ) %]
164 <option value="NORMARC" selected="selected">NORMARC</option>
166 <option value="NORMARC">NORMARC</option>
168 [% IF ( syntaxLIBRISMARC ) %]
169 <option value="LIBRISMARC" selected="selected">LIBRISMARC</option>
171 <option value="LIBRISMARC">LIBRISMARC</option>
173 [% IF ( syntaxDANMARC ) %]
174 <option value="DANMARC" selected="selected">DANMARC</option>
176 <option value="DANMARC">DANMARC</option>
178 [% IF ( syntaxFINMARC ) %]
179 <option value="FINMARC" selected="selected">FINMARC</option>
181 <option value="FINMARC">FINMARC</option>
183 [% IF ( syntaxCANMARC ) %]
184 <option value="CANMARC" selected="selected">CANMARC</option>
186 <option value="CANMARC">CANMARC</option>
188 [% IF ( syntaxSBN ) %]
189 <option value="SBN" selected="selected">SBN</option>
191 <option value="SBN">SBN</option>
193 [% IF ( syntaxPICAMARC ) %]
194 <option value="PICAMARC" selected="selected">PICAMARC</option>
196 <option value="PICAMARC">PICAMARC</option>
198 [% IF ( syntaxAUSMARC ) %]
199 <option value="AUSMARC" selected="selected">AUSMARC</option>
201 <option value="AUSMARC">AUSMARC</option>
203 [% IF ( syntaxIBERMARC ) %]
204 <option value="IBERMARC" selected="selected">IBERMARC</option>
206 <option value="IBERMARC">IBERMARC</option>
208 [% IF ( syntaxCATMARC ) %]
209 <option value="CATMARC" selected="selected">CATMARC</option>
211 <option value="CATMARC">CATMARC</option>
213 [% IF ( syntaxMALMARC ) %]
214 <option value="MALMARC" selected="selected">MALMARC</option>
216 <option value="MALMARC">MALMARC</option>
221 <li><label for="encoding">Encoding (z3950 can send<br /> records in various encodings. Choose one): </label>
222 <select name="encoding">
223 [% FOREACH enc IN [ 'utf8' 'EUC-KR' 'ISO_5426' 'ISO_6937' 'ISO_8859-1' 'MARC-8' ] %]
224 [% IF ( encoding == enc ) %]
225 <option value="[% enc %]" selected="selected">[% enc %]</option>
227 <option value="[% enc %]">[% enc %]</option>
232 <li><label for="timeout">Timeout (0 its like not set): </label>
233 <input type="text" name="timeout" id="timeout" size="4" value="[% timeout %]" onblur="isNum(this)" /> seconds
235 <li><label for="recordtype">Record type: </label>
236 <select name="recordtype" id="recordtype">
237 [% IF ( recordtypebiblio ) %]
238 <option value="biblio" selected="selected">Bibliographic</option>
240 <option value="biblio">Bibliographic</option>
242 [% IF ( recordtypeauthority ) %]
243 <option value="authority" selected="selected">Authority</option>
245 <option value="authority">Authority</option>
252 <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>
256 [% IF ( confirm_add ) %]
257 <h3>Z39.50 server added</h3>
258 <form action="[% script_name %]" method="post">
259 <input type="submit" value="OK" />
263 [% IF ( confirm_update ) %]
264 <h3>Z39.50 server updated</h3>
265 <form action="[% script_name %]" method="post">
266 <input type="submit" value="OK" />
270 [% IF ( delete_confirm ) %]
272 <h3>Confirm deletion of server [% searchfield %]</h3>
274 <li><strong>Target: </strong> [% searchfield %]</li>
275 <li><strong>Hostname: </strong>[% host %]</li>
276 <li><strong>Port: </strong>[% port %]</li>
277 <li><strong>Database: </strong>[% db %]</li>
278 <li><strong>Userid: </strong>[% userid %]</li>
279 <li><strong>Password: </strong>[% password %]</li>
280 <li><strong>Checked: </strong>[% checked %]</li>
281 <li><strong>Rank: </strong>[% rank %]</li>
282 <li><strong>Syntax: </strong>[% syntax %]</li>
283 <li><strong>Encoding: </strong>[% encoding %]</li>
284 <li><strong>Timeout: </strong>[% timeout %]</li>
285 <li><strong>Record type: </strong>[% recordtype %]</li>
286 </ul> <form action="[% script_name %]" method="post"><input type="hidden" name="op" value="delete_confirmed" /><input type="hidden" name="searchfield" value="[% searchfield %]" /><input type="submit" value="Delete this server" /></form> <form action="[% script_name %]" method="post"><input type="submit" value="Do not delete" /></form>
292 [% IF ( delete_confirmed ) %]
293 <h3>Z39.50 server deleted</h3>
294 <form action="[% script_name %]" method="post">
295 <input type="submit" value="OK" />
301 <div id="toolbar" class="btn-toolbar">
302 <a id="newserver" class="btn btn-small" href="/cgi-bin/koha/admin/z3950servers.pl?op=add_form"><i class="icon-plus"></i> New Z39.50 server</a>
305 <h3>Z39.50 servers administration</h3>
307 [% IF ( searchfield ) %]
308 You searched for [% searchfield %]
310 <table id="serverst">
311 <thead><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>Timeout</th><th>Record type</th><th> </th><th> </th>
313 <tbody>[% FOREACH loo IN loop %]
314 [% UNLESS ( loop.odd ) %]
315 <tr class="highlight">
319 <td><a href="[% loo.script_name %]?op=add_form&searchfield=[% loo.name |url %]">[% loo.name %]</a></td><td>[% loo.host %]:[% loo.port %]</td><td>[% loo.db %]</td><td>[% loo.userid %]</td><td>[% loo.password %]</td><td>[% IF ( loo.checked ) %]Yes[% ELSE %]No[% END %]</td><td>[% loo.rank %]</td>
321 <td>[% loo.syntax %]</td><td>[% loo.encoding %]</td><td>[% loo.timeout %]</td><td>[% loo.recordtype %]</td><td><a href="[% loo.script_name %]?op=add_form&searchfield=[% loo.name |url %]">Edit</a></td><td><a href="[% loo.script_name %]?op=delete_confirm&searchfield=[% loo.name |url %]">Delete</a></td> </tr>
325 [% IF ( offsetgtzero ) %]<form action="[% script_name %]" method="get">
326 <input type="hidden" name="offset" value="[% prevpage %]" />
327 <input type="submit" value="<< Previous">
330 [% IF ( ltcount ) %]<form action="[% script_name %]" method="get">
331 <input type="hidden" name="offset" value="[% nextpage %]" />
332 <input type="submit" value="Next >>" />
341 [% INCLUDE 'admin-menu.inc' %]
344 [% INCLUDE 'intranet-bottom.inc' %]