Brandon Weigel
Brandon Weigel
Hmm. > Commencing MIK. > Filtering 68 records through the OaiMissingFileSet fetcher manipulator. > > Fatal error: Uncaught exception 'mik\exceptions\MikErrorException' in /Users/Brandon/mik/mik:105 > Stack trace: > #0 /Users/Brandon/mik/src/fetchermanipulators/OaiMissingFileSet.php(131): {closure}(8, 'Undefined...
No files at all. But I do have a bunch of .metadata files in the temp directory. Couple of errors in mik.log: > [2018-05-03 12:51:23] ErrorException.ERROR: ErrorException {"message":"Undefined index: datastream_ids","code":{"settings":{"CONFIG":{"config_id":"oai-test","last_updated_on":"2017-02-21","last_update_by":"bw"},"SYSTEM":{"date_default_timezone":"America/Vancouver","verify_ca":"0"},"FETCHER":{"class":"Oaipmh","oai_endpoint":"https://nwcc.arcabc.ca/oai2","set_spec":"nwcc_freda2","metadata_prefix":"oai_dc","temp_directory":"/tmp/oaitest_temp"},"METADATA_PARSER":{"class":"dc\\OaiToDc"},"FILE_GETTER":{"class":"OaipmhIslandoraObj","temp_directory":"/tmp/oaitest_temp"},"WRITER":{"class":"Oaipmh","output_directory":"/tmp/oaitest_output","postwritehooks":["/usr/bin/php...
And I can't even pull it out of the `xlink:href` attribute in the `FLocat` element... So it turns out that XPath really doesn't like it if some of your elements...
``` [2019-07-02 18:47:56] ErrorException.ERROR: ErrorException {"message":"DOMXPath::query(): Undefined namespace prefix","code":{"record_key":"oai%3Amruir.mtroyal.ca%3A11205%2F98","raw_metadata_path":"/Volumes/Arca/tmp/oaitest_temp/oai%3Amruir.mtroyal.ca%3A11205%2F98.metadata","dom":"[object] (DOMDocument: {})","xml":"\n \n oai:mruir.mtroyal.ca:11205/98\n 2015-06-08T16:02:09Z\n com_11205_20\n com_11205_12\n col_11205_43\n \n \n\n\nauthor\n\nHayman, Richard\n\n\n2014-02-13T20:44:02Z\n\n\n\n\n\n2009\n\nHayman, R. (2009). Human rights software: Information support solutions for social...
@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...
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".
@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...
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.
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 `11205/98/1` is the handle, but the filename is not really predictable.