Bugzilla – Attachment 191164 Details for
Bug 41580
Tidy kohaTable block - tools
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41580: Tidy kohaTable - tools/batch_modify_holds.tt
4e7b21d.patch (text/plain), 2.52 KB, created by
Jonathan Druart
on 2026-01-09 14:53:37 UTC
(
hide
)
Description:
Bug 41580: Tidy kohaTable - tools/batch_modify_holds.tt
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2026-01-09 14:53:37 UTC
Size:
2.52 KB
patch
obsolete
>From 4e7b21dd29ee8f6a684ee07dce90a21aed2ce901 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 8 Jan 2026 15:49:25 +0100 >Subject: [PATCH] Bug 41580: Tidy kohaTable - tools/batch_modify_holds.tt > >--- > .../prog/en/modules/tools/batch_modify_holds.tt | 10 ++++++---- > 1 file changed, 6 insertions(+), 4 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_modify_holds.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_modify_holds.tt >index fa5f91c6721..de509e0dab6 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_modify_holds.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_modify_holds.tt >@@ -249,7 +249,11 @@ > let hide_patron_name = [% IF Koha.Preference('HidePatronName') %]true[% ELSE %]false[% END %]; > let hold_ids = [% IF updated_holds %] [% updated_holds | $raw %] [% ELSE %] [] [% END %]; > let hold_ids_from_sql = [% IF reserve_ids_list %] [% reserve_ids_list | $raw %] [% ELSE %] [] [% END %]; >+ var holds_to_modify_table_settings = [% TablesSettings.GetTableSettings( 'tools', 'batch_hold_modification', 'holds_to_modify', 'json' ) | $raw %]; >+ var modified_holds_table_settings = [% TablesSettings.GetTableSettings( 'circ', 'holds', 'modified_holds', 'json' ) | $raw %]; >+ </script> > >+ <script> > $(document).ready(function() { > > // Apply select2 to all select fields having a "multiple" attribute >@@ -343,7 +347,6 @@ > } > > function search_holds(modify_holds_form){ >- var table_settings = [% TablesSettings.GetTableSettings( 'tools', 'batch_hold_modification', 'holds_to_modify', 'json' ) | $raw %]; > var searchpattern = ""; > var filters = { > "me.expirationdate": function(){ >@@ -570,7 +573,7 @@ > } > } > ], >- }, table_settings, 0, filters); >+ }, holds_to_modify_table_settings, 0, filters); > > $(".searchpattern").text(searchpattern); > >@@ -643,11 +646,10 @@ > }); > > //Modified holds table >- var table_settings = [% TablesSettings.GetTableSettings( 'circ', 'holds', 'modified_holds', 'json' ) | $raw %]; > $("#modified_holds").kohaTable({ > pagingType: "full", > autoWidth: false >- }, table_settings); >+ }, modified_holds_table_settings); > > }); > </script> >-- >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 41580
:
191163
| 191164 |
191165
|
191166
|
191167
|
191168
|
191169
|
191170
|
191171