URL in OAI record
|Reported by:||kjdon||Owned by:||kjdon|
|Priority:||very high||Milestone:||2.84 Release|
Some OAI harvesters require a URL to the document in oai_dc.identifier field. Currently in Greenstone's oaiserver we just output the document id.
We need to make it possible to output a URL. I think this will need to be done in oaiserver source code.
mapping srclink to oai_dc.identifier doesn't work as the link looks like <a href="_httpcollection_/...[collection]...> Don't want the <a> tag here. Also, oaiserver code doesn't do anything with macros or .. metadata format elements. Mappign URL doesn't work either - for the item I looked at it was a file link to something in tmp directory.
It could generate something on the fly using [Source] metadata perhaps. If no Source, or if source doc not saved (eg for html, txt), then there could be a link to the greenstone version using the doc id: ...library.cgi?a=d&c=xx&d=id (would this be a valid link for oai???)