MarcusBarnes / mik

The Move to Islandora Kit is an extensible PHP command-line tool for converting source content and metadata into packages suitable for importing into Islandora (or other digital repository and preservations systems).
GNU General Public License v3.0
34 stars 11 forks source link

Work on #257. #369

Closed mjordan closed 7 years ago

mjordan commented 7 years ago

Github issue: (#257)

What does this Pull Request do?

Adds an option to the OAI-PMH writer to harvest OAI metadata only, skipping the payload files.

What's new?

For OAI-PMH toolchains, there is a new config option:

[WRITER]
metadata_only = true

If set to true, the writer skips downloading any other files such as PDFs, images, etc.

How should this be tested?

  1. check out the issue-257 branch.
  2. using the attached config file, run MIK. It should produce about 20 JPEG+XML ingest packages.
  3. delete your output and temp directories.
  4. in the config file, uncomment the metadata_only = true option
  5. return mik
  6. the output directory should now contain only XML files.

Additional Notes

We will need to update the documentation for the OAI-PMH toolchains.

Interested parties

@bondjimbond can you test?

issue-257.ini.txt

MarcusBarnes commented 7 years ago

Thank you @mjordan. I've tested and this works as expected. @bondjimbond Would you like to test and or review before I go ahead and merge? Thank you.

bondjimbond commented 7 years ago

Works for me.