Support for Schema 4.5 #166
Merged
codycooperross merged 17 commits intomasterfrom Dec 4, 2023
Merged
Conversation
…ties for Schema 4.5
…affiliationIdentifier and nameIdentifier
4 tasks
…sCite; adjust publisher reads for bibtex and the Metadata model
Contributor
Author
|
FYI, I tested this branch of bolognese in the current main branch of lupo (prior to the 4.5 feature branch merge). All rspec tests passed, so bolognese should still be deployable in lupo if this branch is merged without any changes to lupo. |
4 tasks
ashwinisukale
requested changes
Nov 24, 2023
Contributor
ashwinisukale
left a comment
There was a problem hiding this comment.
Hi there :)
Changes looks good to me 🎉 , I have suggested some minor refactoring changes.
Thank you
ashwinisukale
approved these changes
Nov 30, 2023
Contributor
ashwinisukale
left a comment
There was a problem hiding this comment.
Changes looks great to me. Thank you for the work!
svogt0511
approved these changes
Dec 4, 2023
Contributor
svogt0511
left a comment
There was a problem hiding this comment.
Added a comment to the last change @codycooperross made to the dc_json writer. Good catch, Cody.
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.
Purpose
Implements the new Schema 4.5 features and XSD, in particular the expansion of the
publisherproperty to allow for additional attributes.closes: datacite/lupo#1004 #165
Approach
Modifies readers and writers to support both
publisheras a hash with new attributes (publisherIdentifier,publisherIdentifierScheme, etc.) andpublisheras a string. Adds tests for reading and writing these attributes.This PR also fixes an issue described in #165 that resulted in errors when validating the new
datacite-example-full-v4.5.xmlexample, which contains a geoLocationPolygon property.Open Questions and Pre-Merge TODOs
publisherproperties beyond DataCite XML. Mapping from and to other schemas will be part of future work.crossref_writer.rbis currently unmodified. Based on this test, it seems like writing Crossref metadata is expected to produce anilvalue:bolognese/spec/writers/crossref_writer_spec.rb
Lines 15 to 21 in 7b3e8cd
Learning
Types of changes
Bug fix (non-breaking change which fixes an issue)
New feature (non-breaking change which adds functionality)
Breaking change (fix or feature that would cause existing functionality to change)
Reviewer, please remember our guidelines: