Changeset 5767 for cats


Ignore:
Timestamp:
10/30/14 14:57:27 (10 years ago)
Author:
Menzo Windhouwer
Message:

M mod-ISOcat-interface-rest/representations/dcs2/openskos.xsl

  • also accept Athens Core recommendations
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cats/ISOcat/trunk/mod-ISOcat-interface-rest/representations/dcs2/openskos.xsl

    r5761 r5767  
    2121    <xsl:param name="base"/>
    2222    <xsl:param name="props"/>
    23         <xsl:param name="recommenders" select="('CLARIN-NL/VL')"/>
     23        <xsl:param name="approve" select="('CLARIN-NL/VL','Athens Core')"/>
    2424    <xsl:template match="text()"/>
    2525    <xsl:template match="dcif:dataCategorySelection">
     
    5050        <xsl:variable name="concept">
    5151                <skos:Concept rdf:about="tmp:C-{substring-after(@pid,'DC-')}">
    52                         <xsl:if test="isocat:recommendedBy=$recommenders">
    53                                 <openskos:status>approved</openskos:status>
    54                         </xsl:if>
    55                 <!-- changeNote ok to satisfy the CC-BY license -->
     52                        <xsl:choose>
     53                                <xsl:when test="dcif:registrationStatus=('deprecated','superseded')">
     54                                        <openskos:status>expired</openskos:status>
     55                                </xsl:when>
     56                                <xsl:when test="isocat:recommendedBy=$approve">
     57                                        <openskos:status>approved</openskos:status>
     58                                </xsl:when>
     59                                <xsl:otherwise>
     60                                        <openskos:status>candidate</openskos:status>
     61                                </xsl:otherwise>
     62                        </xsl:choose>
     63                <!-- changeNote to satisfy the CC-BY license -->
    5664                <skos:changeNote>
    5765                    <xsl:text>This concept is based on the ISOcat data category: </xsl:text>
Note: See TracChangeset for help on using the changeset viewer.