]> git.koha-community.org Git - koha.git/commit
Bug 9747: Fix NSB/NSE sorting issues on z3950 search results
authorJonathan Druart <jonathan.druart@biblibre.com>
Tue, 5 Mar 2013 12:52:20 +0000 (13:52 +0100)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 9 Oct 2013 04:21:03 +0000 (04:21 +0000)
commit22bbefba640f5a117e14070f3f29f83c939274fc
treec02a91909e184a56d3b32cd8f2652b8eefd2fda9
parent70f322bd86e9d2b070848de8543f9d6582ec4d02
Bug 9747: Fix NSB/NSE sorting issues on z3950 search results

At least the BNF server returns results containing non-sorting
characters (NSB/NSE).
In order to sort results according these characters, this patch adds a
new Datatable function.

Test plan:
- search 'tintin' on the z3950 search (cataloguing/z3950_search.pl)
- sort on title (default sort) and check that results are not well
  sorted.
- apply this patch
- do the same search and check that the first result is "HergĂ©. Les
  Aventures de Tintin..."
  The value of the cell is:
      <td>\88HergĂ©. Les \89Aventures de Tintin...</td>

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Works as advertised and doesn't break existing searching

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/intranet-tmpl/prog/en/js/datatables.js
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tt