2017-12-13 8 views
1

私が作業しているリポジトリのコミュニティリストの外観を変更しようとしています。基本的には、フロントページのコミュニティの下にあるコンテンツの説明のキャプションを削除します。私は以下の画像の説明を添付しました。私はこの NowDSpace 6.2コミュニティリストの変更

は私が担当したファイルを見つけることができないよう、この What I'm Going For

のように見えるように取得しようとしている

、私は当初_communityリストを変更しようとしました。 SCSS[source]/dspace-xmlui-mirage2/src/main/webapp/styles/classic_mirage_color_scheme/

_community-view.scssファイルが、まだ運。

答えて

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

こんにちは@terrywbのように読み取るように。 –

+0

私はこのページがDSpaceによってキャッシュされていると信じています。 Cocoonキャッシュをクリアする必要があるかもしれません。管理 - >コントロールパネル - > Java。 – terrywb

+0

設定ファイルや管理者設定から変更することは可能でしょうか? –

0

ありがとうございます。それは私も/[source]/dspace-xmlui-mirage2/src/main/webapp/xsl/preprocess/communitylist.xsl

+0

以前の回答は不完全なので、artifactbrowser/community-list.xsl(以前の回答から)とpreprocess/communitylist.xslの両方に行う必要のあるコード変更を記述した新しい回答を書くことをお勧めします。答えにコードサンプルを含めるようにしてください。 – terrywb

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 
関連する問題