On Wed, May 22, 2013 at 11:44 PM, Luis Rojas C. (CATIE) <
[email protected]> wrote:
> Hi Lighton, thanks for your response. Hoe i créate a invisible comunity?
You don't. You just don't display it. Here's a very rough example (where
you would replace comm with coll).
Here's how you hide the community list from the front page:
<xsl:template name="hide_homepage_community-list"
match="dri:div[@id='aspect.artifactbrowser.CommunityBrowser.div.comunity-browser']">
</xsl:template>
Here's how you display the number of items (strength) in a community
(assuming you're using Discovery):
<xsl:template name="community-count-85" match="dri:div[@id='comm85']">
<b>
<xsl:text> [</xsl:text>
<xsl:value-of
select="document('http://localhost:8080/solr/search/select/?q=location.comm:85+AND+search.resourcetype:2&version=2.2&start=0&rows=0&indent=on&facet=true')/response/result[@numFound]/@numFound"/>
<xsl:text>]</xsl:text>
</b>
</xsl:template>
With that template ready, you simply add this static list of communities
(or, in your case, top-level collections) to [dspace]/config/news-xmlui.xml
<div id="file.news.div.news" n="news"
rend="primary"><head><i18n:text>xyz.intro.head</i18n:text></head><p><i18n:text>xyz.intro.p.1</i18n:text></p><list>
<item><xref
target="http://example.com/handle/123456789/1"><i18n:text>xyz.intro.li.1</i18n:text></xref><div
id="comm86"></div></item>
<item><xref
target="http://example.com/handle/123456789/2"><i18n:text>xyz.intro.li.2</i18n:text></xref><div
id="comm88"></div></item>
<item><xref
target="http://example.com/handle/123456789/3"><i18n:text>xyz.intro.li.3</i18n:text></xref><div
id="comm85"></div></item></list><p><i18n:text>xyz.intro.p.2</i18n:text></p></div>
This should be enough to get you started.
Regards,
~~helix84
Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette