[Bug 36509] New: Add option to search authority records by ID
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36509 Bug ID: 36509 Summary: Add option to search authority records by ID Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Searching Assignee: koha-bugs@lists.koha-community.org Reporter: aleisha@catalyst.net.nz QA Contact: testopia@bugs.koha-community.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=36509 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Change sponsored?|--- |Sponsored Assignee|koha-bugs@lists.koha-commun |aleisha@catalyst.net.nz |ity.org | -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36509 --- Comment #1 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 164524 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=164524&action=edit [WIP] Bug 36509: Add Search ID tab to authorities search on staff interface -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36509 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Patch complexity|--- |Small patch Status|ASSIGNED |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36509 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #164524|0 |1 is obsolete| | --- Comment #2 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 164576 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=164576&action=edit Bug 36509: Add Search ID tab to authorities search on staff interface This patch makes use of the existing local-number index on the 001 authority field so that authority records can be searched using the 001 ID. This patch works for both Elasticsearch and Zebra search engines. To test: 1. Spin up your ktd with elasticsearch `ktd --es7 up` 2. In the staff interface, open up Koha Administration and search for the SearchEngine system preference. It should be set to Elasticsearch. 3. In another tab, open the staff interface and go to Authorities. 4. Do a normal authorities search, confirm that when you expand the dropdown to order by 'none', the results appear to be in authority-ID ascending order. 5. Choose an ID and go to new the Search ID tab. Search for your ID, confirm it shows as expected. 6. Back in the Koha Administration tab, change the SearchEngine to Zebra. 7. In your Authorities tab, refresh the page. 8. Repeat step 5 and confirm that you can search for the authority by its ID again. Sponsored-by: Education Services Australia SCIS -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36509 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |david@davidnind.com Status|Needs Signoff |Patch doesn't apply --- Comment #3 from David Nind <david@davidnind.com> --- The patch no longer applies 8-(... git bz apply 36509 Bug 36509 - Add option to search authority records by ID 164576 - Bug 36509: Add Search ID tab to authorities search on staff interface Apply? [(y)es, (n)o, (i)nteractive] y Applying: Bug 36509: Add Search ID tab to authorities search on staff interface Using index info to reconstruct a base tree... M Koha/SearchEngine/Elasticsearch/QueryBuilder.pm M admin/searchengine/elasticsearch/mappings.yaml M koha-tmpl/intranet-tmpl/prog/en/includes/authorities_js.inc Falling back to patching base and 3-way merge... Auto-merging koha-tmpl/intranet-tmpl/prog/en/includes/authorities_js.inc CONFLICT (content): Merge conflict in koha-tmpl/intranet-tmpl/prog/en/includes/authorities_js.inc Auto-merging admin/searchengine/elasticsearch/mappings.yaml Auto-merging Koha/SearchEngine/Elasticsearch/QueryBuilder.pm error: Failed to merge in the changes. Patch failed at 0001 Bug 36509: Add Search ID tab to authorities search on staff interface -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36509 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Patch doesn't apply |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36509 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #164576|0 |1 is obsolete| | --- Comment #4 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 167184 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=167184&action=edit Bug 36509: Add Search ID tab to authorities search on staff interface This patch makes use of the existing local-number index on the 001 authority field so that authority records can be searched using the 001 ID. This patch works for both Elasticsearch and Zebra search engines. To test: 1. Spin up your ktd with elasticsearch `ktd --es7 up` 2. In the staff interface, open up Koha Administration and search for the SearchEngine system preference. It should be set to Elasticsearch. 3. In another tab, open the staff interface and go to Authorities. 4. Do a normal authorities search, confirm that when you expand the dropdown to order by 'none', the results appear to be in authority-ID ascending order. 5. Choose an ID and go to new the Search ID tab. Search for your ID, confirm it shows as expected. 6. Back in the Koha Administration tab, change the SearchEngine to Zebra. 7. In your Authorities tab, refresh the page. 8. Repeat step 5 and confirm that you can search for the authority by its ID again. Sponsored-by: Education Services Australia SCIS -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36509 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Failed QA --- Comment #5 from David Nind <david@davidnind.com> --- Thanks for fixing the patch so that it applies! I can't get this to work with Elasticsearch (both --es7 and --es8) (I also tried a reset mapping, and reindex). However, it does work in Zebra. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36509 Esther Melander <esther.melander@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |esther.melander@bywatersolu | |tions.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36509 Gretchen Maxeiner <maxeinergl@gcc.edu> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |maxeinergl@gcc.edu -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36509 Andreas Roussos <a.roussos@dataly.gr> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |a.roussos@dataly.gr -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org