Skip to content

Conversation

@pkjacob
Copy link
Contributor

@pkjacob pkjacob commented Jan 2, 2026

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the mapping configuration for MARC field 019 (OCLC Control Number) to use the NAME property instead of LOCAL_ID_VALUE, aligning it with other identifier field mappings and simplifying the configuration by using shared rules.

Key changes:

  • Updated field 019 configuration to use shared identifier rules (similar to field 010)
  • Replaced LOCAL_ID_VALUE property with NAME property across all affected files
  • Updated test assertions to validate the new property mapping

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/main/resources/marc4ld.yml Simplified field 019 mapping to use shared rules (current_instance_identifier and cancelled_instance_identifier) instead of verbose inline configuration; updated linking_entries_mappings to use NAME property for ID_LOCAL
src/main/resources/label.yml Updated ID_LOCAL label rule to use NAME property instead of LOCAL_ID_VALUE
src/test/java/org/folio/marc4ld/test/helper/LinkingEntriesTestHelper.java Updated test helper to validate "http://bibfra.me/vocab/lite/name" URL (consistent with other identifier types)
src/test/java/org/folio/marc4ld/mapper/test/MonographTestUtil.java Removed LOCAL_ID_VALUE import and updated local identifier test data to use NAME property
src/test/java/org/folio/marc4ld/mapper/MarcBib2LdMapperIT.java Removed LOCAL_ID_VALUE import and updated validation method to check NAME property instead
src/main/java/org/folio/marc4ld/service/marc2ld/authority/control/AuthorityIdentifierProcessorImpl.java Added trailing newline (code style fix)
NEWS.md Added changelog entry for the mapping update

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

NEWS.md Outdated
- Ensure only one MARC 100/110/111/130 is present in the derived MARC, converting any additional 1XX fields to 7XX [MODLD-934](https://folio-org.atlassian.net/browse/MODLD-934)
- Create MARC 600 when subject is a HUB [MODLD-538](https://folio-org.atlassian.net/browse/MODLD-538)
- Handle invalid place codes in MARC 26X [MODLD-949](https://folio-org.atlassian.net/browse/MODLD-949)
- Update the mapping of 019 to use NAME property instead of LOCAL_ID_VALUE property.
Copy link

Copilot AI Jan 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The NEWS.md entry is missing the JIRA ticket reference in the expected format. Based on the PR title "MODLD-939: Update the mapping of 019", this line should include the JIRA link like the other entries. It should be formatted as: "Update the mapping of 019 to use NAME property instead of LOCAL_ID_VALUE property MODLD-939"

Copilot uses AI. Check for mistakes.
Copy link
Contributor

@zepheiryan zepheiryan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot's NEWS.md review is relevant

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 5, 2026

@pkjacob pkjacob merged commit b7e68da into master Jan 5, 2026
3 checks passed
@pkjacob pkjacob deleted the pjacob/MODLD-939 branch January 5, 2026 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants