Foundry: Some more tags for publications
git-svn-id: https://svn.libreccm.org/ccm/trunk@3362 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
aa3758cb9b
commit
5c51248a09
|
|
@ -682,7 +682,7 @@
|
|||
<xsl:value-of select="$contentitem-tree/dateToOfConference"/>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="content-item-layout//scipublications//if-proceedings">
|
||||
<xsl:template match="content-item-layout//scipublications//if-proceedings">
|
||||
<xsl:param name="contentitem-tree" tunnel="yes"/>
|
||||
|
||||
<xsl:if test="$contentitem-tree/proceedings">
|
||||
|
|
@ -694,5 +694,82 @@
|
|||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="content-item-layout//scipublications//articles">
|
||||
<xsl:param name="contentitem-tree" tunnel="yes"/>
|
||||
|
||||
<xsl:if test="$contentitem-tree/articles">
|
||||
<xsl:apply-templates>
|
||||
<xsl:with-param name="articles"
|
||||
tunnel="yes"
|
||||
select="$contentitem-tree/articles"/>
|
||||
</xsl:apply-templates>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="content-item-layout//scipublications//articles//article-item">
|
||||
<xsl:param name="articles" tunnel="yes"/>
|
||||
|
||||
<xsl:variable name="layout-tree" select="./*"/>
|
||||
|
||||
<xsl:for-each select="$articles/article">
|
||||
<xsl:apply-templates select="$layout-tree">
|
||||
<xsl:with-param name="contentitem-tree"
|
||||
tunnel="yes"
|
||||
select="."/>
|
||||
</xsl:apply-templates>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="content-item-layout//scipublications//procedings-papers">
|
||||
<xsl:param name="contentitem-tree" tunnel="yes"/>
|
||||
|
||||
<xsl:if test="$contentitem-tree/papers">
|
||||
<xsl:apply-templates>
|
||||
<xsl:with-param name="papers"
|
||||
tunnel="yes"
|
||||
select="$contentitem-tree/papers"/>
|
||||
</xsl:apply-templates>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="content-item-layout//scipublications//proceedings-papers//paper">
|
||||
<xsl:param name="papers" tunnel="yes"/>
|
||||
|
||||
<xsl:variable name="layout-tree" select="./*"/>
|
||||
|
||||
<xsl:for-each select="$papers/paper">
|
||||
<xsl:apply-templates select="$layout-tree">
|
||||
<xsl:with-param name="contentitem-tree"
|
||||
tunnel="yes"
|
||||
select="."/>
|
||||
</xsl:apply-templates>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="content-item-layout//scipublications//series-volumes">
|
||||
<xsl:param name="contentitem-tree" tunnel="yes"/>
|
||||
|
||||
<xsl:if test="$contentitem-tree/volumes">
|
||||
<xsl:apply-templates>
|
||||
<xsl:with-param name="volumes"
|
||||
tunnel="yes"
|
||||
select="$contentitem-tree/volumes"/>
|
||||
</xsl:apply-templates>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="content-item-layout//scipublications//series-volumes//volume">
|
||||
<xsl:param name="volumes" tunnel="yes"/>
|
||||
|
||||
<xsl:variable name="layout-tree" select="./*"/>
|
||||
|
||||
<xsl:for-each select="$volumes/publication">
|
||||
<xsl:apply-templates select="$layout-tree">
|
||||
<xsl:with-param name="contentitem-tree"
|
||||
tunnel="yes"
|
||||
select="."/>
|
||||
</xsl:apply-templates>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -63,8 +63,8 @@
|
|||
<xsl:if test="count($object-list-datatree/nav:objectList/nav:item) >= 1">
|
||||
<xsl:apply-templates>
|
||||
<xsl:with-param name="object-list-datatree"
|
||||
tunnel="yes"
|
||||
select="$object-list-datatree"/>
|
||||
tunnel="yes"
|
||||
select="$object-list-datatree"/>
|
||||
</xsl:apply-templates>
|
||||
</xsl:if>
|
||||
</xsl:if>
|
||||
|
|
@ -370,5 +370,50 @@
|
|||
</xsl:apply-templates>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="filters">
|
||||
<xsl:if test="$data-tree//filters">
|
||||
<xsl:apply-templates>
|
||||
<xsl:with-param name="filters"
|
||||
tunnel="yes"
|
||||
select="$data-tree//filters"/>
|
||||
</xsl:apply-templates>
|
||||
<input type="submit"
|
||||
label="{foundry:get-static-text('filters', 'apply-filters')}"/>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="filters//filter">
|
||||
<xsl:param name="filters" tunnel="yes"/>
|
||||
|
||||
<xsl:for-each select="$filters/filter">
|
||||
<xsl:choose>
|
||||
<xsl:when test="./@type = 'text'">
|
||||
<label for="./@label">
|
||||
<xsl:value-of select="foundry:get-static-text('filters',
|
||||
./@label)"/>
|
||||
</label>
|
||||
<input type="text" id="{./@label}"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="./@type = 'select'">
|
||||
<label for="./@label">
|
||||
<xsl:value-of select="foundry:get-static-text('filters',
|
||||
./@label)"/>
|
||||
</label>
|
||||
<select id="{./@label}">
|
||||
<xsl:for-each select="./option">
|
||||
<option value="{./@label}">
|
||||
<xsl:if test="./@selected = 'selected'">
|
||||
<xsl:attribute name="selected"
|
||||
select="'selected'"/>
|
||||
</xsl:if>
|
||||
<xsl:value-of select="./@label"/>
|
||||
</option>
|
||||
</xsl:for-each>
|
||||
</select>
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
Loading…
Reference in New Issue