[Bug 13054] New: Allow server-side sorting by title to ignore custom sets of articles to ignore
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13054 Bug ID: 13054 Summary: Allow server-side sorting by title to ignore custom sets of articles to ignore Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Staff Client Assignee: koha-bugs@lists.koha-community.org Reporter: oleonard@myacpl.org QA Contact: testopia@bugs.koha-community.org CC: gmcharlt@gmail.com When sorting clent-side DataTables-enhanced tables by title, it's possible to use a custom sorting algorithm to ignore articles, based on this configuration in datatables-strings.inc: var CONFIG_EXCLUDE_ARTICLES_FROM_SORT = _("a an the"); ...and the "anti-the" sorting code in js/datatables.js. This doesn't work with server-side DataTables implementations, which means that sorting by title on the circulation and patron detail pages no longer works as well as it did before those pages were redone with AJAX datatables. I would like to see some kind of implementation which continued to enable the user to define articles to exclude from sorting and would work at the database level so that AJAX datatables could be correctly sorted. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13054 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Allow server-side sorting |Allow server-side sorting |by title to ignore custom |by title to ignore custom |sets of articles to ignore |sets of articles -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13054 --- Comment #1 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 32093 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=32093&action=edit Bug 13054: Added sort 'anti-the' to title -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13054 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |martin.renvoize@ptfs-europe | |.com --- Comment #2 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- A tad confused... I just added the 'anti-the' to checkouts.js and found it appeared to be working for me.. See patch for the super tiny change.. Maybe i'm not looking in the right place though. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13054 --- Comment #3 from Owen Leonard <oleonard@myacpl.org> --- (In reply to Martin Renvoize from comment #2)
I just added the 'anti-the' to checkouts.js and found it appeared to be working for me..
Yes, that works for me too. However, if I try to add something similar to manage-marc-imports.tt it doesn't work (Line 38): - { "mDataProp": "citation" }, + { "mDataProp": "citation", "sType": "anti-the" }, -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org