Bugzilla – Attachment 71599 Details for
Bug 17374
Make use of fields from syspref 'DefaultPatronSearchFields' in patron search fields dropdown
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17374: (QA follow-up) Add cardnumber to list of searchable patron fields
Bug-17374-QA-follow-up-Add-cardnumber-to-list-of-s.patch (text/plain), 2.18 KB, created by
Katrin Fischer
on 2018-02-14 07:14:07 UTC
(
hide
)
Description:
Bug 17374: (QA follow-up) Add cardnumber to list of searchable patron fields
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2018-02-14 07:14:07 UTC
Size:
2.18 KB
patch
obsolete
>From d6cfca59853d4b487333ba0648e37e3e109c071a Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Tue, 2 Jan 2018 12:55:04 +0000 >Subject: [PATCH] Bug 17374: (QA follow-up) Add cardnumber to list of > searchable patron fields > >To test: >1 - Apply patch >2 - Perform a 'cardnumber' search for patrons >3 - Verify results as expected > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > C4/Utils/DataTables/Members.pm | 1 + > koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc | 2 +- > 2 files changed, 2 insertions(+), 1 deletion(-) > >diff --git a/C4/Utils/DataTables/Members.pm b/C4/Utils/DataTables/Members.pm >index 0005b0164e..a94d20d013 100644 >--- a/C4/Utils/DataTables/Members.pm >+++ b/C4/Utils/DataTables/Members.pm >@@ -86,6 +86,7 @@ sub search { > my $searchfields = { > standard => C4::Context->preference('DefaultPatronSearchFields') || 'surname,firstname,othernames,cardnumber,userid', > surname => 'surname', >+ cardnumber => 'cardnumber', > email => 'email,emailpro,B_email', > borrowernumber => 'borrowernumber', > userid => 'userid', >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 98bae09fad..23a05829d7 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >@@ -20,7 +20,7 @@ > <p><label for="searchfieldstype">Search fields:</label> > <select name="searchfieldstype" id="searchfieldstype"> > [% pref_fields = Koha.Preference('DefaultPatronSearchFields').split(',') %] >- [% default_fields = [ 'standard', 'surname', 'email', 'borrowernumber', 'userid', 'phone', 'address', 'dateofbirth', 'sort1', 'sort2' ] %] >+ [% default_fields = [ 'standard', 'surname', 'cardnumber', 'email', 'borrowernumber', 'userid', 'phone', 'address', 'dateofbirth', 'sort1', 'sort2' ] %] > [% search_options = default_fields.merge(pref_fields).unique %] > [% FOREACH s_o IN search_options %] > [% display_name = PROCESS patron_fields name=s_o %] >-- >2.14.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 17374
:
56921
|
56931
|
56958
|
58239
|
66400
|
70226
|
71536
|
71597
|
71598
|
71599
|
71600
|
74828
|
93226
|
94831
|
94876
|
94890
|
94891
|
94892
|
96341
|
96342
|
96343
|
96679
|
98106
|
98478
|
100436
|
100437
|
100438
|
100439