Bugzilla – Attachment 191149 Details for
Bug 41576
Tidy kohaTable block - reports
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41576: Tidy kohaTable - reports/catalogue_stats.tt
0a50b3c.patch (text/plain), 3.23 KB, created by
Jonathan Druart
on 2026-01-09 14:51:45 UTC
(
hide
)
Description:
Bug 41576: Tidy kohaTable - reports/catalogue_stats.tt
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2026-01-09 14:51:45 UTC
Size:
3.23 KB
patch
obsolete
>From 0a50b3c047327dc1bb174579c3495f36badded5b Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 8 Jan 2026 14:30:16 +0100 >Subject: [PATCH] Bug 41576: Tidy kohaTable - reports/catalogue_stats.tt > >--- > .../en/modules/reports/catalogue_stats.tt | 54 ++++++++++--------- > 1 file changed, 28 insertions(+), 26 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/catalogue_stats.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/catalogue_stats.tt >index c49ebfccd2b..e0acd6236f7 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/catalogue_stats.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/catalogue_stats.tt >@@ -383,6 +383,34 @@ > [% MACRO jsinclude BLOCK %] > [% INCLUDE 'calendar.inc' %] > [% INCLUDE 'datatables.inc' %] >+ <script> >+ // FIXME This does not work, we need to pass table settings, not the columns >+ columns_settings = [% FILTER collapse %] >+ [ >+ { >+ "is_hidden": 0, >+ "columnname": "[% mainloo.line | html %]_[% mainloo.column | html %]", >+ "cannot_be_toggled": 1, >+ "cannot_be_modified": 1 >+ }, >+ [% FOREACH loopco IN mainloo.loopcol %] >+ { >+ "is_hidden": 0, >+ "columnname": "[% loopco.coltitle | html %]", >+ "cannot_be_toggled": 0, >+ "cannot_be_modified": 0 >+ }, >+ [% END %] >+ { >+ "is_hidden": 0, >+ "columnname": "total", >+ "cannot_be_toggled": 0, >+ "cannot_be_modified": 0 >+ }, >+ ]; >+ [% END %] >+ </script> >+ > <script> > function changeRemovedDateTrStatus() { > var Cellvalue = $("input[name='Cellvalue']:checked").val(); >@@ -406,32 +434,6 @@ > }); > changeRemovedDateTrStatus(); > >- // FIXME This does not work, we need to pass table settings, not the columns >- columns_settings = [% FILTER collapse %] >- [ >- { >- "is_hidden": 0, >- "columnname": "[% mainloo.line | html %]_[% mainloo.column | html %]", >- "cannot_be_toggled": 1, >- "cannot_be_modified": 1 >- }, >- [% FOREACH loopco IN mainloo.loopcol %] >- { >- "is_hidden": 0, >- "columnname": "[% loopco.coltitle | html %]", >- "cannot_be_toggled": 0, >- "cannot_be_modified": 0 >- }, >- [% END %] >- { >- "is_hidden": 0, >- "columnname": "total", >- "cannot_be_toggled": 0, >- "cannot_be_modified": 0 >- }, >- ]; >- [% END %] >- > var catalogue_stats = $("#catalogue_stats").kohaTable( > { > autoWidth: false, >-- >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 41576
: 191149 |
191150
|
191151
|
191152