Foundry: Improvded template tags for event content type.

git-svn-id: https://svn.libreccm.org/ccm/trunk@3301 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2015-04-01 12:42:47 +00:00
parent 5135e182a8
commit 8849a83bd7
1 changed files with 49 additions and 0 deletions

View File

@ -111,6 +111,15 @@
<xsl:template match="location">
<xsl:param name="contentitem-tree" tunnel="yes"/>
<xsl:if test="(string-length($contentitem-tree/location) &gt; 0)
or (string-length($contentitem-tree/nav:attribute[@name = 'location']) &gt; 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) &gt; 0)
or (string-length($contentitem-tree/nav:attribute[@name = 'mainContributor']) &gt; 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) &gt; 0)
or (string-length($contentitem-tree/nav:attribute[@name = 'eventDate']) &gt; 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) &gt; 0)
or (string-length($contentitem-tree/nav:attribute[@name = 'eventType']) &gt; 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"/>