DSpace 6.2社区列表修改

问题描述 投票:1回答:3

我一直在尝试修改我正在处理的存储库中社区列表的外观。基本上我想删除首页社区下面的内容描述标题。我在下面附上了图片说明。

我想要得到这个Now

看起来像这个What I'm Going For

我似乎无法找到负责的文件,我最初尝试修改[source]/dspace-xmlui-mirage2/src/main/webapp/styles/classic_mirage_color_scheme/中的_community-list.scss和_community-view.scss文件

但还没有运气。

dspace
3个回答
1
投票

注释掉以下代码以隐藏该信息的显示。 https://github.com/DSpace/DSpace/blob/dspace-6_x/dspace-xmlui-mirage2/src/main/webapp/xsl/aspect/artifactbrowser/community-list.xsl#L66-L73

        <xsl:variable name="abstract" select="$data/dim:field[@element = 'description' and @qualifier='abstract']/node()"/>
        <xsl:if test="$abstract and string-length($abstract[1]) &gt; 0">
            <div class="artifact-info">
                <span class="short-description text-muted">
                    <xsl:value-of select="util:shortenString($abstract, 220, 10)"/>
                </span>
            </div>
        </xsl:if>

0
投票

谢谢你。缓存不是问题,因为我似乎还需要修改/[source]/dspace-xmlui-mirage2/src/main/webapp/xsl/preprocess/communitylist.xsl


0
投票

我按照上面的说明从@terrywb开始

注释掉以下代码以隐藏该信息的显示。 https://github.com/DSpace/DSpace/blob/dspace-6_x/dspace-xmlui-mirage2/src/main/webapp/xsl/aspect/artifactbrowser/community-list.xsl#L66-L73

    <xsl:variable name="abstract" select="$data/dim:field[@element = 'description' and @qualifier='abstract']/node()"/>
    <xsl:if test="$abstract and string-length($abstract[1]) &gt; 0">
        <div class="artifact-info">
            <span class="short-description text-muted">
                <xsl:value-of select="util:shortenString($abstract, 220, 10)"/>
            </span>
        </div>
    </xsl:if>

然后在/[source]/dspace-xmlui-mirage2/src/main/webapp/xsl/preprocess/communitylist.xsl/注释第138行到第143行,使它看起来像这样。

  <!-- <xsl:variable name="description" select="$dim/dim:field[@element='description'][@qualifier='abstract']"/>
        <xsl:if test="string-length($description/text()) > 0">
            <p rend="hidden-xs">
                <xsl:value-of select="$description"/>
            </p>
        </xsl:if> -->

在构建下面的描述之后,社区应该消失。


我还发现,也可以从/home/dspace/config/dspace.cfg文件中禁用它。 944行:

webui.strengths.show = true

将此值更改为false,以便它如此读取

webui.strengths.show = false
© www.soinside.com 2019 - 2024. All rights reserved.