Foundry: Improvded template tags for event content type.
git-svn-id: https://svn.libreccm.org/ccm/trunk@3301 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
5135e182a8
commit
8849a83bd7
|
|
@ -111,6 +111,15 @@
|
|||
<xsl:template match="location">
|
||||
<xsl:param name="contentitem-tree" tunnel="yes"/>
|
||||
|
||||
<xsl:if test="(string-length($contentitem-tree/location) > 0)
|
||||
or (string-length($contentitem-tree/nav:attribute[@name = 'location']) > 0)">
|
||||
<xsl:apply-templates/>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="location//location-text">
|
||||
<xsl:param name="contentitem-tree" tunnel="yes"/>
|
||||
|
||||
<xsl:choose>
|
||||
<xsl:when test="$contentitem-tree/location">
|
||||
<xsl:value-of disable-output-escaping="yes"
|
||||
|
|
@ -126,6 +135,15 @@
|
|||
<xsl:template match="main-contributor">
|
||||
<xsl:param name="contentitem-tree" tunnel="yes"/>
|
||||
|
||||
<xsl:if test="(string-length($contentitem-tree/mainContributor) > 0)
|
||||
or (string-length($contentitem-tree/nav:attribute[@name = 'mainContributor']) > 0)">
|
||||
<xsl:apply-templates/>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="main-contributor//main-contributor-text">
|
||||
<xsl:param name="contentitem-tree" tunnel="yes"/>
|
||||
|
||||
<xsl:choose>
|
||||
<xsl:when test="$contentitem-tree/mainContributor">
|
||||
<xsl:value-of disable-output-escaping="yes"
|
||||
|
|
@ -139,9 +157,40 @@
|
|||
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="event-date-addendum">
|
||||
<xsl:param name="contentitem-tree" tunnel="yes"/>
|
||||
|
||||
<xsl:if test="(string-length($contentitem-tree/eventDate) > 0)
|
||||
or (string-length($contentitem-tree/nav:attribute[@name = 'eventDate']) > 0)">
|
||||
<xsl:apply-templates/>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="event-date-addendum//event-date-addendum-text">
|
||||
<xsl:param name="contentitem-tree" tunnel="yes"/>
|
||||
|
||||
<xsl:choose>
|
||||
<xsl:when test="$contentitem-tree/eventDate">
|
||||
<xsl:value-of select="$contentitem-tree/eventDate"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="$contentitem-tree/nav:attribute[@name = 'eventDate']">
|
||||
<xsl:value-of select="$contentitem-tree/nav:attribute[@name = 'eventDate']"/>
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="event-type">
|
||||
<xsl:param name="contentitem-tree" tunnel="yes"/>
|
||||
|
||||
<xsl:if test="(string-length($contentitem-tree/eventType) > 0)
|
||||
or (string-length($contentitem-tree/nav:attribute[@name = 'eventType']) > 0)">
|
||||
<xsl:apply-templates/>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="event-type//event-type-text">
|
||||
<xsl:param name="contentitem-tree" tunnel="yes"/>
|
||||
|
||||
<xsl:choose>
|
||||
<xsl:when test="$contentitem-tree/eventType">
|
||||
<xsl:value-of disable-output-escaping="yes" select="$contentitem-tree/eventType"/>
|
||||
|
|
|
|||
Loading…
Reference in New Issue