Good day,

I am theming our implementation of Dspace, have done a lot. Working through 
a tutorial in this link 
https://wiki.duraspace.org/pages/viewpage.action?pageId=19006017#app-switcher , 
I have managed to get the Community list to expand and collapse.
Although the tutorial uses character I went a step further and used images 
which works well on the front page and the "community-list" page. However, 
if I select a community with sub-communities; the images appear as broken 
links in the sub-communities list.

I have an xsl algorithm I want to employ to make the only appear in the 
front and communities-list pages (see attached code snippet). 

<xsl:template name="communitySummaryList-DIM">
        <xsl:variable name="data" select=
"./mets:dmdSec/mets:mdWrap/mets:xmlData/dim:dim"/>
 <xsl:if test="substring(@OBJID, 2, 12) = 'xmlui/handle'">
 <div class="ListPlus" style="display: none; font:bold; font-size:20px;">
 <img src="themes/Mirage/images/Folder-Closed-Green-icon.png"/>
 </div>
 <div class="ListMinus" style="display: inline-block; font:bold; font-size:
20px;">
 <img src="themes/Mirage/images/folder-green-open-icon.png"/>
 </div>
 </xsl:if>

I want to use xsl test fuction combined with either the 
base-uri()
or 
document-uri()

functions to get the current page URL, if the page URL contains the word "
*handle*" I will know the user has selected a particular community, so the 
image for expanding and collapsing the sub-community should not be 
displayed.

So my question then is, does Dspace have it's own equivalent of the two 
functions above or is there a list of xsl functions specific to dspace?

Many thanks
~Vusani

-- 
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to