Bug 18316: Ability to weight search fields
authorAlex Arnaud <alex.arnaud@gmail.com>
Thu, 29 Mar 2018 14:20:59 +0000 (14:20 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Wed, 7 Nov 2018 22:00:29 +0000 (22:00 +0000)
commit5f0bc6e457f19b889d5f12ee92d6ca5e5effdf42
tree6f77fe9eab8a6e5617823d552890244e9e774c29
parent5755f30b1b472b5fbf1d8e8fd031efdcd1ed0518
Bug 18316: Ability to weight search fields

Weight can be defined between 1 and 99.
only search fields mapped with biblios can be weighted

Test plan:
  - apply this patch,
  - update schema file (perl misc/devel/update_dbix_class_files.pl),
  - go to Administration > Search engine configuration,
  - in search fields tab, define weights for some fields and save,
  - check weights has been saved,
  - reset some weights (empty) and save,
  - check weights has been reset

Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr>
Rebased-by: Alex Arnaud <alex.arnaud@biblibre.com>
Signed-off-by: Ere Maijala <ere.maijala@helsinki.fi>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Koha/SearchField.pm
admin/searchengine/elasticsearch/mappings.pl
installer/data/mysql/atomicupdate/bug_18316_add-weight-column.perl [new file with mode: 0644]
installer/data/mysql/kohastructure.sql
koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/elasticsearch/mappings.tt
t/db_dependent/Koha/SearchField.t [new file with mode: 0644]