[Bug 37442] New: Add customizable dropdown selections for the advanced search filters
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37442 Bug ID: 37442 Summary: Add customizable dropdown selections for the advanced search filters Change sponsored?: --- Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Searching Assignee: koha-bugs@lists.koha-community.org Reporter: samalau@gmail.com QA Contact: testopia@bugs.koha-community.org It would be useful if we could customize the options for the dropdown selections in the advanced search filters. Currently, the options are hard-coded with a large list of options for each dropdown, making it difficult to adjust which options are shown, the way they are ordered, etc. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37442 Sam Lau <samalau@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|koha-bugs@lists.koha-commun |samalau@gmail.com |ity.org | -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37442 --- Comment #1 from Sam Lau <samalau@gmail.com> --- Created attachment 169448 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=169448&action=edit Bug 37442: Add customizable dropdown selections for the advanced search filters To test: 1) Apply patch, restart_all 2) Visit Tools->HTML customizations 3) Click 'New entry using text editor' 4) For 'Display location', select "StaffAdvancedSearchList" 5) Make the publication date today. 6) For the content, put some dropdown options... you can paste in this block for example: <option value="au">Author</option> <option value="ti">Title</option> <option value="bc">Barcode</option> 7) Visit the Advanced search page 8) In the search dropdowns, notice that there are only the options that you provided (Author, Title, Barcode) 9) In the top search dropdown, select 'Title' and type in "the" 10) Press 'Search'. The search completes succesfully. Now press 'Edit this search' 11) You should be brought back to the 'Advanced search' page and the top dropdown should be selected as 'Title' and have "the" prefilled. 12) In the second search dropdown, select "Author" and type in "John" 13) Now press search. Once again press "Edit this search" and note the items are prefilled correctly. 14) Go back to Tools->HTML customizations and delete the 'StaffAdvancedSearchList' we initially created. 15) Back at the 'Advanced search' page, the dropdown options should be back to the default. Do some searches to ensure the searches work, and when editing, the options are correctly prefilled. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37442 Sam Lau <samalau@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37442 Lucas Gass <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lucas@bywatersolutions.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37442 Eric Garcia <cubingguy714@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Patch complexity|--- |Small patch Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37442 Eric Garcia <cubingguy714@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #169448|0 |1 is obsolete| | --- Comment #2 from Eric Garcia <cubingguy714@gmail.com> --- Created attachment 169494 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=169494&action=edit Bug 37442: Add customizable dropdown selections for the advanced search filters To test: 1) Apply patch, restart_all 2) Visit Tools->HTML customizations 3) Click 'New entry using text editor' 4) For 'Display location', select "StaffAdvancedSearchList" 5) Make the publication date today. 6) For the content, put some dropdown options... you can paste in this block for example: <option value="au">Author</option> <option value="ti">Title</option> <option value="bc">Barcode</option> 7) Visit the Advanced search page 8) In the search dropdowns, notice that there are only the options that you provided (Author, Title, Barcode) 9) In the top search dropdown, select 'Title' and type in "the" 10) Press 'Search'. The search completes succesfully. Now press 'Edit this search' 11) You should be brought back to the 'Advanced search' page and the top dropdown should be selected as 'Title' and have "the" prefilled. 12) In the second search dropdown, select "Author" and type in "John" 13) Now press search. Once again press "Edit this search" and note the items are prefilled correctly. 14) Go back to Tools->HTML customizations and delete the 'StaffAdvancedSearchList' we initially created. 15) Back at the 'Advanced search' page, the dropdown options should be back to the default. Do some searches to ensure the searches work, and when editing, the options are correctly prefilled. Signed-off-by: Eric Garcia <cubingguy714@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37442 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Failed QA --- Comment #3 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- If I see it correctly in the code, this patch breaks the *NumbersPreferPhrase system preferences behavior. Can you please check? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37442 Andrew Fuerste-Henry <andrew@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrew@bywatersolutions.com -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org