https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24720
David Gustafsson <glask...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #171988|0 |1 is obsolete| | --- Comment #23 from David Gustafsson <glask...@gmail.com> --- Created attachment 177567 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=177567&action=edit Bug 24720: Strip special chars from sort fields Strip all non alphanumerical characters from beginning of sort field values so that sorting is performed on the first alphanumeric character and not special characters like "-" or "[". To test: 1. Prepend "[" to the title of a biblio and save 2. Perform a search that matches this biblio and at least one more biblio. 3. Sort alphabetically a-z. 4. The biblio with "[" should appear first 5. Apply the patch 6. Perform a full reindexing 7. Perform steps 2-3 again 8. The result should now be alphabetically sorted, ignoring the initial bracket in the title. 9. Run tests in t/db_dependent/Koha/SearchEngine/Elasticsearch.t Signed-off-by: Shi Yao Wang <shi-yao.w...@inlibro.com> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list Koha-bugs@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/