I am in the process of trying to add a standardized rights statement to our elements in Omeka Classic, with the intention of making it available in our OAI feed. We are using the OAI-PMH Repository plugin.
In the elements table, I created the new element. It will display on the Omeka site fine. However, when I pull our OAI feed it is missing.
Somewhat related, I was able to create an extra line in our OAI feed for the item cover thumbnail by adding the following code in …/OaiPmhRepository/Metadata/OaiDc.php.
if(get_option('oaipmh_repository_expose_files'))
{
$files = $item->getFiles();
foreach($files as $file)
{
if ($file->mime_type == 'image/jpeg')
{
$oai_dc->appendNewElement('dc:identifier', $file->getWebPath('thumbnail'));
break;
}
}
}
I assume that I could somehow do the same with the standardized rights statement that we added, but I don’t know how to reference it in the OaiDc.php file. It looks like it is pulling the Dublin Core elements from another source.
Any help or hints would be greatly appreciated.
Cheers.
CM