https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22994
--- Comment #4 from Tomás Cohen Arazi (tcohen) <[email protected]> --- Created attachment 196023 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196023&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 -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
