Ignore:
Timestamp:
03/20/13 16:21:19 (11 years ago)
Author:
mwindhouwer
Message:

M mod-ISOcat-interface-gi/interface/JSXAPPS/ISOcat/xml/spies.xml
M mod-ISOcat-interface-gi/interface/JSXAPPS/ISOcat/help/profile.html

  • updated help info with regard to the Private profile, which is now the 'undecided' profile

M mod-ISOcat-site/site/index_files/news.html
M mod-ISOcat-site/site/index_files/TDGs.html
M mod-ISOcat-site/pub/isocat.pub

  • keep track of the revision info

M mod-ISOcat-access-data/access/dc_check.xsl

  • if a DC is (still) assigned to the 'undecided' profile an warning is raised
  • if a DC is assigned to the 'undecided' profile next to one or more thematic profile an error is raised
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cats/ISOcat/trunk/mod-ISOcat-access-data/access/dc_check.xsl

    r2710 r2725  
    225225       
    226226        <xsl:template match="dcif:descriptionSection/dcif:profile">
    227                 <xsl:if test="$standard-flag and current()='undecided'">
     227                <xsl:if test="current()='undecided'">
    228228                        <xsl:choose>
    229                                 <xsl:when test="ancestor::dcif:dataCategory/@isocat:type='closed'">
     229                                <xsl:when test="count(distinct-values(../dcif:profile))=1">
    230230                                        <xsl:call-template name="warning">
    231                                                 <xsl:with-param name="msg">Standardized data categories can't be a member of the 'undecided' profile.</xsl:with-param>
     231                                                <xsl:with-param name="msg">This data category is (still) a member of the 'undecided' profile.</xsl:with-param>
    232232                                                <xsl:with-param name="standard" select="'allow'"/>
    233233                                        </xsl:call-template>
     
    235235                                <xsl:otherwise>
    236236                                        <xsl:call-template name="error">
    237                                                 <xsl:with-param name="msg">Standardized data categories can't be a member of the 'undecided' profile.</xsl:with-param>
     237                                                <xsl:with-param name="msg">This data category is a member of the 'undecided' profile and one or more thematic profiles.</xsl:with-param>
    238238                                        </xsl:call-template>
    239239                                </xsl:otherwise>
    240240                        </xsl:choose>
    241241                </xsl:if>
     242                <xsl:if test="$standard-flag and current()='undecided'">
     243                        <xsl:call-template name="error">
     244                                <xsl:with-param name="msg">Standardized data categories can't be a member of the 'undecided' profile.</xsl:with-param>
     245                        </xsl:call-template>
     246                </xsl:if>
    242247                <xsl:if test="$standard-flag and current()='not available'">
    243248                        <xsl:choose>
    244                                 <xsl:when test="ancestor::dcif:dataCategory/@isocat:type='not available'">
     249                                <xsl:when test="ancestor::dcif:dataCategory/@isocat:type='closed'">
    245250                                        <xsl:call-template name="warning">
    246251                                                <xsl:with-param name="msg">Standardized data categories can't be a member of the 'not available' profile.</xsl:with-param>
Note: See TracChangeset for help on using the changeset viewer.