Foundry: Use homepage entry from contact data of author for creating link

git-svn-id: https://svn.libreccm.org/ccm/trunk@5875 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2019-03-22 19:01:18 +00:00
parent cd20fe379d
commit cb51360376
1 changed files with 14 additions and 1 deletions

View File

@ -67,6 +67,19 @@
<xsl:variable name="layout-tree" select="./*"/> <xsl:variable name="layout-tree" select="./*"/>
<xsl:for-each select="$authors/author"> <xsl:for-each select="$authors/author">
<xsl:variable name="authorLink">
<xsl:choose>
<xsl:when test="./contacts/contact/contactentries[./keyId = 'homepage']">
<xsl:value-of select="./contacts/contact/contactentries[./keyId = 'homepage']/value" />
</xsl:when>
<xsl:otherwise>
<!-- <xsl:value-of select="foundry:generate-contentitem-link(./@oid)" /> -->
<xsl:value-of select='' />
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:apply-templates select="$layout-tree"> <xsl:apply-templates select="$layout-tree">
<xsl:with-param name="author" tunnel="yes" select="."/> <xsl:with-param name="author" tunnel="yes" select="."/>
<xsl:with-param name="contentitem-tree" tunnel="yes" select="."/> <xsl:with-param name="contentitem-tree" tunnel="yes" select="."/>
@ -76,7 +89,7 @@
./@name)"/> ./@name)"/>
<xsl:with-param name="href" <xsl:with-param name="href"
tunnel="yes" tunnel="yes"
select="foundry:generate-contentitem-link(./@oid)"/> select="$authorLink"/>
<xsl:with-param name="position" tunnel="yes" select="position()"/> <xsl:with-param name="position" tunnel="yes" select="position()"/>
<xsl:with-param name="last" tunnel="yes" select="last()"/> <xsl:with-param name="last" tunnel="yes" select="last()"/>
</xsl:apply-templates> </xsl:apply-templates>