|
Lines 14-23
Link Here
|
| 14 |
|
14 |
|
| 15 |
<title |
15 |
<title |
| 16 |
>[% FILTER collapse %] |
16 |
>[% FILTER collapse %] |
| 17 |
[% IF op == 'edit' %] |
17 |
[% IF op == 'edit_form' %] |
| 18 |
[% tx("Modify {servertype} server '{servername}'", { servertype = servertype, servername = server.servername }) | html %] |
18 |
[% tx("Modify {servertype} server '{servername}'", { servertype = servertype, servername = server.servername }) | html %] |
| 19 |
› |
19 |
› |
| 20 |
[% ELSIF op == 'add' %] |
20 |
[% ELSIF op == 'add_form' %] |
| 21 |
[% tx("New {servertype} server", { servertype = servertype }) | html %] |
21 |
[% tx("New {servertype} server", { servertype = servertype }) | html %] |
| 22 |
› |
22 |
› |
| 23 |
[% ELSIF searchfield %] |
23 |
[% ELSIF searchfield %] |
|
Lines 42-58
Link Here
|
| 42 |
<a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> |
42 |
<a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> |
| 43 |
[% END %] |
43 |
[% END %] |
| 44 |
|
44 |
|
| 45 |
[% IF op == 'edit' || op == 'add' || searchfield %] |
45 |
[% IF op == 'edit_form' || op == 'add_form' || searchfield %] |
| 46 |
[% WRAPPER breadcrumb_item %] |
46 |
[% WRAPPER breadcrumb_item %] |
| 47 |
<a href="/cgi-bin/koha/admin/z3950servers.pl">Z39.50/SRU servers</a> |
47 |
<a href="/cgi-bin/koha/admin/z3950servers.pl">Z39.50/SRU servers</a> |
| 48 |
[% END %] |
48 |
[% END %] |
| 49 |
[% END %] |
49 |
[% END %] |
| 50 |
|
50 |
|
| 51 |
[% IF op == 'edit' %] |
51 |
[% IF op == 'edit_form' %] |
| 52 |
[% WRAPPER breadcrumb_item bc_active= 1 %] |
52 |
[% WRAPPER breadcrumb_item bc_active= 1 %] |
| 53 |
[% tx("Modify {servertype} server '{servername}'", { servertype = servertype, servername = server.servername }) | html %] |
53 |
[% tx("Modify {servertype} server '{servername}'", { servertype = servertype, servername = server.servername }) | html %] |
| 54 |
[% END %] |
54 |
[% END %] |
| 55 |
[% ELSIF op == 'add' %] |
55 |
[% ELSIF op == 'add_form' %] |
| 56 |
[% WRAPPER breadcrumb_item bc_active= 1 %] |
56 |
[% WRAPPER breadcrumb_item bc_active= 1 %] |
| 57 |
[% tx("New {servertype} server", { servertype = servertype }) | html %] |
57 |
[% tx("New {servertype} server", { servertype = servertype }) | html %] |
| 58 |
[% END %] |
58 |
[% END %] |
|
Lines 80-89
Link Here
|
| 80 |
<div class="alert alert-warning">Error: Server with ID [% msg_add | html %] not found</div> |
80 |
<div class="alert alert-warning">Error: Server with ID [% msg_add | html %] not found</div> |
| 81 |
[% END %] |
81 |
[% END %] |
| 82 |
|
82 |
|
| 83 |
[% IF ( add_form ) %] |
83 |
[% IF op == 'edit_form' || op == 'add_form' %] |
| 84 |
<form action="/cgi-bin/koha/admin/z3950servers.pl" name="Aform" method="post" id="serverentry"> |
84 |
<form action="/cgi-bin/koha/admin/z3950servers.pl" name="Aform" method="post" id="serverentry"> |
| 85 |
[% INCLUDE 'csrf-token.inc' %] |
85 |
[% INCLUDE 'csrf-token.inc' %] |
| 86 |
[% IF op == 'edit' %] |
86 |
[% IF op == 'edit_form' %] |
| 87 |
<h1>[% tx("Modify {servertype} server '{servername}'", { servertype = servertype, servername = server.servername }) | html %]</h1> |
87 |
<h1>[% tx("Modify {servertype} server '{servername}'", { servertype = servertype, servername = server.servername }) | html %]</h1> |
| 88 |
<input type="hidden" name="id" value="[% server.id | html %]" /> |
88 |
<input type="hidden" name="id" value="[% server.id | html %]" /> |
| 89 |
[% ELSE %] |
89 |
[% ELSE %] |
|
Lines 207-214
Link Here
|
| 207 |
|
207 |
|
| 208 |
[% IF op == 'list' %] |
208 |
[% IF op == 'list' %] |
| 209 |
<div id="toolbar" class="btn-toolbar"> |
209 |
<div id="toolbar" class="btn-toolbar"> |
| 210 |
<a id="newserver" class="btn btn-default" href="/cgi-bin/koha/admin/z3950servers.pl?op=add&type=zed"><i class="fa fa-plus"></i> New Z39.50 server</a> |
210 |
<a id="newserver" class="btn btn-default" href="/cgi-bin/koha/admin/z3950servers.pl?op=add_form&type=zed"><i class="fa fa-plus"></i> New Z39.50 server</a> |
| 211 |
<a id="newserver" class="btn btn-default" href="/cgi-bin/koha/admin/z3950servers.pl?op=add&type=sru"><i class="fa fa-plus"></i> New SRU server</a> |
211 |
<a id="newserver" class="btn btn-default" href="/cgi-bin/koha/admin/z3950servers.pl?op=add_form&type=sru"><i class="fa fa-plus"></i> New SRU server</a> |
| 212 |
</div> |
212 |
</div> |
| 213 |
<h1>Z39.50/SRU servers</h1> |
213 |
<h1>Z39.50/SRU servers</h1> |
| 214 |
[% IF searchfield %] |
214 |
[% IF searchfield %] |
|
Lines 226-232
Link Here
|
| 226 |
<tbody> |
226 |
<tbody> |
| 227 |
[% FOREACH loo IN loop %] |
227 |
[% FOREACH loo IN loop %] |
| 228 |
<tr> |
228 |
<tr> |
| 229 |
<td><a href="/cgi-bin/koha/admin/z3950servers.pl?op=edit&id=[% loo.id | uri %]">[% loo.servername | html %]</a></td |
229 |
<td><a href="/cgi-bin/koha/admin/z3950servers.pl?op=edit_form&id=[% loo.id | uri %]">[% loo.servername | html %]</a></td |
| 230 |
><td>[% loo.host | html %]:[% loo.port | html %]</td><td>[% loo.db | html %]</td><td>[% loo.userid | html %]</td><td>[% IF loo.password %]########[% END %]</td |
230 |
><td>[% loo.host | html %]:[% loo.port | html %]</td><td>[% loo.db | html %]</td><td>[% loo.userid | html %]</td><td>[% IF loo.password %]########[% END %]</td |
| 231 |
><td>[% IF ( loo.checked ) %]Yes[% ELSE %]No[% END %]</td><td>[% loo.rank | html %]</td> <td>[% loo.syntax | html %]</td><td>[% loo.encoding | html %]</td><td>[% loo.timeout | html %]</td> |
231 |
><td>[% IF ( loo.checked ) %]Yes[% ELSE %]No[% END %]</td><td>[% loo.rank | html %]</td> <td>[% loo.syntax | html %]</td><td>[% loo.encoding | html %]</td><td>[% loo.timeout | html %]</td> |
| 232 |
<td |
232 |
<td |
|
Lines 242-251
Link Here
|
| 242 |
<a class="btn btn-default btn-xs dropdown-toggle" id="reportactions[% savedreport.id | html %]" role="button" data-bs-toggle="dropdown" href="#"> Actions </a> |
242 |
<a class="btn btn-default btn-xs dropdown-toggle" id="reportactions[% savedreport.id | html %]" role="button" data-bs-toggle="dropdown" href="#"> Actions </a> |
| 243 |
<ul class="dropdown-menu" role="menu" aria-labelledby="reportactions[% savedreport.id | html %]"> |
243 |
<ul class="dropdown-menu" role="menu" aria-labelledby="reportactions[% savedreport.id | html %]"> |
| 244 |
<li |
244 |
<li |
| 245 |
><a class="dropdown-item" href="/cgi-bin/koha/admin/z3950servers.pl?op=edit&id=[% loo.id | uri %]"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a></li |
245 |
><a class="dropdown-item" href="/cgi-bin/koha/admin/z3950servers.pl?op=edit_form&id=[% loo.id | uri %]"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a></li |
| 246 |
> |
246 |
> |
| 247 |
<li |
247 |
<li |
| 248 |
><a class="dropdown-item" href="/cgi-bin/koha/admin/z3950servers.pl?op=add&id=[% loo.id | uri %]"><i class="fa fa-copy"></i> Copy</a></li |
248 |
><a class="dropdown-item" href="/cgi-bin/koha/admin/z3950servers.pl?op=add_form&id=[% loo.id | uri %]"><i class="fa fa-copy"></i> Copy</a></li |
| 249 |
> |
249 |
> |
| 250 |
<li> |
250 |
<li> |
| 251 |
<a href="#" class="dropdown-item delete" data-formid="server_row_[% loo.id | uri %]" data-servername="[% loo.servername | html %]"><i class="fa fa-trash-can"></i> Delete</a> |
251 |
<a href="#" class="dropdown-item delete" data-formid="server_row_[% loo.id | uri %]" data-servername="[% loo.servername | html %]"><i class="fa fa-trash-can"></i> Delete</a> |
|
Lines 273-279
Link Here
|
| 273 |
[% INCLUDE 'datatables.inc' %] |
273 |
[% INCLUDE 'datatables.inc' %] |
| 274 |
[% END %] |
274 |
[% END %] |
| 275 |
<script> |
275 |
<script> |
| 276 |
[% IF ( add_form ) %] |
276 |
[% IF op == 'edit_form' || op == 'add_form' %] |
| 277 |
$(document).ready(function(){ |
277 |
$(document).ready(function(){ |
| 278 |
// Update selects for syntax, encoding and recordtype |
278 |
// Update selects for syntax, encoding and recordtype |
| 279 |
[% IF server %] |
279 |
[% IF server %] |
| 280 |
- |
|
|