Bug 9968: Fix wrong index for Standard number in advanced and label search
authorKatrin Fischer <katrin.fischer.83@web.de>
Wed, 16 May 2018 01:05:07 +0000 (01:05 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 8 Nov 2018 15:17:20 +0000 (16:17 +0100)
commit78c9815c7d425836e5b7fbbc749cc0b59a898277
tree04ac738e16f8e4b06e8f538d7b036f02687351ce
parentfb53f07036145761497e332e23aa741ba5b7c1f1
Bug 9968: Fix wrong index for Standard number in advanced and label search

'Standard number' indicates that you can search ISBN, ISSN and other
standard numbers, but we are using the wrong index and only get a
very limited search for biblionumber instead.

This patch changes the index from sn to ident.

To test:
- Check both staff and OPAC advanced search:
  - Search for Standard number = ISBN
  - Search for Standard number = ISSN
  Both should work.
  Toggle [Intranet|OPAC]NumbersPreferPhrase system preferences
- Check the label creator
  - Add a new batch
  - Use 'add items' option and search for Standard number

Signed-off-by: Michal Denar <black23@gmail.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 09a7d37d53a87e35f2151e00200995ab3dfa3896)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit d341326362656853d0f8d371bd7d685b9c4266d7)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/includes/search_indexes.inc
koha-tmpl/intranet-tmpl/prog/en/modules/labels/search.tt
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt