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

Séverine Queune <severine.que...@bulac.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #113018|0                           |1
        is obsolete|                            |

--- Comment #64 from Séverine Queune <severine.que...@bulac.fr> ---
Created attachment 113344
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113344&action=edit
Bug 19368 - Ignore words when sorting serial search

This adds the 'SerialSortIgnoreWords' system preference.
It is empty by default, since words to ignore are very much language-specific.

The functionality is achieved by adding a hidden column to the table, and
sorting by this column by default. The downfall of this solution is that if the
user sorts by another column, they cannot go back to this sorting without
refreshing the page.

To test:
0) Apply patch
1) Run updatedatabase.pl
2) Add test subscriptions if you have none.
    Make sure to have subscriptions starting with "The An A" or similar
3) Go to system preferences and edit the SerialSortIgnoreWords pref
    Add the words "The An A" or the ones you used in your subscriptions
4) Go to Serials
5) Search serials (empty field will return all serials)
6) Result table should be sorted ignoring leading "The An A..."

Followed test plan, patch works as described
Signed-off-by: Alex Buckley <alexbuck...@catalyst.net.nz>

Signed-off-by: Séverine QUEUNE <severine.que...@bulac.fr>

-- 
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/

Reply via email to