OMP 3 and OAI attribute dc:relation

Dear,

I am trying to extend the OMP OAI plugin to export also the attribute dc:relation. The problem I have is I don’t know how to get the valid/latest file of the publication format. E.g. if you have updated/changed PDF files only the last is the one that is to be returned. I don’t know how to get it. The code should look something like:

$dc11Description->addStatement(‘dc:relation’, Request::url($press->getPath(), ‘catalog’, ‘view’, array($monograph->getId(), $publicationFormat->getBestId(), $file->getBestId())));

where $file->getBestId() doesn’t work and must be replaced. Any idea?

Regards, Primoz

@Dulip_Withanage are you familiar with the OMP OAI stuff? Can you point him to the code where this is runnig?

@primozs what precise version of OMP are you using?

Hi @primos,

Relations was a community request and we already implemented it for OMP 3.2 and master branch and it was integrated a couple of days back.

If you are interested in the technical details for OMP 3.2 and master branch, please have a look here.