Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/silverlight/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xslt DSpace徽标社区-DSpace 6.2 XMLUI_Xslt_Dspace - Fatal编程技术网

Xslt DSpace徽标社区-DSpace 6.2 XMLUI

Xslt DSpace徽标社区-DSpace 6.2 XMLUI,xslt,dspace,Xslt,Dspace,我试图编辑communitylist.xsl来修改主模板以添加社区徽标,但还没有成功 我正在使用XMLUI-Mirage2 这里是主模板示例图像 在: 我应该添加或修改什么 谢谢。我们的存储库在整个层次结构中应用了40种不同的徽标。以下是我是如何做到这一点的 基于社区/集合句柄设置标头变量 ZZZ http://zzz.edu ZZZ网站 处理标题元素时,插入徽标标记 ds分区头 <xsl:key name="myancestor" match="/dri:document/dri

我试图编辑communitylist.xsl来修改主模板以添加社区徽标,但还没有成功

我正在使用XMLUI-Mirage2

这里是主模板示例图像

在:

我应该添加或修改什么


谢谢。

我们的存储库在整个层次结构中应用了40种不同的徽标。以下是我是如何做到这一点的

基于社区/集合句柄设置标头变量

ZZZ
http://zzz.edu
ZZZ网站
处理标题元素时,插入徽标标记

ds分区头
<xsl:key name="myancestor" match="/dri:document/dri:meta/dri:pageMeta/dri:trail/@target|/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='request'][@qualifier='URI']/text()" use="substring-after(.,'handle/')"/>
<xsl:variable name="IS_ZZZ" select="key('myancestor','12345/6789')"/>

    <xsl:choose>
        <xsl:when test="$IS_ZZZ">
            <xsl:call-template name="showLogo">
                <xsl:with-param name="header-logo" select="concat($theme-path,'/images/zzz.png')"/>
                <xsl:with-param name="header-logo-alt">ZZZ</xsl:with-param>
                <xsl:with-param name="header-logo-link">http://zzz.edu</xsl:with-param>
                <xsl:with-param name="header-logo-link-lang">ZZZ Website</xsl:with-param>
            </xsl:call-template>
        </xsl:when>
<xsl:template match="dri:div[@n='community-home' or @n='collection-home']/dri:head" priority="3">
    <xsl:call-template name="showLogo">
        <xsl:with-param name="header-logo" select="$header-logo"/>
        <xsl:with-param name="header-logo-link" select="$header-logo-link"/>
        <xsl:with-param name="header-logo-link-lang" select="$header-logo-link-lang"/>
        <xsl:with-param name="header-logo-alt" select="$header-logo-alt"/>
    </xsl:call-template>
</xsl:template>


<xsl:template name="showLogo">
    <xsl:param name="header-logo"/>
    <xsl:param name="header-logo-link"/>
    <xsl:param name="header-logo-link-lang"/>
    <xsl:param name="header-logo-alt"/>
    <xsl:call-template name="renderHead">
        <xsl:with-param name="class">ds-div-head</xsl:with-param>
    </xsl:call-template>
    <div class="gu-theme-logo-div">
    <a>
        <xsl:if test="$header-logo-link">
            <xsl:attribute name="href">
                <xsl:value-of select="$header-logo-link"/>
            </xsl:attribute>
            <xsl:attribute name="title">
                <xsl:value-of select="$header-logo-link-lang"/>
            </xsl:attribute>
        </xsl:if>
        <img class="gu-theme-logo hidden-sm hidden-xs">
            <xsl:attribute name="src">
                <xsl:value-of select="$header-logo"/>
            </xsl:attribute>
            <xsl:attribute name="alt">
                <xsl:value-of select="$header-logo-alt"/>
            </xsl:attribute>
        </img>
        <span class="hidden-md hidden-lg">
            <xsl:value-of select="$header-logo-link-lang"/>
        </span>
    </a>
    </div>
</xsl:template>