DSpace 6.2社区列表修改

DSpace 6.2 Community List Modification

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

我想得到这个

看起来像这样

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

但还没有运气。

注释掉以下代码以隐藏该信息的显示。 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

我按照@terrywb 的上述说明进行操作

Comment out the following code to hide the display of that information. 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