-
Notifications
You must be signed in to change notification settings - Fork 1
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
Update NIHMS metadata, Adding Grant and Funder to bulk_meta.xml #79
Merged
Merged
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
b3c6343
Add Grant class
tsande16 72d15a9
Update DepositSubmissionMapper
tsande16 21b7584
Add createGrant
tsande16 d67069c
Add writing grants to write_metadata
tsande16 6b6573f
Update testSerializedMetaDataGrants
tsande16 a90e231
Add funder and grant to testPackageMetadata()
tsande16 a3e4080
Remove convert doc to string
tsande16 ab148a3
Add new grants to sample1.json
tsande16 c02a9a0
Add assertions
tsande16 7771af8
Update DepositSubmissionModelBuilderIT
tsande16 23ffc13
Update commonContributorsAndFewAuthors()
tsande16 d571614
Refactor write_metadata
tsande16 f0d6471
Refactor testPackageMetadata()
tsande16 9123db4
Fix grantElement
tsande16 b1e2591
Cleanup
tsande16 40dbdee
Add funder-mapping to repositories.json and RepositoryDepositConfig
tsande16 cbcc853
Cleanup
tsande16 85fcb7d
Add funder-mapping to repositories.json
tsande16 1ad3b52
Add localKey to metadata model
tsande16 39874de
Add getRepositoryConfig to Packager
tsande16 a70b638
Remove getRepositoryConfig to Packager
tsande16 3a0c45f
Move funder mapping to the assembler options
tsande16 bc1b17d
Add check for funderKey in NihmsMetadataSerializer
tsande16 6cb893d
Cleanup
tsande16 5be99d0
Add package option and funderMapping check
tsande16 6d18160
Update test data and IT setup
tsande16 9b63b14
Fix funderKey
tsande16 8000aa2
Fix NihmsAssemblerIT
tsande16 68a08ba
Cleanup
tsande16 1d05b45
Cleanup
tsande16 adc236c
Update NihmsMetadataSerializer constructor
tsande16 6d28894
Cleanup
tsande16 1d79d1d
Update packageOptions in NihmsThreadedAssemblyIT
tsande16 9152306
Cleanup
tsande16 c5da2e4
Remove funder-mapping from respositories.json
tsande16 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method is already very long. It would be good to pull this new code out into a new method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree
write_metadata
is rather long. I added the grants here because it fit with the rest. I didn't want to touch what was already written, but perhaps I could create a method for each component of the XML file:manuscript
,article
,journal
etc? Something along the lines of:There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought about creating a method just for the grants, but it would seem awkward for only that component to have it's own method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, your suggestion would be good clean up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.