https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22994 --- Comment #7 from David Nind <david@davidnind.com> --- Created attachment 197763 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=197763&action=edit Bug 22994: Add import mappings button to mappings page This patch adds an 'Import mappings' button to the Elasticsearch mappings configuration page. Clicking it opens a modal where the user can select a YAML or JSON mappings file (as exported by the export button). The file is sent via PUT /api/v1/config/search_mappings and the page reloads to reflect the new state. To test: 1. Apply this patch (and the previous API patches) 2. Navigate to Administration > Search engine configuration => SUCCESS: An 'Import mappings' button appears next to 'Export mappings' 3. Click 'Export mappings' to get a baseline file 4. Edit the downloaded search_mappings.yaml (e.g. change a label) 5. Click 'Import mappings', select the modified file, click Import => SUCCESS: Page reloads with the updated mappings 6. Verify the change is reflected in the UI => SUCCESS: Modified label is visible 7. Sign off :-D Signed-off-by: David Nind <david@davidnind.com> -- You are receiving this mail because: You are watching all bug changes.