How to use OAI-PMH plugin filter

I would like to add item url, file url, and thumbnail url to the RDF metadata exposed via the OAI-PMH repository plugin. Can anyone give a PHP novice an example of how the oai_pmh_repository_metadata_formats filter might be used for this?

That filter lets you add, remove, or change formats. So, you’d do something like make a copy of the current RDF format class and make the change you want to make in your copy (in your plugin). Then, use the metadata foramts filter to either add it as a new format (by appending to the array with a new key), or just edit the existing key ['rdf']['class'] to change the class used for the RDF output to your changed copy.

This topic was automatically closed after 250 days. New replies are no longer allowed.