-
Notifications
You must be signed in to change notification settings - Fork 0
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
Validate date strings when transforming MITAardvark records #124
Merged
Merged
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
d0648b7
gisogm transformations use MITAardvark transformer
ghukill cb9c1f6
Allow Aardvark download links if scalar value
ghukill 83f26c7
Validate Date.value strings for Aardvark transformations
ghukill 5d166e8
Additional unit test for MITAardvark date validation
ghukill aa84d19
MITAardvark get source link from source metadata
ghukill 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
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.
So,
OGMAardvark
was referenced here before being defined which we were expecting to need because of theget_source_link
method includinggismit
, are we thinking differently about that approach now?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.
Really glad you raised this up, for a couple of reasons.
First of all, looking more closely at the
get_source_link
which I had not thought to check, I believe that we can update that for MITAardvark transformations to use data fromdct_references_s
. In this way, it also helps explain why MIT and OGM records can share the same transformer.Every record that comes out of GeoHarvester is an "MIT" Aardvark record in the sense that, regardless of origin institution or metadata format, we have crafted the Aardvark file in a way that meets our TIMDEX needs. During that work in GeoHarvester, quite a bit of care is taken to craft the
dct_references_s
field which contains URLs.The value for
dct_refereces_s['http://schema.org/url']
is what the "source link" for the record should be. For MIT records this will behttps://geodata.libraries.mit.edu/record/<IDENTIFIER>
and for OGM records it will be an external URL that we extracted from the source metadata; gauranteed to be present or it does not get included in the harvester output.Taking all this together, will work on another commit that:
get_source_link
to actually read data from the recordbase_url
from thegismit
andgisogm
configurations, as it's not neededThere 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.
@ehanson8 - just pushed this commit and have re-requested review.