Bugzilla – Attachment 132766 Details for
Bug 30063
Make the main patron search use the /patrons REST API route
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30063: Display search description for main search only
Bug-30063-Display-search-description-for-main-sear.patch (text/plain), 3.01 KB, created by
Martin Renvoize (ashimema)
on 2022-03-31 13:22:18 UTC
(
hide
)
Description:
Bug 30063: Display search description for main search only
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2022-03-31 13:22:18 UTC
Size:
3.01 KB
patch
obsolete
>From 8aba304ccca6e1d7204205d6e29d0df835859827 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 15 Feb 2022 11:18:09 +0100 >Subject: [PATCH] Bug 30063: Display search description for main search only >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Signed-off-by: Séverine Queune <severine.queune@bulac.fr> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > .../prog/en/includes/patron-search.inc | 13 ++++++++++--- > .../intranet-tmpl/prog/en/modules/members/member.tt | 1 + > 2 files changed, 11 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >index 29a9f5f664..e101b7c1ee 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >@@ -202,6 +202,7 @@ > [%# actions: list of buttons to display in the action column. Possible values are: 'select', 'add', 'edit', 'checkout' %] > [%# sticky_header and sticky_to: If we need a sticky header %] > [%# callback: name of the JS function that will be called when a patron is selected. Only work with action=select %] >+[%# display_search_description: boolean, default off. Display the description of the search %] > [% BLOCK patron_search_js %] > > [% IF redirect_if_one_result && !redirect_url %] >@@ -720,7 +721,9 @@ > table_dt.search(""); > first_draw = 1; // Only redirect if we are coming from here > table_dt.draw(); >- update_search_description(); >+ [% IF display_search_description %] >+ update_search_description(); >+ [% END %] > return false; > } > >@@ -734,7 +737,9 @@ > /* remove any search string added by firstletter search */ > history.pushState( {}, null, window.location.href.split("?" )[0]); > $("#[% table_id | html %]_search_results").hide(); >- update_search_description(); >+ [% IF display_search_description %] >+ update_search_description(); >+ [% END %] > } > > // User has clicked on a letter >@@ -748,7 +753,9 @@ > } > > patrons_table.DataTable().draw(); >- update_search_description(); >+ [% IF display_search_description %] >+ update_search_description(); >+ [% END %] > } > > // modify parent window owner element >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt >index f8c60f664b..e57e6334f5 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt >@@ -312,6 +312,7 @@ > sticky_header => "searchheader", > sticky_to => "searchresults", > default_sort_column => 'name-address', >+ display_search_description => 1, > %] > > >-- >2.20.1
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 30063
:
130608
|
130609
|
130610
|
130611
|
130612
|
130613
|
130614
|
130615
|
132387
|
132552
|
132731
|
132732
|
132733
|
132734
|
132735
|
132736
|
132737
|
132738
|
132739
|
132740
|
132741
|
132742
|
132743
|
132744
|
132745
|
132746
|
132747
|
132748
|
132749
|
132759
|
132760
|
132761
|
132762
|
132763
|
132764
|
132765
| 132766 |
132767
|
132768
|
132769
|
132770
|
132771
|
132772
|
132773
|
132774
|
132775
|
132776
|
132777
|
132958