DSPACE: Passing the authority via OAI -


i wonder if via oai authority of metadata can passed ?

metadata value have text_value , authority. can authority passed ?

many in advance

yes, can expose authority key via oai (that's assuming you're on xoai -- became standard in dspace 3). here example custom metadata format, org_theses, exposing text value (org_theses:name) , authority key (org_theses:id) dc.contributor.advisor entries:

<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='contributor']/doc:element[@name='advisor']/doc:element">   <org_theses:supervisor>     <org_theses:name>       <xsl:value-of select="doc:field[@name='value']" />     </org_theses:name>     <org_theses:id>       <xsl:value-of select="doc:field[@name='authority']" />     </org_theses:id>   </org_theses:supervisor> </xsl:for-each> 

place in appropriate file in [dspace]/config/crosswalks/oai/metadataformats.

the xsl files in metadataformats directory operate on xoai representation of item, can @ if have metadata format enabled in xoai.xml. in theory you'd there via eg http://demo.dspace.org/oai/request?verb=listrecords&metadataprefix=xoai looks dspace demo server doesn't have oai records available.


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -