Thank you for your response. I believe the code below removes browsing 
capability from the sidebar (<div id="ds-options"></div>, not the body content 
block (<div id="body"></div>). 
    <xsl:template name="disable_frontpage_browse"
match="dri:list[@id='aspect.viewArtifacts.Navigation.list.browse']">
    </xsl:template>

What I really need to change is the "CommunityBrowser" section. How do I 
disable the community-browser section?


<h1 style="font-size: 242%;" class="ds-div-head">Communities in DSpace</h1>
<div id="aspect_artifactbrowser_CommunityBrowser_div_comunity-browser" 
class="ds-static-div primary">
<p class="ds-paragraph">Select a community to browse its collections.</p>
<ul>
<!-- External Metadata URL: 
cocoon://metadata/handle/123456789/1/mets.xml?sections=dmdSec,fileSec&fileGrpTypes=THUMBNAIL-->
<li class="ds-artifact-item odd">
<span xmlns:oreatom="http://www.openarchives.org/ore/atom/"; 
xmlns:ore="http://www.openarchives.org/ore/terms/"; 
xmlns:atom="http://www.w3.org/2005/Atom"; class="bold">
<a href="/xmlui/handle/123456789/1">xxxxx Collections</a>
</span>
</li>
<!-- External Metadata URL: 
cocoon://metadata/handle/123456789/9/mets.xml?sections=dmdSec,fileSec&fileGrpTypes=THUMBNAIL-->
<li class="ds-artifact-item even">
<span xmlns:oreatom="http://www.openarchives.org/ore/atom/"; 
xmlns:ore="http://www.openarchives.org/ore/terms/"; 
xmlns:atom="http://www.w3.org/2005/Atom"; class="bold">
<a href="/xmlui/handle/123456789/9">xxxxx Publications</a>
</span>
</li>
</ul>
</div>

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of helix84
Sent: Wednesday, April 18, 2012 10:29 AM
To: Alain Tschanz
Cc: dspace-tech
Subject: Re: [Dspace-tech] Remove Communities in DSpace and add advanced search 
option on home page in xmlui/Manakin

On Wed, Apr 18, 2012 at 16:17, Alain Tschanz <[email protected]> wrote:
> Pardon my ignorance, but I have another question. I created a new theme. Do I 
> have to add your code to the xsl file of the new theme (<theme>.xsl) or can I 
> add it to structural.xsl?

No problem, everyone started once.

Here are some general tips on creating XMLUI themes:
https://wiki.duraspace.org/display/DSDOC18/XMLUI+Configuration+and+Customization
https://wiki.duraspace.org/display/DSPACE/Create+a+new+theme+(Manakin)
http://www.slideshare.net/tdonohue/making-dspace-xmlui-your-own

I strongly recommend to leave the distributed themes alone unchanged so that 
you won't have to do unnecessary merges on DSpace updates. So you should just 
use regular overriding and your theme should 1) include its parent theme and 2) 
contain only templates it overrides.

Here's a basic <theme>.xsl that overrides the Manakin theme:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:i18n="http://apache.org/cocoon/i18n/2.1";
        xmlns:dri="http://di.tamu.edu/DRI/1.0/";
        xmlns:mets="http://www.loc.gov/METS/";
        xmlns:xlink="http://www.w3.org/TR/xlink/";
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0"
        xmlns:dim="http://www.dspace.org/xmlns/dspace/dim";
        xmlns:xhtml="http://www.w3.org/1999/xhtml";
        xmlns:mods="http://www.loc.gov/mods/v3";
        xmlns:dc="http://purl.org/dc/elements/1.1/";
        xmlns="http://www.w3.org/1999/xhtml";
        exclude-result-prefixes="i18n dri mets xlink xsl dim xhtml mods dc">

    <xsl:import href="../Mirage/Mirage.xsl"/>

    <xsl:output indent="yes"/>

<!-- your overrides go here -->

</xsl:stylesheet>

Since there are also other resources apart from XSL in a theme (and Mirage 
expects them in certain relative location), you need to copy
those:
cp -r Mirage/images yourtheme
mkdir yourtheme/lib
cp -r Mirage/lib/css yourtheme/lib/
cp -r Mirage/lib/js yourtheme/lib/

This is from the top of my head, let me know if you run into any problems.

Regards,
~~helix84
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to