Helix, After looking over my changes, I did have to add this to the utils.xsl file:
<xsl:choose> <xsl:when test="/dri:document/dri:body/dri:div[@id='aspect.artifactbrowser.CommunityBrowser.div.comunity-browser']"> <ul class="collapsibleList"> <li> <xsl:attribute name="class"> <xsl:text>ds-artifact-item </xsl:text> <xsl:choose> <xsl:when test="@type='DSpace Community'"> <xsl:text>community </xsl:text> </xsl:when> <xsl:otherwise> <xsl:text>collection </xsl:text> </xsl:otherwise> </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> </ul> </xsl:when> <xsl:otherwise> Do you think it is causing your code some problems. When I leave you code out this works, but when I have your code in it doesn't. Thanks Keith On Thu, Aug 13, 2015 at 11:01 AM, helix84 <heli...@centrum.sk> wrote: > The code I sent you tries to be as non-invasive as possible. When you add > the template, the only the DRI output of the homepage should change but not > the DRI output of the community-list. Therefore, if your collapse/expand > widgets are just css/js, they should continue to work. If, however, they do > any modifications to XSLT, that may change how the community-list DRI is > rendered and it's possible my snippet interferes with it somehow. Check > whether there are any differences in community-list DRI between how Mirage > renders it and your theme renders it. > > On Thu, Aug 13, 2015 at 4:25 PM, Keith Jones <mad...@udel.edu> wrote: > >> Helix, >> >> Thanks for the help, the code is working and will remove the list from >> the home page. >> >> Here is my problem. >> Currently in production we are using collapsible list for the community >> browse page, which you can see here: >> http://udspace.udel.edu/community-list. This is in version 3.1 using the >> XMLUI. I was able to remove the community list from the main page but >> commenting out the template call in the xslt, I did not use the overriding >> template method. >> >> When I use the code provided, the collapsible list will partly work, but >> the arrow icons do not appear, when viewing the community list. >> >> Thanks >> Keith >> >> On Thu, Aug 13, 2015 at 9:07 AM, helix84 <heli...@centrum.sk> wrote: >> >>> Try this: >>> >>> <xsl:template name="hide_homepage_community-list" >>> match="dri:div[@id='aspect.artifactbrowser.CommunityBrowser.div.comunity-browser']"> >>> <xsl:if >>> test="/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='request'][@qualifier='URI']/text()"> >>> <xsl:apply-templates /> >>> </xsl:if> >>> </xsl:template> >>> >>> It hides the community browser unless the request URI is non-empty (like >>> "/community-list"). >>> >>> >>> Regards, >>> ~~helix84 >>> >>> Compulsory reading: DSpace Mailing List Etiquette >>> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette >>> >>> >> >
------------------------------------------------------------------------------
_______________________________________________ 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