Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MODSOURMAN-1203 Add additional validation before marc bib record saving #638

Merged
merged 23 commits into from
Aug 29, 2024

Conversation

dmytrokrutii
Copy link
Contributor

@dmytrokrutii dmytrokrutii commented Aug 8, 2024

Purpose

Add validation on MARC_BIB record save

Approach

Validate that record has externalInstanceId, externalHrId, and 001 field in parsed record content.

TODOS and Open Questions

  • Use GitHub checklists. When solved, check the box and explain the answer.
  • Check logging.

Learning

MODSOURMAN-1203

import static org.folio.services.util.AdditionalFieldsUtil.TAG_999;
import static org.folio.services.util.AdditionalFieldsUtil.addFieldToMarcRecord;
import static org.folio.services.util.AdditionalFieldsUtil.getFieldFromMarcRecord;
import static org.folio.services.util.AdditionalFieldsUtil.*;
Copy link
Contributor

Choose a reason for hiding this comment

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

@dmytrokrutii, please, return single class import.

Copy link
Contributor

@Aliaksandr-Fedasiuk Aliaksandr-Fedasiuk left a comment

Choose a reason for hiding this comment

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

Please fix SonarCube warnings.

Copy link

sonarcloud bot commented Aug 29, 2024

@KaterynaSenchenko KaterynaSenchenko merged commit a95c3a1 into master Aug 29, 2024
6 checks passed
@dmytrokrutii dmytrokrutii deleted the MODSOURMAN-1203 branch August 29, 2024 14:00
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