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$identifierso that, when identifiers have colons in their names, they are converted to underscores when writing the temporary.metadatafiles instead of encoded nonsense. This makes the.metadatafilenames match with the$record_keyfilenames used later on, and prevent errors (trying to look upmy_record_identifier.metadatawhen the actual file ismy%3Arecord%3Aidentifier.metadata).Interested parties
@mjordan