MODELINKS-267: Extend Authority with saft* fields having custom mapping #342
+248
−29
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.
MODELINKS-267
Purpose
For ASA customer it is required to exclude subfields “i” and numeric subfields from the mapping for 5xx fields in Authority.
Example:
$w r $i Successor: $a Sri Lanka $4 http://rdaregistry.info/Elements/u/P60686 $0 (DLC)n 80061039 $0 http://id.loc.gov/authorities/names/n80061039 $1 http://id.loc.gov/rwo/agents/n80061039
should be transformed to Sri Lanka, not to Successor: Sri Lanka http://rdaregistry.info/Elements/u/P60686
Approach
Additional fields with “Trunc” postfix are created like "saftGenreTermTrunc", "saftGeographicNameTrunc", etc. for the truncated mapping. Original saft* fields are kept without any changes.
Changes Checklist
Related Issues
List any Jira issues related to this pull request.
Learning and Resources (if applicable)
Discuss any research conducted during the development of this pull request. Include links to relevant blog posts, patterns, libraries, or addons that were used to solve the problem.
Screenshots (if applicable)
If this pull request involves any visual changes or new features, consider including screenshots or GIFs to illustrate the changes.