-
Notifications
You must be signed in to change notification settings - Fork 10
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
Better oai #509
Better oai #509
Conversation
@bondjimbond this works. Files in my temp directory are no longer encoded: I'm getting an error which I think is unrelated:
I'm willing to merge this as is. |
Found problem I saw when I tested this PR. Do you have any fetcher manipulators in your .ini file? I didn't, so https://github.com/MarcusBarnes/mik/blob/master/src/fetchers/Oaipmh.php#L95 failed because https://github.com/MarcusBarnes/mik/blob/master/src/fetchers/Oaipmh.php#L53 sets the default to If you didn't have any fetchermanipulators registered in your .ini file and it worked, there's something strange going on. |
No manipulators.
|
Oh, I did comment out the |
@mjordan @MarcusBarnes Any further tests of this? |
@mjordan @MarcusBarnes Just a reminder about this PR. I have been using it successfully to process records from VPL. Any issues with it? |
I haven't looked at it since, but have we figured out what I was experiencing in #509 (comment) ? |
@mjordan Sorry, I missed the meat of your comment:
That's the If so, I do have them defined; will check to see if changing default to Will report back in a bit. |
Any reason still not to merge this? |
As @bondjimbond addressed the concern in #509 (comment) in the last commit, I'll merge now. |
Github issue: (#508 )
What does this Pull Request do?
In OAI-PMH fetcher, replaces
:
with_
in the$identifier
so that, when identifiers have colons in their names, they are converted to underscores when writing the temporary.metadata
files instead of encoded nonsense. This makes the.metadata
filenames match with the$record_key
filenames used later on, and prevent errors (trying to look upmy_record_identifier.metadata
when the actual file ismy%3Arecord%3Aidentifier.metadata
).Interested parties
@mjordan