Bugzilla – Attachment 191096 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/oai_servers.tt
7fadf64.patch (text/plain), 2.26 KB, created by
Jonathan Druart
on 2026-01-09 14:45:08 UTC
(
hide
)
Description:
Bug 41564: Tidy kohaTable - admin/oai_servers.tt
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2026-01-09 14:45:08 UTC
Size:
2.26 KB
patch
obsolete
>From 7fadf64986573ca6801ceccec1951a7341cccad1 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 8 Jan 2026 11:08:31 +0100 >Subject: [PATCH] Bug 41564: Tidy kohaTable - admin/oai_servers.tt > >--- > .../prog/en/modules/admin/oai_servers.tt | 29 +++++++++++++------ > 1 file changed, 20 insertions(+), 9 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/oai_servers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/oai_servers.tt >index f6fb85e39ca..c74e658d801 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/oai_servers.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/oai_servers.tt >@@ -184,14 +184,23 @@ > [% IF op == 'list' %] > [% INCLUDE 'datatables.inc' %] > [% END %] >- <script> >- [% IF ( add_form ) %] >+ [% IF server %] >+ <script> >+ const server = { >+ dataformat: "[% server.dataformat | html %]", >+ recordtype: "[% server.recordtype | html %]", >+ }; >+ </script> >+ [% END %] >+ [% IF ( add_form ) %] >+ <script> > $(document).ready(function(){ > // Update selects for dataformat and recordtype >- [% IF server %] >- $("#dataformat").val('[% server.dataformat | html %]'); >- $("#recordtype").val('[% server.recordtype | html %]'); >- [% END %] >+ // FIXME Do not do this in JS! >+ if (typeof server !== "undefined"){ >+ $("#dataformat").val(server.dataformat); >+ $("#recordtype").val(server.recordtype); >+ } > $( "#serverentry" ).validate({ > rules: { > servername: { required: true }, >@@ -210,7 +219,9 @@ > toUC(this); > }); > }); >- [% ELSE %] >+ </script> >+ [% ELSE %] >+ <script> > $(document).ready(function() { > $("#serverst").kohaTable({ > pagingType: "full", >@@ -226,7 +237,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