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

Alma marc21 xml to lobid json #1094

Merged
merged 24 commits into from
Dec 15, 2020
Merged

Alma marc21 xml to lobid json #1094

merged 24 commits into from
Dec 15, 2020

Conversation

dr0i
Copy link
Member

@dr0i dr0i commented Dec 14, 2020

Initial transformation of Alma Marc21 XML to lobid JSON-LD.

See #1089.

fsteeg and others added 24 commits November 24, 2020 10:21
- add dependency to have access to XmlRootElement
- format a bit
- update metamorph.xsd
- allow date to be parsed as 4 digit or 8 digit
- validate Alma data
- move "schemas" into "resources"
- remove some more test data
- remove encoding for ByteArrayOutputStream to avoid error when running
  mvn via console
- make id string
- add gndIdentifier
- fix role label
This makes it more overt for the normal user when postprocessing
the output, e.g. using "grep", because now you get what you see.
@dr0i dr0i requested a review from fsteeg December 14, 2020 09:54
@dr0i dr0i assigned dr0i and fsteeg and unassigned dr0i Dec 14, 2020
Copy link
Member

@fsteeg fsteeg left a comment

Choose a reason for hiding this comment

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

Looks good on the code level as far as I can tell. Just three things I noticed:

  • Formatting in the Morph files is often inconsistent, perhaps some automatic formatting and/or checks might be useful here?
  • I'm surprised to see metamorph.xsd as part of the repo and the diff, but I think you talked about that in a recent standup?
  • If I understand correctly, the JSON validation via script is not part of the build? But we'll get that anyway with Move and integrate JsonValidator metafacture/metafacture-core#347

@fsteeg fsteeg assigned dr0i and unassigned fsteeg Dec 14, 2020
@dr0i
Copy link
Member Author

dr0i commented Dec 15, 2020

Re formatting: this pops #1021 up
Re metamorph.xsd : opened the issue #1097
Re JSON validation: right

@dr0i dr0i merged commit 12209c3 into master Dec 15, 2020
@dr0i dr0i deleted the almaMarc21XmlToLobidJson branch December 15, 2020 08:49
@dr0i
Copy link
Member Author

dr0i commented Dec 15, 2020

Closed.

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.

2 participants