Lines 1-86
Link Here
|
1 |
[% INCLUDE 'doc-head-open.inc' %] |
1 |
[% INCLUDE 'doc-head-open.inc' %] |
2 |
<title>Koha › Administration › [% IF ( else ) %]Z39.50 servers[% END %] |
2 |
<title>Koha › Administration › Z39.50 servers |
3 |
[% IF ( add_form ) %] Z39.50 servers › [% IF ( searchfield ) %]Modify Z39.50 server [% searchfield %][% ELSE %]New Z39.50 server[% END %][% END %] |
3 |
[% IF op == 'edit' %] › Modify Z39.50 server [% server.name %][% END %] |
4 |
[% IF ( delete_confirm ) %]Z39.50 servers › Confirm deletion[% END %] |
4 |
[% IF op == 'add' %] › New Z39.50 server[% END %] |
5 |
[% IF ( confirm_add ) %] Z39.50 servers › Z39.50 server added[% END %] |
5 |
</title> |
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' %] |
6 |
[% INCLUDE 'doc-head-close.inc' %] |
9 |
[% IF ( else ) %] |
7 |
|
10 |
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> |
8 |
[% IF op == 'list' %] |
11 |
[% INCLUDE 'datatables.inc' %] |
9 |
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> |
|
|
10 |
[% INCLUDE 'datatables.inc' %] |
12 |
[% END %] |
11 |
[% END %] |
|
|
12 |
|
13 |
[% IF ( add_form ) %] |
13 |
[% IF ( add_form ) %] |
14 |
<script type="text/javascript"> |
14 |
<script type="text/javascript"> |
15 |
//<![CDATA[ |
15 |
//<![CDATA[ |
16 |
// |
16 |
$(document).ready(function() { |
17 |
function isNotNull(f,noalert) { |
17 |
// Update selects for syntax, encoding and recordtype |
18 |
if (f.value.length ==0) { |
18 |
[% IF server %] |
19 |
return false; |
19 |
$("#syntax").val('[% server.syntax %]'); |
20 |
} |
20 |
$("#encoding").val('[% server.encoding %]'); |
21 |
return true; |
21 |
$("#recordtype").val('[% server.recordtype %]'); |
22 |
} |
22 |
[% END %] |
23 |
// |
23 |
}); |
24 |
function toUC(f) { |
24 |
function toUC(f) { |
25 |
var x=f.value.toUpperCase(); |
25 |
var x=f.value.toUpperCase(); |
26 |
f.value=x; |
26 |
f.value=x; |
27 |
return true; |
27 |
return true; |
28 |
} |
28 |
} |
29 |
// |
29 |
function isNum(v,maybenull) { |
30 |
function isNum(v,maybenull) { |
|
|
31 |
var n = new Number(v.value); |
30 |
var n = new Number(v.value); |
32 |
if (isNaN(n)) { |
31 |
if (isNaN(n)) { |
33 |
return false; |
32 |
return false; |
34 |
} |
33 |
} |
35 |
if (maybenull==0 && v.value=='') { |
34 |
if (maybenull==0 && v.value=='') { |
36 |
return false; |
35 |
return false; |
37 |
} |
36 |
} |
38 |
return true; |
37 |
return true; |
|
|
38 |
} |
39 |
function Check(f) { |
40 |
var ok=1; |
41 |
var _alertString=""; |
42 |
var alertString2; |
43 |
if (f.servername.value.length==0) {_alertString += "- target name missing\n"; |
39 |
} |
44 |
} |
40 |
// |
45 |
if (f.host.value.length==0) {_alertString += "- host missing\n"; |
41 |
function isDate(f) { |
|
|
42 |
var t = Date.parse(f.value); |
43 |
if (isNaN(t)) { |
44 |
return false; |
45 |
} |
46 |
} |
46 |
} |
47 |
// |
47 |
if (f.port.value.length==0) {_alertString += "- port missing\n"; |
48 |
function Check(f) { |
|
|
49 |
var ok=1; |
50 |
var _alertString=""; |
51 |
var alertString2; |
52 |
if (f.searchfield.value.length==0) {_alertString += "- target name missing\n"; |
53 |
} |
54 |
if (f.host.value.length==0) {_alertString += "- host missing\n"; |
55 |
} |
56 |
if (f.port.value.length==0) {_alertString += "- port missing\n"; |
57 |
} |
58 |
if (f.db.value.length==0) {_alertString += "- database missing\n"; |
59 |
} |
60 |
if (isNaN(f.port.value)) {_alertString += "- port must be a number\n"; |
61 |
} |
62 |
if (isNaN(f.rank.value)) {_alertString += "- rank must be a number\n"; |
63 |
} |
64 |
if (_alertString.length==0) {document.Aform.submit(); |
65 |
} else {alertString2 = "Form not submitted because of the following problem(s)\n";alertString2 += "------------------------------------------------------------------------------------\n\n";alertString2 += _alertString;alert(alertString2); |
66 |
} |
67 |
} |
48 |
} |
68 |
//]]> |
49 |
if (f.db.value.length==0) {_alertString += "- database missing\n"; |
69 |
</script> |
50 |
} |
70 |
[% END %] |
51 |
if (isNaN(f.port.value)) {_alertString += "- port must be a number\n"; |
71 |
[% IF ( else ) %] |
52 |
} |
|
|
53 |
if (isNaN(f.rank.value)) {_alertString += "- rank must be a number\n"; |
54 |
} |
55 |
if (_alertString.length==0) {document.Aform.submit(); |
56 |
} else {alertString2 = "Form not submitted because of the following problem(s)\n";alertString2 += "------------------------------------------------------------------------------------\n\n";alertString2 += _alertString;alert(alertString2); |
57 |
} |
58 |
} |
59 |
//]]> |
60 |
</script> |
61 |
[% ELSE %] |
72 |
<script type="text/javascript"> |
62 |
<script type="text/javascript"> |
73 |
//<![CDATA[ |
63 |
//<![CDATA[ |
74 |
$(document).ready(function() { |
64 |
$(document).ready(function() { |
75 |
[% IF ( loop ) %]$("#serverst").dataTable($.extend(true, {}, dataTablesDefaults, { |
65 |
[% IF ( loop ) %]$("#serverst").dataTable($.extend(true, {}, dataTablesDefaults, { |
76 |
"aoColumnDefs": [ |
66 |
"aoColumnDefs": [ |
77 |
{ "aTargets": [ 2,3,4,7,8,9,10,11 ], "bSortable": false, "bSearchable": false }, |
67 |
{ "aTargets": [2,3,4,7,8,9,10,11], "bSortable": false, "bSearchable": false }, |
78 |
], |
68 |
], |
79 |
"iDisplayLength": 20, |
69 |
"iDisplayLength": 20, |
80 |
"aLengthMenu": [[10, 20, 50, 100, -1], [10, 20, 50, 100, "All"]], |
70 |
"aLengthMenu": [[10, 20, 50, 100, -1], [10, 20, 50, 100, "All"]], |
81 |
"sPaginationType": "four_button" |
71 |
"sPaginationType": "four_button" |
82 |
}));[% END %] |
72 |
}));[% END %] |
83 |
}); |
73 |
}); |
|
|
74 |
function ConfirmDelete(name,id) { |
75 |
if( confirm( _("Choose OK if you really want to delete server ")+ |
76 |
name+'.')) { |
77 |
window.location="[% script_name %]?op=delete_confirmed&id="+id; |
78 |
} |
79 |
return false; |
80 |
} |
84 |
//]]> |
81 |
//]]> |
85 |
</script> |
82 |
</script> |
86 |
[% END %] |
83 |
[% END %] |
Lines 90-243
Link Here
|
90 |
[% INCLUDE 'header.inc' %] |
87 |
[% INCLUDE 'header.inc' %] |
91 |
[% INCLUDE 'z3950-admin-search.inc' %] |
88 |
[% INCLUDE 'z3950-admin-search.inc' %] |
92 |
|
89 |
|
93 |
<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 %] |
90 |
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> › |
94 |
[% 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 %] |
91 |
<a href="/cgi-bin/koha/admin/z3950servers.pl">Z39.50 servers</a> |
95 |
[% IF ( delete_confirm ) %] <a href="/cgi-bin/koha/admin/z3950servers.pl">Z39.50 servers</a> › Confirm deletion[% END %] |
92 |
[% IF op == 'edit' %]› Modify Z39.50 server [% server.name %][% END %] |
96 |
[% IF ( confirm_add ) %] <a href="/cgi-bin/koha/admin/z3950servers.pl">Z39.50 servers</a> › Z39.50 server added[% END %] |
93 |
[% IF op == 'add' %]› New Z39.50 server[% END %] |
97 |
[% IF ( confirm_update ) %] <a href="/cgi-bin/koha/admin/z3950servers.pl">Z39.50 servers</a> › Z39.50 server updated[% END %] |
94 |
</div> |
98 |
|
|
|
99 |
[% IF ( delete_confirmed ) %] <a href="/cgi-bin/koha/admin/z3950servers.pl">Z39.50 servers</a> › Z39.50 server deleted[% END %]</div> |
100 |
|
95 |
|
101 |
<div id="doc3" class="yui-t2"> |
96 |
<div id="doc3" class="yui-t2"> |
102 |
|
97 |
<div id="bd"> |
103 |
<div id="bd"> |
98 |
<div id="yui-main"> |
104 |
<div id="yui-main"> |
99 |
<div class="yui-b"> |
105 |
<div class="yui-b"> |
100 |
|
|
|
101 |
[% IF msg_deleted %] |
102 |
<div class="dialog alert">Z39.50 server deleted ([% msg_add %])</div> |
103 |
[% ELSIF msg_updated %] |
104 |
<div class="dialog alert">Z39.50 server updated ([% msg_add %])</div> |
105 |
[% ELSIF msg_added %] |
106 |
<div class="dialog alert">Z39.50 server added ([% msg_add %])</div> |
107 |
[% END %] |
106 |
|
108 |
|
107 |
[% IF ( add_form ) %] |
109 |
[% IF ( add_form ) %] |
108 |
|
|
|
109 |
<form action="[% script_name %]" name="Aform" method="post"> |
110 |
<form action="[% script_name %]" name="Aform" method="post"> |
110 |
<input type="hidden" name="op" value="add_validate" /> |
111 |
<input type="hidden" name="op" value="add_validated" /> |
111 |
[% IF ( searchfield ) %] |
112 |
[% IF op == 'edit' %] |
112 |
<h1>Modify Z39.50 server</h1> |
113 |
<h1>Modify Z39.50 server</h1> |
|
|
114 |
<input type="hidden" name="id" value="[% server.id %]" /> |
113 |
[% ELSE %] |
115 |
[% ELSE %] |
114 |
<h1>New Z39.50 server</h1> |
116 |
<h1>New Z39.50 server</h1> |
115 |
[% END %] |
117 |
[% END %] |
116 |
<fieldset class="rows"> |
118 |
<fieldset class="rows"> |
117 |
<ol>[% IF ( searchfield ) %] |
119 |
<ol> |
118 |
<li><span class="label">Z39.50 server: </span> <input type="hidden" name="searchfield" value="[% searchfield %]" />[% searchfield %]</li> |
120 |
<li><label for="name">Z39.50 server: </label><input type="text" name="servername" id="name" size="65" maxlength="100" onblur="toUC(this)" value="[% server.name | html %]"/></li> |
119 |
[% ELSE %] |
121 |
<li><label for="host">Hostname: </label><input type="text" name="host" id="host" size="30" value="[% server.host %]" /> |
120 |
<li><label for="searchfield">Z39.50 server: </label> <input type="text" name="searchfield" id="searchfield" size="65" maxlength="100" onblur="toUC(this)" /></li> |
122 |
</li> |
121 |
[% END %] |
123 |
<li><label for="port">Port: </label><input type="text" name="port" id="port" size="5" value="[% server.port %]" onblur="isNum(this)" /> |
122 |
|
124 |
</li> |
123 |
<li><label for="host">Hostname: </label> <input type="text" name="host" id="host" size="30" value="[% host %]" /> |
125 |
<li><label for="db">Database: </label><input type="text" name="db" id="db" value="[% server.db %]" /> |
124 |
</li> |
126 |
</li> |
125 |
<li><label for="port">Port: </label> <input type="text" name="port" id="port" size="5" value="[% port %]" onblur="isNum(this)" /> |
127 |
<li><label for="userid">Userid: </label><input type="text" name="userid" id="userid" value="[% server.userid %]" /> |
126 |
</li> |
128 |
</li> |
127 |
<li><label for="db">Database: </label> <input type="text" name="db" id="db" value="[% db %]" /> |
129 |
<li><label for="password">Password: </label><input type="text" name="password" id="password" value="[% server.password %]" /> |
128 |
</li> |
130 |
</li> |
129 |
<li><label for="userid">Userid: </label> <input type="text" name="userid" id="userid" value="[% userid %]" /> |
131 |
<li><label for="checked">Checked (searched by default): </label> |
130 |
</li> |
132 |
[% IF ( server.checked ) %] |
131 |
<li><label for="password">Password: </label> <input type="text" name="password" id="password" value="[% password %]" /> |
|
|
132 |
</li> |
133 |
<li><label for="checked">Checked (searched by default): </label> |
134 |
[% IF ( checked ) %] |
135 |
<input type="checkbox" name="checked" id="checked" value="1" checked="checked" /> |
133 |
<input type="checkbox" name="checked" id="checked" value="1" checked="checked" /> |
136 |
[% ELSE %] |
134 |
[% ELSE %] |
137 |
<input type="checkbox" name="checked" id="checked" value="1" /> |
135 |
<input type="checkbox" name="checked" id="checked" value="1" /> |
138 |
[% END %] |
136 |
[% END %] |
139 |
</li> |
137 |
</li> |
140 |
<li><label for="rank">Rank (display order): </label> <input type="text" name="rank" id="rank" size="4" value="[% rank %]" onblur="isNum(this)" /> |
138 |
<li><label for="rank">Rank (display order): </label><input type="text" name="rank" id="rank" size="4" value="[% server.rank %]" onblur="isNum(this)" /> |
141 |
</li> |
139 |
</li> |
142 |
<li><label for="syntax">Syntax (z3950 can send<br /> records in various format. Choose one): </label> |
140 |
<li><label for="syntax">Syntax (z3950 can send<br /> records in various format. Choose one): </label> |
143 |
<select name="syntax"> |
141 |
<select name="syntax" id="syntax"> |
144 |
[% IF ( syntaxUNIMARC ) %] |
142 |
<option value="UNIMARC">UNIMARC</option> |
145 |
<option value="UNIMARC" selected="selected">UNIMARC</option> |
143 |
<option value="INTERMARC">INTERMARC</option> |
146 |
[% ELSE %] |
144 |
<option value="CCF">CCF</option> |
147 |
<option value="UNIMARC">UNIMARC</option> |
145 |
<option value="USMARC">MARC21/USMARC</option> |
148 |
[% END %] |
146 |
<option value="UKMARC">UKMARC</option> |
149 |
[% IF ( syntaxINTERMARC ) %] |
147 |
<option value="NORMARC">NORMARC</option> |
150 |
<option value="INTERMARC" selected="selected">INTERMARC</option> |
148 |
<option value="LIBRISMARC">LIBRISMARC</option> |
151 |
[% ELSE %] |
149 |
<option value="DANMARC">DANMARC</option> |
152 |
<option value="INTERMARC">INTERMARC</option> |
150 |
<option value="FINMARC">FINMARC</option> |
153 |
[% END %] |
151 |
<option value="CANMARC">CANMARC</option> |
154 |
[% IF ( syntaxCCF ) %] |
152 |
<option value="SBN">SBN</option> |
155 |
<option value="CCF" selected="selected">CCF</option> |
153 |
<option value="PICAMARC">PICAMARC</option> |
156 |
[% ELSE %] |
154 |
<option value="AUSMARC">AUSMARC</option> |
157 |
<option value="CCF">CCF</option> |
155 |
<option value="IBERMARC">IBERMARC</option> |
158 |
[% END %] |
156 |
<option value="CATMARC">CATMARC</option> |
159 |
[% IF ( syntaxUSMARC ) %] |
157 |
<option value="MALMARC">MALMARC</option> |
160 |
<option value="USMARC" selected="selected">MARC21/USMARC</option> |
158 |
</select> |
161 |
[% ELSE %] |
159 |
</li> |
162 |
<option value="USMARC">MARC21/USMARC</option> |
160 |
|
163 |
[% END %] |
161 |
<li><label for="encoding">Encoding (z3950 can send<br /> records in various encodings. Choose one): </label> |
164 |
[% IF ( syntaxUKMARC ) %] |
162 |
<select name="encoding" id="encoding"> |
165 |
<option value="UKMARC" selected="selected">UKMARC</option> |
163 |
[% FOREACH enc IN [ 'utf8' 'EUC-KR' 'ISO_5426' 'ISO_6937' 'ISO_8859-1' 'MARC-8' ] %] |
166 |
[% ELSE %] |
164 |
<option value="[% enc %]">[% enc %]</option> |
167 |
<option value="UKMARC">UKMARC</option> |
165 |
[% END %] |
168 |
[% END %] |
166 |
</select> |
169 |
[% IF ( syntaxNORMARC ) %] |
167 |
</li> |
170 |
<option value="NORMARC" selected="selected">NORMARC</option> |
|
|
171 |
[% ELSE %] |
172 |
<option value="NORMARC">NORMARC</option> |
173 |
[% END %] |
174 |
[% IF ( syntaxLIBRISMARC ) %] |
175 |
<option value="LIBRISMARC" selected="selected">LIBRISMARC</option> |
176 |
[% ELSE %] |
177 |
<option value="LIBRISMARC">LIBRISMARC</option> |
178 |
[% END %] |
179 |
[% IF ( syntaxDANMARC ) %] |
180 |
<option value="DANMARC" selected="selected">DANMARC</option> |
181 |
[% ELSE %] |
182 |
<option value="DANMARC">DANMARC</option> |
183 |
[% END %] |
184 |
[% IF ( syntaxFINMARC ) %] |
185 |
<option value="FINMARC" selected="selected">FINMARC</option> |
186 |
[% ELSE %] |
187 |
<option value="FINMARC">FINMARC</option> |
188 |
[% END %] |
189 |
[% IF ( syntaxCANMARC ) %] |
190 |
<option value="CANMARC" selected="selected">CANMARC</option> |
191 |
[% ELSE %] |
192 |
<option value="CANMARC">CANMARC</option> |
193 |
[% END %] |
194 |
[% IF ( syntaxSBN ) %] |
195 |
<option value="SBN" selected="selected">SBN</option> |
196 |
[% ELSE %] |
197 |
<option value="SBN">SBN</option> |
198 |
[% END %] |
199 |
[% IF ( syntaxPICAMARC ) %] |
200 |
<option value="PICAMARC" selected="selected">PICAMARC</option> |
201 |
[% ELSE %] |
202 |
<option value="PICAMARC">PICAMARC</option> |
203 |
[% END %] |
204 |
[% IF ( syntaxAUSMARC ) %] |
205 |
<option value="AUSMARC" selected="selected">AUSMARC</option> |
206 |
[% ELSE %] |
207 |
<option value="AUSMARC">AUSMARC</option> |
208 |
[% END %] |
209 |
[% IF ( syntaxIBERMARC ) %] |
210 |
<option value="IBERMARC" selected="selected">IBERMARC</option> |
211 |
[% ELSE %] |
212 |
<option value="IBERMARC">IBERMARC</option> |
213 |
[% END %] |
214 |
[% IF ( syntaxCATMARC ) %] |
215 |
<option value="CATMARC" selected="selected">CATMARC</option> |
216 |
[% ELSE %] |
217 |
<option value="CATMARC">CATMARC</option> |
218 |
[% END %] |
219 |
[% IF ( syntaxMALMARC ) %] |
220 |
<option value="MALMARC" selected="selected">MALMARC</option> |
221 |
[% ELSE %] |
222 |
<option value="MALMARC">MALMARC</option> |
223 |
[% END %] |
224 |
</select> |
225 |
</li> |
226 |
|
168 |
|
227 |
<li><label for="encoding">Encoding (z3950 can send<br /> records in various encodings. Choose one): </label> |
|
|
228 |
<select name="encoding"> |
229 |
[% FOREACH enc IN [ 'utf8' 'EUC-KR' 'ISO_5426' 'ISO_6937' 'ISO_8859-1' 'MARC-8' ] %] |
230 |
[% IF ( encoding == enc ) %] |
231 |
<option value="[% enc %]" selected="selected">[% enc %]</option> |
232 |
[% ELSE %] |
233 |
<option value="[% enc %]">[% enc %]</option> |
234 |
[% END %] |
235 |
[% END %] |
236 |
</select> |
237 |
</li> |
238 |
<li><label for="timeout">Timeout (0 its like not set): </label> |
169 |
<li><label for="timeout">Timeout (0 its like not set): </label> |
239 |
<input type="text" name="timeout" id="timeout" size="4" value="[% timeout %]" onblur="isNum(this)" /> seconds |
170 |
<input type="text" name="timeout" id="timeout" size="4" value="[% server.timeout %]" onblur="isNum(this)" /> seconds |
240 |
</li> |
171 |
</li> |
241 |
<li><label for="recordtype">Record type: </label> |
172 |
<li><label for="recordtype">Record type: </label> |
242 |
<select name="recordtype" id="recordtype"> |
173 |
<select name="recordtype" id="recordtype"> |
243 |
[% IF ( recordtypebiblio ) %] |
174 |
[% IF ( recordtypebiblio ) %] |
Lines 254-344
Link Here
|
254 |
</li> |
185 |
</li> |
255 |
</ol> |
186 |
</ol> |
256 |
</fieldset> |
187 |
</fieldset> |
257 |
|
|
|
258 |
<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> |
259 |
</form> |
260 |
[% END %] |
261 |
|
262 |
[% IF ( confirm_add ) %] |
263 |
<h3>Z39.50 server added</h3> |
264 |
<form action="[% script_name %]" method="post"> |
265 |
<input type="submit" value="OK" /> |
266 |
</form> |
267 |
[% END %] |
268 |
|
188 |
|
269 |
[% IF ( confirm_update ) %] |
189 |
<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> |
270 |
<h3>Z39.50 server updated</h3> |
|
|
271 |
<form action="[% script_name %]" method="post"> |
272 |
<input type="submit" value="OK" /> |
273 |
</form> |
190 |
</form> |
274 |
[% END %] |
191 |
[% END %] |
275 |
|
192 |
|
276 |
[% IF ( delete_confirm ) %] |
193 |
[% IF op == 'list' %] |
277 |
[% reqsel %] |
194 |
<div id="toolbar" class="btn-toolbar"> |
278 |
<h3>Confirm deletion of server [% searchfield %]</h3> |
195 |
<a id="newserver" class="btn btn-small" href="/cgi-bin/koha/admin/z3950servers.pl?op=add"><i class="icon-plus"></i> New Z39.50 server</a> |
279 |
<ul> |
196 |
</div> |
280 |
<li><strong>Target: </strong> [% searchfield %]</li> |
197 |
<h3>Z39.50 servers administration</h3> |
281 |
<li><strong>Hostname: </strong>[% host %]</li> |
198 |
[% IF id %] |
282 |
<li><strong>Port: </strong>[% port %]</li> |
199 |
You searched for record [% id %] |
283 |
<li><strong>Database: </strong>[% db %]</li> |
200 |
[% ELSIF searchfield %] |
284 |
<li><strong>Userid: </strong>[% userid %]</li> |
201 |
You searched for [% searchfield %] |
285 |
<li><strong>Password: </strong>[% password %]</li> |
202 |
[% END %] |
286 |
<li><strong>Checked: </strong>[% checked %]</li> |
203 |
<table id="serverst"> |
287 |
<li><strong>Rank: </strong>[% rank %]</li> |
204 |
<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>Options</th> |
288 |
<li><strong>Syntax: </strong>[% syntax %]</li> |
205 |
</tr></thead> |
289 |
<li><strong>Encoding: </strong>[% encoding %]</li> |
206 |
<tbody> |
290 |
<li><strong>Timeout: </strong>[% timeout %]</li> |
207 |
[% FOREACH loo IN loop %] |
291 |
<li><strong>Record type: </strong>[% recordtype %]</li> |
208 |
[% UNLESS ( loop.odd ) %] |
292 |
</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> |
209 |
<tr class="highlight"> |
293 |
|
210 |
[% ELSE %] |
294 |
|
211 |
<tr> |
295 |
|
212 |
[% END %] |
296 |
[% END %] |
213 |
<td><a href="[% loo.script_name %]?op=edit&id=[% loo.id %]">[% loo.name %]</a></td><td>[% loo.host %]:[% loo.port %]</td><td>[% loo.db %]</td><td>[% loo.userid %]</td><td>[% IF loo.password %]########[% END %]</td><td>[% IF ( loo.checked ) %]Yes[% ELSE %]No[% END %]</td><td>[% loo.rank %]</td> |
297 |
|
214 |
<td>[% loo.syntax %]</td><td>[% loo.encoding %]</td><td>[% loo.timeout %]</td><td>[% loo.recordtype %]</td> |
298 |
[% IF ( delete_confirmed ) %] |
215 |
<td><a href="[% loo.script_name %]?op=edit&id=[% loo.id %]">Edit</a> <a href="[% loo.script_name %]?op=add&id=[% loo.id %]">Copy</a> <a href="javascript:void(0);" onclick="ConfirmDelete('[% loo.name | replace("['\"]","") %]','[% loo.id %]');">Delete</a></td> |
299 |
<h3>Z39.50 server deleted</h3> |
216 |
</tr> |
300 |
<form action="[% script_name %]" method="post"> |
|
|
301 |
<input type="submit" value="OK" /> |
302 |
</form> |
303 |
[% END %] |
304 |
|
305 |
[% IF ( else ) %] |
306 |
|
307 |
<div id="toolbar" class="btn-toolbar"> |
308 |
<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> |
309 |
</div> |
310 |
|
311 |
<h3>Z39.50 servers administration</h3> |
312 |
|
313 |
[% IF ( searchfield ) %] |
314 |
You searched for [% searchfield %] |
315 |
[% END %] |
217 |
[% END %] |
316 |
<table id="serverst"> |
218 |
</tbody> |
317 |
<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> |
219 |
</table> |
318 |
</tr></thead> |
|
|
319 |
<tbody>[% FOREACH loo IN loop %] |
320 |
[% UNLESS ( loop.odd ) %] |
321 |
<tr class="highlight"> |
322 |
[% ELSE %] |
323 |
<tr> |
324 |
[% END %] |
325 |
<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> |
326 |
|
327 |
<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> |
328 |
[% END %]</tbody> |
329 |
</table> |
330 |
|
331 |
[% IF ( offsetgtzero ) %]<form action="[% script_name %]" method="get"> |
332 |
<input type="hidden" name="offset" value="[% prevpage %]" /> |
333 |
<input type="submit" value="<< Previous"> |
334 |
</form>[% END %] |
335 |
|
336 |
[% IF ( ltcount ) %]<form action="[% script_name %]" method="get"> |
337 |
<input type="hidden" name="offset" value="[% nextpage %]" /> |
338 |
<input type="submit" value="Next >>" /> |
339 |
</form> [% END %] |
340 |
|
341 |
|
342 |
[% END %] |
220 |
[% END %] |
343 |
|
221 |
|
344 |
</div> |
222 |
</div> |
345 |
- |
|
|