Bugzilla – Attachment 173786 Details for
Bug 37238
Add table settings to itemsearch results
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37238: Add exception for itemsearch
Bug-37238-Add-exception-for-itemsearch.patch (text/plain), 2.45 KB, created by
Martin Renvoize (ashimema)
on 2024-10-31 12:19:52 UTC
(
hide
)
Description:
Bug 37238: Add exception for itemsearch
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2024-10-31 12:19:52 UTC
Size:
2.45 KB
patch
obsolete
>From cab1d5d83047aae844ddad00b6e023092ef9387b Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 31 Oct 2024 09:41:39 +0100 >Subject: [PATCH] Bug 37238: Add exception for itemsearch > >Item search has its own way to share the link, we should not deal with >the state (and the work from bug 33484) on this page. >It will certainly need to be adjusted to work like the other tables, but >it's something for later. > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc | 3 ++- > .../intranet-tmpl/prog/en/modules/admin/columns_settings.tt | 3 ++- > 2 files changed, 4 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc >index 46411008b07..d64806b26a5 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc >@@ -215,7 +215,8 @@ function KohaTable(id_selector, dt_parameters, table_settings, add_filters) { > } > ); > >- if ( table_settings ) { >+ /* No other exceptions should be added here! */ >+ if ( table_settings && table_settings.page != 'itemsearch' ) { > dt_parameters["buttons"].push( > { > autoClose: true, >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/columns_settings.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/columns_settings.tt >index 171a27bc59e..a3f45c22f9e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/columns_settings.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/columns_settings.tt >@@ -149,7 +149,8 @@ > </p> > [% END %] > >- [% IF modulename != 'opac' %] >+ [%# No other exceptions should be added here! %] >+ [% IF modulename != 'opac' && pagename != 'itemsearch' %] > <p> > [% SET option_name = pagename _ "|" _ tablename _ "_default_save_state" %] > <label for="[% option_name | html %]" title="Save the column visibility, length of the table and order in session">Save configuration state on page change:</label> >-- >2.47.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 37238
:
168409
|
168411
|
168483
|
170785
|
171037
|
173414
|
173415
|
173416
|
173740
|
173765
|
173766
|
173768
|
173785
| 173786 |
173787