I found some old code that implemented something like this for XMLUI. This
solution is not as elegant as the site that you referenced, but it might be
a helpful start.
*XSLT to identify the nesting level within the community/collection
hierarchy.*
<xsl:template match="dri:referenceSet[@type = 'summaryList']"
priority="2">
<xsl:apply-templates select="dri:head"/>
<!-- Here we decide whether we have a hierarchical list or a flat
one -->
<xsl:choose>
<xsl:when
test="descendant-or-self::dri:referenceSet/@rend='hierarchy' or
ancestor::dri:referenceSet/@rend='hierarchy'">
<ul>
<xsl:attribute name="class">
<xsl:text>hier-</xsl:text>
<xsl:number
value="count(ancestor::dri:referenceSet)"/>
</xsl:attribute>
<xsl:apply-templates select="*[not(name()='head')]"
mode="summaryList"/>
</ul>
</xsl:when>
<xsl:otherwise>
<ul class="ds-artifact-list">
<xsl:apply-templates select="*[not(name()='head')]"
mode="summaryList"/>
</ul>
</xsl:otherwise>
</xsl:choose>
*Javascript to show/hide nodes*
jQuery(document).ready(function(){
if
(jQuery("#aspect_artifactbrowser_CommunityBrowser_div_comunity-browser").is("*"))
{
jQuery("#aspect_artifactbrowser_CommunityBrowser_div_comunity-browser").find("ul.hier-3").each(function(){
if ($(this).find("li").length > 3) {
$(this).addClass("ccfilter").hide();
}
});
jQuery("button.ccfilter").remove();
var foo = $("<button class='ccfilter'>+</button>");
jQuery("ul.ccfilter").parent("span").before(foo);
jQuery("button.ccfilter").click(function(){
$(this).next("span").children("ul.ccfilter").toggle();
if ($(this).next("span").children("ul.ccfilter:visible").is("*")) {
$(this).text("-");
} else {
$(this).text("+");
}
})
}
});
On Thu, Feb 12, 2015 at 9:36 AM, Fernando Casas Osorio <ferca...@hotmail.com
> wrote:
> Regards,
>
> As I can configure DSpace to the list of communities and collections
> appear grouped as in this DSpace?
>
> http://dspace.mit.edu/community-list
>
> Thanks for your help.
>
> Fernando Casas Osorio
>
> ------------------------------
> From: ferca...@hotmail.com
> To: dspace-tech@lists.sourceforge.net
> Date: Mon, 9 Feb 2015 07:54:30 -0500
> Subject: [Dspace-tech] COMMUNITY LIST
>
>
> Regards,
>
> Can someone help me telling me as I set "Communities & Collections" with
> drill drown?
> I hope these appear as tree but not open at all levels
>
> Thanks for your help.
>
> Fernando Casas Osorio
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming. The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is
> your hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net/
> _______________________________________________ DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette:
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming. The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is
> your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> List Etiquette:
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
--
Terry Brady
Applications Programmer Analyst
Georgetown University Library Information Technology
https://www.library.georgetown.edu/lit/code
425-298-5498 (Seattle, WA)
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette