[Koha-bugs] [Bug 19482] Elasticsearch - prevent removal / editing of required indexes

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jan 10 15:50:14 CET 2020


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

--- Comment #37 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 97227
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=97227&action=edit
Bug 19482 - Add support for defining 'mandatory' mappings

To test:
1 - Apply patch
2 - ./installer/data/mysql/updatedatabase.pl
3 - Reset ES mapping: Administration->Search engine configuration , button at
bottom of page
4 - 'issues' and 'title' mapping under 'search fields' should be mandatory and
not editable
5 - On 'Bibliographic records' tab you should not be able to delete the single
entry for issues
6 - You should be able to delete 'title' mappings, however, at the final one
you should be stopped by javascript
7 - Bonus: force remove the last mapping from the page using developer tools -
attempt to save and should be warned of missing mandatory mapping

Signed-off-by: Nicolas Legrand <nicolas.legrand at bulac.fr>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list