-
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
OAI-PMH Filegetter only works for DC #505
Comments
@bondjimbond there is https://github.com/MarcusBarnes/mik/blob/master/src/metadataparsers/mods/OaiToMods.php. If you use
in conjunction with
(or whatever the correct metadataPrefix value is) what happens? |
And if I leave the METADATA_PARSER section at
|
@mjordan Really this is about the FileGetter and not the MetadataParser, isn't it? The problem is that I use an XPath to find the link to download, but XPath can't recognize it because the FileGetter defines a Dublin Core namespace and not a MODS namespace. |
I added a new filegetter to #504 to address this. No longer saying "undefined namespace prefix" -- now it's just saying "No content file found in oai-pmh record". |
@bondjimbond Since you're requesting MODS over OAI, is it safe to assume that you're source repository is Islandora? If so, then yes, I think we should just be grabbing the MODS datastream as a file and not get tangled up in metadata parsers. In that case, we can just fetch the MODS datastream using the (working?) DC metadata parser and then throw away the resulting DC XML files. I was sure that we already had the ability to fetch any datastream we wanted using the https://github.com/MarcusBarnes/mik/wiki/Toolchain:-OAI-PMH-for-Islandora-repositories toolchain, but I need to confirm that. If not, it won't be difficult to make that happen. |
@mjordan Nope, it's actually a DSpace repository. They've got decent MODS, though, so it's nice to be able to pull that down and tweak it instead of extracting DC and then trying to reverse engineer roleTerms etc. |
Does DSpace's MODS have a predictable URL where you can download it (as per my last comment) or do you need to get it via OAI as metadata? |
You need to get it via OAI, unfortunately. The filename is made of some mix of parts of the title and some seemingly arbitrary numbers. |
Can you send me the OAI endpoint via email? |
The .ini file (which includes the endpoint) is attached to #502 |
Also, here's an example file link: http://mruir.mtroyal.ca/xmlui/bitstream/11205/98/1/Human+Rights+Software.pdf I think the |
I want to extract objects from a repository using the MODS metadataPrefix, but I'm finding that I can't get the files.
It turns out that
src/filegetters/OaipmhXpath.php
only works when the metadataPrefix is DC:We need to either make this file work for multiple metadataPrefix choices, or have a separate fileGetter for MODS.
The text was updated successfully, but these errors were encountered: