[Koha-bugs] [Bug 24720] Remove special characters from beginning of search fields

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Feb 25 10:35:14 CET 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24720

--- Comment #1 from David Gustafsson <glasklas at gmail.com> ---
Created attachment 99556
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=99556&action=edit
Bug 24720: Strip special chars from search fields

Strip all non alphanumerical characters from beginning
of search 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.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list