feat(dwc): DwC Mapping and Archive Export frontend#7943
Open
foozleface wants to merge 1 commit intospecify:mainfrom
Open
feat(dwc): DwC Mapping and Archive Export frontend#7943foozleface wants to merge 1 commit intospecify:mainfrom
foozleface wants to merge 1 commit intospecify:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contributed by @foozleface
Adds the React frontend for the DwC export pipeline: a Schema Mapping tool for building and editing DwC mappings, and an Archive Export tool for generating and downloading DwC Archives. Both are accessible from the User Tools menu (admin-only).
Implementation
SchemaMapper/index.tsx):MappingEditor.tsx): assign DwC terms to query fields via searchable dropdown, auto-map button, duplicate term prevention, locked occurrenceID rowCloneMapping.tsx)TermDropdown.tsx) with grouped display (Occurrence, Event, Location, etc.) and IRI tooltips (TermTooltip.tsx)autoMap.ts) matches field names to DwC terms using the vocabularyVocabularyDialog.tsx) for browsing the full DwC term setExportPackages/index.tsx):PackageForm.tsx), with export name and filenameClonePackage.tsx)EmlEditor.tsx)CopyRssUrl.tsx)GbifValidator.tsx) for quick validation of downloaded archivesOverlayRoutes.tsx): two new overlay routes at/specify/overlay/schema-mapper/and/specify/overlay/export-packages/userToolDefinitions.ts): replaces the old "Make DwCA" and "Update Export Feed" entries with "DwC Mapping" and "DwC Archive Export"header.ts): new localization strings for all UI labelsuserInformation.isadminand show a permission-denied dialog for non-admin users__tests__/): tests for the auto-map algorithm, vocabulary parsing, and toolbar componentThis is part of the DwC export pipeline addressing issues #7709-#7748 (40 GitHub issues for Darwin Core Archive support).
Testing instructions