Bugzilla – Attachment 192735 Details for
Bug 41564
Tidy kohaTable block - admin
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41564: Tidy kohaTable - admin/z3950servers.tt
a6df5c0.patch (text/plain), 2.66 KB, created by
Jonathan Druart
on 2026-02-09 11:00:55 UTC
(
hide
)
Description:
Bug 41564: Tidy kohaTable - admin/z3950servers.tt
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2026-02-09 11:00:55 UTC
Size:
2.66 KB
patch
obsolete
>From a6df5c042ecda05f2ffe604b786500830ffbbd9a Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 8 Jan 2026 11:13:24 +0100 >Subject: [PATCH] Bug 41564: Tidy kohaTable - admin/z3950servers.tt > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > .../prog/en/modules/admin/z3950servers.tt | 33 +++++++++++++------ > 1 file changed, 23 insertions(+), 10 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tt >index 63549127fc7..ae5d5cc2d0d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tt >@@ -272,15 +272,26 @@ > [% IF op == 'list' %] > [% INCLUDE 'datatables.inc' %] > [% END %] >- <script> >- [% IF op == 'edit_form' || op == 'add_form' %] >+ >+ [% IF server %] >+ <script> >+ const server = { >+ syntax: "[% server.syntax | html %]", >+ encoding: "[% server.encoding | html %]", >+ recordtype: "[% server.recordtype | html %]", >+ }; >+ </script> >+ [% END %] >+ >+ [% IF op == 'edit_form' || op == 'add_form' %] >+ <script> > $(document).ready(function(){ > // Update selects for syntax, encoding and recordtype >- [% IF server %] >- $("#syntax").val('[% server.syntax | html %]'); >- $("#encoding").val('[% server.encoding | html %]'); >- $("#recordtype").val('[% server.recordtype | html %]'); >- [% END %] >+ if (typeof server !== 'undefined'){ >+ $("#syntax").val(server.syntax); >+ $("#encoding").val(server.encoding); >+ $("#recordtype").val(server.recordtype); >+ } > $( "#serverentry" ).validate({ > rules: { > servername: { required: true }, >@@ -316,7 +327,9 @@ > var type= $('#recordtype').val(); > window.open('/cgi-bin/koha/admin/sru_modmapping.pl?mapping='+map + '&type=' + type,'popup','width=800,height=400,resizable=yes,toolbar=false,scrollbars=yes,top'); > } >- [% ELSE %] >+ </script> >+ [% ELSE %] >+ <script> > $(document).ready(function() { > $("#serverst").kohaTable({ > pagingType: "full", >@@ -332,7 +345,7 @@ > } > }); > }); >- [% END %] >- </script> >+ </script> >+ [% END %] > [% END %] > [% INCLUDE 'intranet-bottom.inc' %] >-- >2.43.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 41564
:
191082
|
191083
|
191084
|
191085
|
191086
|
191087
|
191088
|
191089
|
191090
|
191091
|
191092
|
191093
|
191094
|
191095
|
191096
|
191097
|
191098
|
191099
|
191100
|
191310
|
191311
|
191312
|
191313
|
191314
|
191315
|
191316
|
191317
|
191318
|
191319
|
191320
|
191321
|
191322
|
191323
|
191324
|
191325
|
191326
|
191327
|
191328
|
191329
|
192732
|
192733
|
192734
|
192735
|
192736
|
192737
|
192763
|
192764
|
192765
|
192766
|
192767
|
192768
|
192769
|
192770
|
192771
|
192772
|
192773
|
192774
|
192775
|
192776
|
192777
|
192778
|
192779
|
192780
|
192781
|
192782