Add media title to directory header
This commit is contained in:
parent
2f8c419206
commit
9f59677f5a
|
@ -53,7 +53,13 @@
|
||||||
</div>
|
</div>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="header" name="header">
|
<xsl:template match="header">
|
||||||
|
<xsl:call-template name="header" />
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
<xsl:template name="header">
|
||||||
|
<xsl:param name="title" />
|
||||||
|
<xsl:param name="href" />
|
||||||
<div id="vfeed" />
|
<div id="vfeed" />
|
||||||
<div class="webtitle">
|
<div class="webtitle">
|
||||||
<div class="csclogo">
|
<div class="csclogo">
|
||||||
|
@ -68,6 +74,12 @@
|
||||||
<div class="template-header">
|
<div class="template-header">
|
||||||
<xsl:apply-templates
|
<xsl:apply-templates
|
||||||
select="document(concat($g_pwd, '/directory.xml'))/directory"/>
|
select="document(concat($g_pwd, '/directory.xml'))/directory"/>
|
||||||
|
<xsl:if test="$title">
|
||||||
|
<xsl:call-template name="diritem">
|
||||||
|
<xsl:with-param name="title" select="$title" />
|
||||||
|
<xsl:with-param name="href" select="$href" />
|
||||||
|
</xsl:call-template>
|
||||||
|
</xsl:if>
|
||||||
</div>
|
</div>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
|
|
@ -23,10 +23,19 @@
|
||||||
<xsl:apply-templates select="diritem" />
|
<xsl:apply-templates select="diritem" />
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="diritem">
|
<xsl:template name="diritem">
|
||||||
<a class="diritem" href="{@href}">
|
<xsl:param name="title" />
|
||||||
<xsl:value-of select="@title" />
|
<xsl:param name="href" />
|
||||||
|
<a class="diritem" href="{$href}">
|
||||||
|
<xsl:value-of select="$title" />
|
||||||
</a>
|
</a>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
<xsl:template match="diritem">
|
||||||
|
<xsl:call-template name="diritem">
|
||||||
|
<xsl:with-param name="title" select="@title" />
|
||||||
|
<xsl:with-param name="href" select="@href" />
|
||||||
|
</xsl:call-template>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
</xsl:stylesheet>
|
</xsl:stylesheet>
|
||||||
|
|
|
@ -65,7 +65,10 @@
|
||||||
<link rel="stylesheet" href="{$pre}default.css" type="text/css" />
|
<link rel="stylesheet" href="{$pre}default.css" type="text/css" />
|
||||||
</head>
|
</head>
|
||||||
<body><div>
|
<body><div>
|
||||||
<xsl:call-template name="header" />
|
<xsl:call-template name="header">
|
||||||
|
<xsl:with-param name="title" select="@title" />
|
||||||
|
<xsl:with-param name="href" select="concat(@title, $suffix, '.html')" />
|
||||||
|
</xsl:call-template>
|
||||||
<xsl:if test="abstract">
|
<xsl:if test="abstract">
|
||||||
<h2>Abstract</h2>
|
<h2>Abstract</h2>
|
||||||
<div>
|
<div>
|
||||||
|
|
Loading…
Reference in New Issue