Bug 26916 - Show searchable patron attributes in patron search dropdown
Summary: Show searchable patron attributes in patron search dropdown
Status: RESOLVED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Staff interface (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Nick Clemens (kidclamp)
QA Contact: Katrin Fischer
URL:
Keywords:
: 31868 (view as bug list)
Depends on: 17374 34519
Blocks: 34517 35303
  Show dependency treegraph
 
Reported: 2020-11-03 21:38 UTC by Andrew Fuerste-Henry
Modified: 2024-10-04 19:03 UTC (History)
5 users (show)

See Also:
Change sponsored?: ---
Patch complexity: Small patch
Documentation contact: Caroline Cyr La Rose
Documentation submission: https://gitlab.com/koha-community/koha-manual/-/merge_requests/976
Text to go in the release notes:
Version(s) released in:
23.11.00
Circulation function:


Attachments
Bug 26916: Show searchable patron attributes in patron search dropdown (5.46 KB, patch)
2023-08-11 17:41 UTC, Nick Clemens (kidclamp)
Details | Diff | Splinter Review
Bug 26916: Adjust unit tests (1.78 KB, patch)
2023-08-11 17:41 UTC, Nick Clemens (kidclamp)
Details | Diff | Splinter Review
Bug 26916: Show searchable patron attributes in patron search dropdown (5.47 KB, patch)
2023-08-17 19:48 UTC, Nick Clemens (kidclamp)
Details | Diff | Splinter Review
Bug 26916: Adjust unit tests (1.93 KB, patch)
2023-08-17 19:48 UTC, Nick Clemens (kidclamp)
Details | Diff | Splinter Review
Bug 26916: Show searchable patron attributes in patron search dropdown (5.52 KB, patch)
2023-08-18 12:27 UTC, Janusz Kaczmarek
Details | Diff | Splinter Review
Bug 26916: Adjust unit tests (1.98 KB, patch)
2023-08-18 12:27 UTC, Janusz Kaczmarek
Details | Diff | Splinter Review
Bug 26916: Show searchable patron attributes in patron search dropdown (5.57 KB, patch)
2023-11-05 01:19 UTC, Katrin Fischer
Details | Diff | Splinter Review
Bug 26916: Adjust unit tests (2.04 KB, patch)
2023-11-05 01:19 UTC, Katrin Fischer
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Fuerste-Henry 2020-11-03 21:38:29 UTC
following bug 17374, fields listed in DefaultPatronSearchFields also appear in the patron search fields dropdown. It would be great to be able to get patron attributes to show in that dropdown, too.
Comment 1 Andrew Fuerste-Henry 2022-02-03 13:48:16 UTC
Flagging an attribute as "searchable" makes it part of the standard patron search, but leaves one without a way to search *only* within that attribute. Adding it to the dropdown would all ow that specificity.
Comment 2 Nick Clemens (kidclamp) 2023-08-11 17:41:04 UTC
Created attachment 154385 [details] [review]
Bug 26916: Show searchable patron attributes in patron search dropdown

This patch adds attributes that have been marked searchable to the patron
search dropdowns

To test:
1 - Define some new patron attribute types and make then staff_searchable
2 - Add some values to patrons
3 - Confirm they are searched in 'Standard' search, but there is no other way to search them
4 - Apply patch
5 - Confirm the fields now show in patorn search dropdowns
6 - Search using 'standard' and confirm the searhc works
7 - Search specific attributes and confirm the searhc works
Comment 3 Nick Clemens (kidclamp) 2023-08-11 17:41:06 UTC
Created attachment 154386 [details] [review]
Bug 26916: Adjust unit tests
Comment 4 Nick Clemens (kidclamp) 2023-08-11 19:32:47 UTC
*** Bug 31868 has been marked as a duplicate of this bug. ***
Comment 5 Nick Clemens (kidclamp) 2023-08-17 19:48:34 UTC
Created attachment 154573 [details] [review]
Bug 26916: Show searchable patron attributes in patron search dropdown

This patch adds attributes that have been marked searchable to the patron
search dropdowns

To test:
1 - Define some new patron attribute types and make then staff_searchable
2 - Add some values to patrons
3 - Confirm they are searched in 'Standard' search, but there is no other way to search them
4 - Apply patch
5 - Confirm the fields now show in patorn search dropdowns
6 - Search using 'standard' and confirm the searhc works
7 - Search specific attributes and confirm the searhc works




 Current depends: 17374 34519
Comment 6 Nick Clemens (kidclamp) 2023-08-17 19:48:37 UTC
Created attachment 154574 [details] [review]
Bug 26916: Adjust unit tests
Comment 7 Janusz Kaczmarek 2023-08-18 12:27:53 UTC
Created attachment 154653 [details] [review]
Bug 26916: Show searchable patron attributes in patron search dropdown

This patch adds attributes that have been marked searchable to the patron
search dropdowns

To test:
1 - Define some new patron attribute types and make then staff_searchable
2 - Add some values to patrons
3 - Confirm they are searched in 'Standard' search, but there is no other way to search them
4 - Apply patch
5 - Confirm the fields now show in patorn search dropdowns
6 - Search using 'standard' and confirm the searhc works
7 - Search specific attributes and confirm the searhc works

Signed-off-by: Janusz Kaczmarek <januszop@gmail.com>
Comment 8 Janusz Kaczmarek 2023-08-18 12:27:55 UTC
Created attachment 154654 [details] [review]
Bug 26916: Adjust unit tests

Signed-off-by: Janusz Kaczmarek <januszop@gmail.com>
Comment 9 Katrin Fischer 2023-10-21 09:10:44 UTC
Blocked by depending patch needing a rebase.
Comment 10 Katrin Fischer 2023-11-05 01:19:10 UTC
Created attachment 158427 [details] [review]
Bug 26916: Show searchable patron attributes in patron search dropdown

This patch adds attributes that have been marked searchable to the patron
search dropdowns

To test:
1 - Define some new patron attribute types and make then staff_searchable
2 - Add some values to patrons
3 - Confirm they are searched in 'Standard' search, but there is no other way to search them
4 - Apply patch
5 - Confirm the fields now show in patorn search dropdowns
6 - Search using 'standard' and confirm the searhc works
7 - Search specific attributes and confirm the searhc works

Signed-off-by: Janusz Kaczmarek <januszop@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Comment 11 Katrin Fischer 2023-11-05 01:19:13 UTC
Created attachment 158428 [details] [review]
Bug 26916: Adjust unit tests

Signed-off-by: Janusz Kaczmarek <januszop@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Comment 12 Tomás Cohen Arazi (tcohen) 2023-11-08 20:55:19 UTC
Pushed to master for 23.11.

Nice work everyone, thanks!
Comment 13 Fridolin Somers 2023-11-11 01:40:22 UTC
Depends on Bug 34519 not in 23.05.x