Yes, I did it after any modifications in .xsl file.
I've attached my oai_dc.xsl file.
On Fri, Nov 18, 2016 at 2:41 PM, helix84 <[email protected]> wrote:
> Did you clean the cache of responses after you modified your .xsl file?
>
> [dspace]/bin/dspace oai clean-cache
>
>
> Regards,
> ~~helix84
>
> Compulsory reading: DSpace Mailing List Etiquette
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
>
> On Wed, Nov 16, 2016 at 5:59 PM, Abdulsalam Yousef <[email protected]>
> wrote:
> > Sorry i forgot to say that i added t in (oai_dc) schema, I need it in
> this
> > Schema
> >
> > On Wed, Nov 16, 2016 at 7:57 PM, Friesen, Darryl <
> [email protected]>
> > wrote:
> >>
> >> I think it’s working. If I request that record in XOAI format from your
> >> server, I do see the CatFormatAName field:
> >>
> >>
> >>
> >>
> >> http://kfnl.maktabat-online.com:8080/oai/request?verb=
> GetRecord&metadataPrefix=xoai&identifier=oai:localhost:123456789/14219
> >>
> >>
> >>
> >> I don’t see it in the other formats – DC, QDC etc. – but it is there for
> >> XOAI
> >>
> >>
> >>
> >>
> >>
> >> - Darryl
> >>
> >>
> >>
> >>
> >>
> >> ----------------------------------------------------------------------
> >>
> >> Darryl Friesen, B.Sc., Programmer/Analyst [email protected]
> >>
> >> Library Systems & Information Technology, http://library.usask.ca/
> >>
> >> University of Saskatchewan Library
> >>
> >> ----------------------------------------------------------------------
> >>
> >> "Go not to the Elves for counsel, for they will say both no and yes"
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >> From: [email protected]
> >> [mailto:[email protected]] On Behalf Of Abdulsalam
> Yousef
> >> Sent: Wednesday, November 16, 2016 10:34 AM
> >> To: Ivan Masár <[email protected]>
> >> Cc: DSpace Community <[email protected]>
> >> Subject: Re: [dspace-community] OAI
> >>
> >>
> >>
> >> Hello Ivan,
> >>
> >>
> >>
> >> Please have a look at our repository link here
> >>
> >> http://kfnl.maktabat-online.com:8080/handle/123456789/14219?show=full
> >>
> >> You can see a large number of custom qualifiers, I've added this snippet
> >> of xml script
> >>
> >> <xsl:for-each
> >> select="doc:metadata/doc:element[@name='dc']/doc:
> element[@name='type']/doc:element/doc:element/doc:field[
> @name='CatFormatAName']">
> >> <dc:CatFormatAName><xsl:value-of select="." /></dc:CatFormatAName>
> >> </xsl:for-each>
> >>
> >> to show the field (CatFormatAName) in the OAI output
> >>
> >>
> >>
> >> but i couldn't show it, If you have an idea about the reason please tell
> >> me.
> >>
> >> Thanks in advance.
> >>
> >>
> >>
> >> On Mon, Nov 14, 2016 at 12:26 PM, Abdulsalam Yousef <
> [email protected]>
> >> wrote:
> >>
> >> Thanks a lot dear Ivan, I'll try it, Then I'll inform you with the
> >> results.
> >>
> >>
> >>
> >> On Mon, Nov 14, 2016 at 11:45 AM, helix84 <[email protected]> wrote:
> >>
> >> As the first paragraph there mentions, you can see *all* the available
> >> metadata fields ("variables") in the "xoai" format. Example:
> >>
> >>
> >> http://demo.dspace.org/oai/request?verb=GetRecord&metadataPrefix=xoai&
> identifier=oai:demo.dspace.org:10673/7
> >>
> >> From there, you can transform it into any other format via XSLT:
> >>
> >>
> >> https://github.com/DSpace/DSpace/blob/master/dspace/
> config/crosswalks/oai/metadataFormats/ore.xsl
> >>
> >> Example result:
> >>
> >>
> >> http://demo.dspace.org/oai/request?verb=GetRecord&
> metadataPrefix=ore&identifier=oai:demo.dspace.org:10673/7
> >>
> >> P.S. In the future please post only to one of the mailing lists, not
> >> both. Thanks.
> >>
> >>
> >>
> >> Regards,
> >> ~~helix84
> >>
> >> Compulsory reading: DSpace Mailing List Etiquette
> >> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
> >>
> >>
> >>
> >>
> >>
> >> --
> >> You received this message because you are subscribed to the Google
> Groups
> >> "DSpace Community" group.
> >> To unsubscribe from this group and stop receiving emails from it, send
> an
> >> email to [email protected].
> >> To post to this group, send email to [email protected].
> >> Visit this group at https://groups.google.com/group/dspace-community.
> >> For more options, visit https://groups.google.com/d/optout.
> >>
> >> --
> >> You received this message because you are subscribed to the Google
> Groups
> >> "DSpace Community" group.
> >> To unsubscribe from this group and stop receiving emails from it, send
> an
> >> email to [email protected].
> >> To post to this group, send email to [email protected].
> >> Visit this group at https://groups.google.com/group/dspace-community.
> >> For more options, visit https://groups.google.com/d/optout.
> >
> >
>
--
You received this message because you are subscribed to the Google Groups
"DSpace Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-community.
For more options, visit https://groups.google.com/d/optout.
<?xml version="1.0" encoding="UTF-8" ?>
<!--
The contents of this file are subject to the license and copyright
detailed in the LICENSE and NOTICE files at the root of the source
tree and available online at
http://www.dspace.org/license/
Developed by DSpace @ Lyncode <[email protected]>
> http://www.openarchives.org/OAI/2.0/oai_dc.xsd
-->
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:doc="http://www.lyncode.com/xoai"
version="1.0">
<xsl:output omit-xml-declaration="yes" method="xml" indent="yes" />
<xsl:template match="/">
<oai_dc:dc xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
<!-- dc.title -->
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='title']/doc:element/doc:field[@name='value']">
<dc:title><xsl:value-of select="." /></dc:title>
</xsl:for-each>
<!-- dc.title.* -->
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='title']/doc:element/doc:element/doc:field[@name='value']">
<dc:title><xsl:value-of select="." /></dc:title>
</xsl:for-each>
<!-- dc.creator -->
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='creator']/doc:element/doc:field[@name='value']">
<dc:creator><xsl:value-of select="." /></dc:creator>
</xsl:for-each>
<!-- dc.contributor.author -->
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='contributor']/doc:element[@name='author']/doc:element/doc:field[@name='value']">
<dc:creator><xsl:value-of select="." /></dc:creator>
</xsl:for-each>
<!-- dc.contributor.* (!author) -->
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='contributor']/doc:element[@name!='author']/doc:element/doc:field[@name='value']">
<dc:contributor><xsl:value-of select="." /></dc:contributor>
</xsl:for-each>
<!-- dc.contributor -->
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='contributor']/doc:element/doc:field[@name='value']">
<dc:contributor><xsl:value-of select="." /></dc:contributor>
</xsl:for-each>
<!-- dc.subject -->
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='subject']/doc:element/doc:field[@name='value']">
<dc:subject><xsl:value-of select="." /></dc:subject>
</xsl:for-each>
<!-- dc.subject.* -->
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='subject']/doc:element/doc:element/doc:field[@name='value']">
<dc:subject><xsl:value-of select="." /></dc:subject>
</xsl:for-each>
<!-- dc.description -->
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='description']/doc:element/doc:field[@name='value']">
<dc:description><xsl:value-of select="." /></dc:description>
</xsl:for-each>
<!-- dc.description.* (not provenance)-->
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='description']/doc:element[@name!='provenance']/doc:element/doc:field[@name='value']">
<dc:description><xsl:value-of select="." /></dc:description>
</xsl:for-each>
<!-- dc.date -->
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='date']/doc:element/doc:field[@name='value']">
<dc:date><xsl:value-of select="." /></dc:date>
</xsl:for-each>
<!-- dc.date.* -->
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='date']/doc:element/doc:element/doc:field[@name='value']">
<dc:date><xsl:value-of select="." /></dc:date>
</xsl:for-each>
<!-- dc.type
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='type']/doc:element/doc:field[@name='value']">
<dc:type><xsl:value-of select="." /></dc:type>
</xsl:for-each>-->
<!-- dc.type.*
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='type']/doc:element/doc:element/doc:field[@name='value']">
<dc:type><xsl:value-of select="." /></dc:type>
</xsl:for-each>-->
<!-- dc.identifier -->
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='identifier']/doc:element/doc:field[@name='value']">
<dc:identifier><xsl:value-of select="." /></dc:identifier>
</xsl:for-each>
<!-- dc.identifier.* -->
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='identifier']/doc:element/doc:element/doc:field[@name='value']">
<dc:identifier><xsl:value-of select="." /></dc:identifier>
</xsl:for-each>
<!-- dc.language -->
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='language']/doc:element/doc:field[@name='value']">
<dc:language><xsl:value-of select="." /></dc:language>
</xsl:for-each>
<!-- dc.language.* -->
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='language']/doc:element/doc:element/doc:field[@name='value']">
<dc:language><xsl:value-of select="." /></dc:language>
</xsl:for-each>
<!-- dc.relation -->
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='relation']/doc:element/doc:field[@name='value']">
<dc:relation><xsl:value-of select="." /></dc:relation>
</xsl:for-each>
<!-- dc.relation.* -->
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='relation']/doc:element/doc:element/doc:field[@name='value']">
<dc:relation><xsl:value-of select="." /></dc:relation>
</xsl:for-each>
<!-- dc.rights -->
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='rights']/doc:element/doc:field[@name='value']">
<dc:rights><xsl:value-of select="." /></dc:rights>
</xsl:for-each>
<!-- dc.rights.* -->
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='rights']/doc:element/doc:element/doc:field[@name='value']">
<dc:rights><xsl:value-of select="." /></dc:rights>
</xsl:for-each>
<!-- dc.format -->
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='format']/doc:element/doc:field[@name='value']">
<dc:format><xsl:value-of select="." /></dc:format>
</xsl:for-each>
<!-- dc.format.* -->
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='format']/doc:element/doc:element/doc:field[@name='value']">
<dc:format><xsl:value-of select="." /></dc:format>
</xsl:for-each>
<!-- ? -->
<xsl:for-each select="doc:metadata/doc:element[@name='bitstreams']/doc:element[@name='bitstream']/doc:field[@name='format']">
<dc:format><xsl:value-of select="." /></dc:format>
</xsl:for-each>
<!-- dc.coverage -->
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='coverage']/doc:element/doc:field[@name='value']">
<dc:coverage><xsl:value-of select="." /></dc:coverage>
</xsl:for-each>
<!-- dc.coverage.* -->
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='coverage']/doc:element/doc:element/doc:field[@name='value']">
<dc:coverage><xsl:value-of select="." /></dc:coverage>
</xsl:for-each>
<!-- dc.publisher -->
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='publisher']/doc:element/doc:field[@name='value']">
<dc:publisher><xsl:value-of select="." /></dc:publisher>
</xsl:for-each>
<!-- dc.publisher.* -->
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='publisher']/doc:element/doc:element/doc:field[@name='value']">
<dc:publisher><xsl:value-of select="." /></dc:publisher>
</xsl:for-each>
<!-- dc.source -->
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='source']/doc:element/doc:field[@name='value']">
<dc:source><xsl:value-of select="." /></dc:source>
</xsl:for-each>
<!-- dc.source.* -->
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='source']/doc:element/doc:element/doc:field[@name='value']">
<dc:source><xsl:value-of select="." /></dc:source>
</xsl:for-each>
<xsl:for-each select="doc:metadata/doc:element[@name='dc']/doc:element[@name='type']/doc:element/doc:element/doc:field[@name='CatFormatAName']">
<dc:type><xsl:value-of select="." /></dc:type>
</xsl:for-each>
</oai_dc:dc>
</xsl:template>
</xsl:stylesheet>