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-94f89814c4dfmaster
parent
cd20fe379d
commit
cb51360376
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue