Some bugfixes for Foundry
git-svn-id: https://svn.libreccm.org/ccm/trunk@3567 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
6904c2ad79
commit
8a14da390a
|
|
@ -154,6 +154,7 @@
|
|||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:with-param>
|
||||
<xsl:with-param name="style" select="./@style" />
|
||||
</xsl:call-template>
|
||||
|
||||
</xsl:if>
|
||||
|
|
@ -162,6 +163,7 @@
|
|||
<xsl:template name="process-content-item-detail">
|
||||
<xsl:param name="contentitem-tree"/>
|
||||
<xsl:param name="content-section" select="''"/>
|
||||
<xsl:param name="style" select="''"/>
|
||||
<xsl:param name="mode" select="'detail'"/>
|
||||
|
||||
<xsl:variable name="oid" select="$contentitem-tree/masterVersion/@oid"/>
|
||||
|
|
@ -204,11 +206,13 @@
|
|||
|
||||
<xsl:when test="$template-map/content-item[@content-section = $content-section
|
||||
and @category = $category
|
||||
and @style = $style
|
||||
and @content-type = $content-type]">
|
||||
<xsl:call-template name="foundry:process-contentitem-template">
|
||||
<xsl:with-param name="template-file"
|
||||
select="$template-map/content-item[@content-section = $content-section
|
||||
and @category = $category
|
||||
and @style = $style
|
||||
and @content-type = $content-type]"/>
|
||||
<xsl:with-param name="contentitem-tree"
|
||||
select="$contentitem-tree"/>
|
||||
|
|
@ -217,11 +221,43 @@
|
|||
|
||||
<xsl:when test="$template-map/content-item[@content-section = $content-section
|
||||
and @category = $category
|
||||
and not(@style)
|
||||
and @content-type = $content-type]">
|
||||
<xsl:call-template name="foundry:process-contentitem-template">
|
||||
<xsl:with-param name="template-file"
|
||||
select="$template-map/content-item[@content-section = $content-section
|
||||
and @category = $category
|
||||
and not(@style)
|
||||
and @content-type = $content-type]"/>
|
||||
<xsl:with-param name="contentitem-tree"
|
||||
select="$contentitem-tree"/>
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
|
||||
<xsl:when test="$template-map/content-item[@content-section = $content-section
|
||||
and @category = $category
|
||||
and @style = $style
|
||||
and not(@content-type)]">
|
||||
<xsl:call-template name="foundry:process-contentitem-template">
|
||||
<xsl:with-param name="template-file"
|
||||
select="$template-map/content-item[@content-section = $content-section
|
||||
and @category = $category
|
||||
and @style = $style
|
||||
and not(@content-type)]"/>
|
||||
<xsl:with-param name="contentitem-tree"
|
||||
select="$contentitem-tree"/>
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
|
||||
<xsl:when test="$template-map/content-item[@content-section = $content-section
|
||||
and @category = $category
|
||||
and not(@style)
|
||||
and not(@content-type)]">
|
||||
<xsl:call-template name="foundry:process-contentitem-template">
|
||||
<xsl:with-param name="template-file"
|
||||
select="$template-map/content-item[@content-section = $content-section
|
||||
and @category = $category
|
||||
and not(@style)
|
||||
and not(@content-type)]"/>
|
||||
<xsl:with-param name="contentitem-tree"
|
||||
select="$contentitem-tree"/>
|
||||
|
|
@ -230,11 +266,13 @@
|
|||
|
||||
<xsl:when test="$template-map/content-item[@content-section = $content-section
|
||||
and not(@category)
|
||||
and @style = $style
|
||||
and @content-type = $content-type]">
|
||||
<xsl:call-template name="foundry:process-contentitem-template">
|
||||
<xsl:with-param name="template-file"
|
||||
select="$template-map/content-item[@content-section = $content-section
|
||||
and not(@category)
|
||||
and @style = $style
|
||||
and @content-type = $content-type]"/>
|
||||
<xsl:with-param name="contentitem-tree"
|
||||
select="$contentitem-tree"/>
|
||||
|
|
@ -243,11 +281,43 @@
|
|||
|
||||
<xsl:when test="$template-map/content-item[@content-section = $content-section
|
||||
and not(@category)
|
||||
and not(@style)
|
||||
and @content-type = $content-type]">
|
||||
<xsl:call-template name="foundry:process-contentitem-template">
|
||||
<xsl:with-param name="template-file"
|
||||
select="$template-map/content-item[@content-section = $content-section
|
||||
and not(@category)
|
||||
and not(@style)
|
||||
and @content-type = $content-type]"/>
|
||||
<xsl:with-param name="contentitem-tree"
|
||||
select="$contentitem-tree"/>
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
|
||||
<xsl:when test="$template-map/content-item[@content-section = $content-section
|
||||
and not(@category)
|
||||
and @style = $style
|
||||
and not(@content-type)]">
|
||||
<xsl:call-template name="foundry:process-contentitem-template">
|
||||
<xsl:with-param name="template-file"
|
||||
select="$template-map/content-item[@content-section = $content-section
|
||||
and not(@category)
|
||||
and @style = $style
|
||||
and not(@content-type)]"/>
|
||||
<xsl:with-param name="contentitem-tree"
|
||||
select="$contentitem-tree"/>
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
|
||||
<xsl:when test="$template-map/content-item[@content-section = $content-section
|
||||
and not(@category)
|
||||
and not(@style)
|
||||
and not(@content-type)]">
|
||||
<xsl:call-template name="foundry:process-contentitem-template">
|
||||
<xsl:with-param name="template-file"
|
||||
select="$template-map/content-item[@content-section = $content-section
|
||||
and not(@category)
|
||||
and not(@style)
|
||||
and not(@content-type)]"/>
|
||||
<xsl:with-param name="contentitem-tree"
|
||||
select="$contentitem-tree"/>
|
||||
|
|
@ -256,11 +326,13 @@
|
|||
|
||||
<xsl:when test="$template-map/content-item[not(@content-section)
|
||||
and @category = $category
|
||||
and @style = $style
|
||||
and @content-type = $content-type]">
|
||||
<xsl:call-template name="foundry:process-contentitem-template">
|
||||
<xsl:with-param name="template-file"
|
||||
select="$template-map/content-item[not(@content-section)
|
||||
and @category = $category
|
||||
and @style = $style
|
||||
and @content-type = $content-type]"/>
|
||||
<xsl:with-param name="contentitem-tree"
|
||||
select="$contentitem-tree"/>
|
||||
|
|
@ -269,11 +341,43 @@
|
|||
|
||||
<xsl:when test="$template-map/content-item[not(@content-section)
|
||||
and @category = $category
|
||||
and not(@style)
|
||||
and @content-type = $content-type]">
|
||||
<xsl:call-template name="foundry:process-contentitem-template">
|
||||
<xsl:with-param name="template-file"
|
||||
select="$template-map/content-item[not(@content-section)
|
||||
and @category = $category
|
||||
and not(@style)
|
||||
and @content-type = $content-type]"/>
|
||||
<xsl:with-param name="contentitem-tree"
|
||||
select="$contentitem-tree"/>
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
|
||||
<xsl:when test="$template-map/content-item[not(@content-section)
|
||||
and @category = $category
|
||||
and @style = $style
|
||||
and not(@content-type)]">
|
||||
<xsl:call-template name="foundry:process-contentitem-template">
|
||||
<xsl:with-param name="template-file"
|
||||
select="$template-map/content-item[not(@content-section)
|
||||
and @category = $category
|
||||
and @style = $style
|
||||
and not(@content-type)]"/>
|
||||
<xsl:with-param name="contentitem-tree"
|
||||
select="$contentitem-tree"/>
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
|
||||
<xsl:when test="$template-map/content-item[not(@content-section)
|
||||
and @category = $category
|
||||
and not(@style)
|
||||
and not(@content-type)]">
|
||||
<xsl:call-template name="foundry:process-contentitem-template">
|
||||
<xsl:with-param name="template-file"
|
||||
select="$template-map/content-item[not(@content-section)
|
||||
and @category = $category
|
||||
and not(@style)
|
||||
and not(@content-type)]"/>
|
||||
<xsl:with-param name="contentitem-tree"
|
||||
select="$contentitem-tree"/>
|
||||
|
|
@ -282,11 +386,28 @@
|
|||
|
||||
<xsl:when test="$template-map/content-item[not(@content-section)
|
||||
and not(@category)
|
||||
and @style = $style
|
||||
and @content-type = $content-type]">
|
||||
<xsl:call-template name="foundry:process-contentitem-template">
|
||||
<xsl:with-param name="template-file"
|
||||
select="$template-map/content-item[not(@content-section)
|
||||
and not(@category)
|
||||
and @style = $style
|
||||
and @content-type = $content-type]"/>
|
||||
<xsl:with-param name="contentitem-tree"
|
||||
select="$contentitem-tree"/>
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
|
||||
<xsl:when test="$template-map/content-item[not(@content-section)
|
||||
and not(@category)
|
||||
and not(@style)
|
||||
and @content-type = $content-type]">
|
||||
<xsl:call-template name="foundry:process-contentitem-template">
|
||||
<xsl:with-param name="template-file"
|
||||
select="$template-map/content-item[not(@content-section)
|
||||
and not(@category)
|
||||
and not(@style)
|
||||
and @content-type = $content-type]"/>
|
||||
<xsl:with-param name="contentitem-tree"
|
||||
select="$contentitem-tree"/>
|
||||
|
|
|
|||
|
|
@ -307,7 +307,8 @@
|
|||
select="concat($dispatcher-prefix,
|
||||
'/scipublications/export/?format=',
|
||||
./formatKey,
|
||||
'&publication=', ./publicationId)"/>
|
||||
'&publication=',
|
||||
./publicationId)"/>
|
||||
<xsl:with-param name="export-formatkey"
|
||||
tunnel="yes"
|
||||
select="./formatKey"/>
|
||||
|
|
@ -720,14 +721,14 @@
|
|||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="content-item-layout//scipublications//procedings-papers">
|
||||
<xsl:template match="content-item-layout//scipublications//proceedings-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"/>
|
||||
tunnel="yes"
|
||||
select="$contentitem-tree/papers"/>
|
||||
</xsl:apply-templates>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
|
@ -772,4 +773,48 @@
|
|||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="scipublications-export-links">
|
||||
<xsl:if test="$data-tree//publicationExportLinks">
|
||||
<xsl:apply-templates>
|
||||
<xsl:with-param name="export-links"
|
||||
tunnel="yes"
|
||||
select="$data-tree//publicationExportLinks"/>
|
||||
</xsl:apply-templates>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="scipublications-export-links//export-link">
|
||||
<xsl:param name="export-links" tunnel="yes"/>
|
||||
|
||||
<xsl:variable name="layout-tree" select="./*"/>
|
||||
|
||||
<xsl:for-each select="$export-links/publicationExportLink">
|
||||
<xsl:apply-templates select="$layout-tree">
|
||||
<xsl:with-param name="href"
|
||||
tunnel="yes"
|
||||
select="concat($dispatcher-prefix,
|
||||
'/scipublications/export/?format=',
|
||||
./formatKey,
|
||||
'&category=',
|
||||
./categoryId,
|
||||
'&filter=',
|
||||
./filterSql,
|
||||
'&descendCategories=',
|
||||
./descendCategories)"/>
|
||||
<xsl:with-param name="export-formatkey"
|
||||
tunnel="yes"
|
||||
select="./formatKey" />
|
||||
<xsl:with-param name="export-formatname"
|
||||
tunnel="yes"
|
||||
select="./formatName"/>
|
||||
</xsl:apply-templates>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="scipublications-export-links//export-link//export-link-formatname">
|
||||
<xsl:param name="export-formatname" tunnel="yes"/>
|
||||
|
||||
<xsl:value-of select="$export-formatname"/>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -398,6 +398,12 @@
|
|||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="object-list//filter-controls">
|
||||
|
||||
<xsl:apply-templates select="$data-tree//filterControls" />
|
||||
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="filters">
|
||||
<xsl:if test="$data-tree//filters">
|
||||
<xsl:apply-templates>
|
||||
|
|
|
|||
Loading…
Reference in New Issue