Ignore:
Timestamp:
09/03/13 14:08:29 (11 years ago)
Author:
mwindhouwer
Message:

M various/import/csv2dcif.xsl

  • understand some more colums

-- definition-source
-- access-date

M mod-ISOcat-access-data/access/dc_touch.acc
M mod-ISOcat-access-data/access/dc_hug.acc

  • if dir is not specified the default is down, unless the DC is a simple one then hug both up (super simple DCs and closed DCs) and down (sub simple DCs)

M mod-ISOcat-manage-system/manage/import.acc

  • turn a user login into an id
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cats/ISOcat/trunk/various/import/csv2dcif.xsl

    r2029 r3515  
    273273                                <xsl:otherwise>
    274274                                    <xsl:message>WRN: multiple columns for definition in a language section, will use only the first one!</xsl:message>
     275                                </xsl:otherwise>
     276                            </xsl:choose>
     277                        </xsl:for-each>
     278                        <xsl:for-each select="dcif:colLookups($ss,('definition source'),(),$row)[. ge $col][. lt $nxt]">
     279                            <xsl:choose>
     280                                <xsl:when test="position() eq 1">
     281                                    <definition-source col="{.}"/>
     282                                </xsl:when>
     283                                <xsl:otherwise>
     284                                    <xsl:message>WRN: multiple columns for definition source in a language section, will use only the first one!</xsl:message>
     285                                </xsl:otherwise>
     286                            </xsl:choose>
     287                        </xsl:for-each>
     288                        <xsl:for-each select="dcif:colLookups($ss,('access date'),(),$row)[. ge $col][. lt $nxt]">
     289                            <xsl:choose>
     290                                <xsl:when test="position() eq 1">
     291                                    <access-date col="{.}"/>
     292                                </xsl:when>
     293                                <xsl:otherwise>
     294                                    <xsl:message>WRN: multiple columns for access date in a language section, will use only the first one!</xsl:message>
    275295                                </xsl:otherwise>
    276296                            </xsl:choose>
     
    491511                                        <dcif:source>
    492512                                            <xsl:choose>
     513                                                <xsl:when test="not(normalize-space($lang/definition-source/@col)=('','UNK'))">
     514                                                    <xsl:variable name="src" select="normalize-space($line/value[f:int($lang/definition-source/@col)])"/>
     515                                                    <xsl:if test="$src!=''">
     516                                                        <xsl:value-of select="$src"/>
     517                                                        <xsl:if test="not(normalize-space($lang/access-date/@col)=('','UNK'))">
     518                                                            <xsl:variable name="access" select="normalize-space($line/value[f:int($lang/access-date/@col)])"/>
     519                                                            <xsl:if test="$access!=''">
     520                                                                <xsl:text> (</xsl:text>
     521                                                                <xsl:value-of select="$access"/>
     522                                                                <xsl:text>)</xsl:text>
     523                                                            </xsl:if>
     524                                                        </xsl:if>
     525                                                    </xsl:if>
     526                                                </xsl:when>
    493527                                                <xsl:when test="not(normalize-space($map/source)=('','UNK'))">
    494528                                                    <xsl:value-of select="$map/source"/>
Note: See TracChangeset for help on using the changeset viewer.