Hi All
 
Problem resolved, much appreciated.
 
 
Regards
Solomon

>>> helix84 <heli...@centrum.sk> 2013/03/06 02:16 PM >>>
You can use the following template to hide the community with handle 
"123456789/123":

<xsl:template match="dri:reference" mode="summaryList">    <xsl:variable 
name="externalMetadataURL">        <xsl:text>cocoon:/</xsl:text>        
<xsl:value-of select="@url"/>        <!-- Since this is a summary only grab the 
descriptive metadata, and the thumbnails -->        
<xsl:text>?sections=dmdSec,fileSec&amp;fileGrpTypes=THUMBNAIL</xsl:text>        
<!-- An example of requesting a specific metadata standard (MODS and QDC 
crosswalks only work for items)-> <xsl:if test="@type='DSpace Item'"> 
<xsl:text>&amp;dmdTypes=DC</xsl:text> </xsl:if>-->    </xsl:variable>    
<xsl:comment> External Metadata URL: <xsl:value-of 
select="$externalMetadataURL"/> </xsl:comment>    <xsl:variable 
name="authenticated" select="/dri:document/dri:meta/dri:userMeta/@authenticated 
= 'yes'" />    <xsl:if test="$authenticated or (@url != 
'/metadata/handle/123456789/123/mets.xml')">        <li>            
<xsl:attribute name="class">                <xsl:text>ds-artifact-item 
</xsl:text>                <xsl:choose>                    <xsl:when 
test="contains(@type, 'Community')">                        <xsl:text>community 
</xsl:text>                    </xsl:when>                    <xsl:when 
test="contains(@type, 'Collection')">                        
<xsl:text>collection </xsl:text>                    </xsl:when>                
</xsl:choose>                <xsl:choose>                    <xsl:when 
test="position() mod 2 = 0">even</xsl:when>                    
<xsl:otherwise>odd</xsl:otherwise>                </xsl:choose>            
</xsl:attribute>            <xsl:apply-templates 
select="document($externalMetadataURL)" mode="summaryList"/>            
<xsl:apply-templates />        </li>    </xsl:if></xsl:template>
Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

On Wed, Mar 6, 2013 at 12:47 PM, Solomon Kapfunde <skapfu...@uwc.ac.za> wrote:


Hi Helix
Sorry for the Inadequate information, I am using Dspace Version 1.8, Mirage 
theme on XMLUI Interface, I can make the Sub-community inaccessible from the 
roles definitions but I don't want anonymous viewers to see it as well.
Regards
Solomon


>>> helix84 <heli...@centrum.sk> 2013/03/06 01:32 PM >>>

On Wed, Mar 6, 2013 at 12:04 PM, Solomon Kapfunde <skapfu...@uwc.ac.za> wrote:
> I would like to hide a sub-community(Research) so that when Anonymous
> visitors click on the parent Community, the Research sub-community is not
> visible on the sub-communities list, anyone done this before?

DSpace version, interface and theme?

Is it necessary for it to be invisible? Can't it just be inaccessible?

Is it enough to hide it from the web interface or do you also need to
hide it from any other interface?


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
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

Reply via email to