Dear All,
I have added a template in my theme.xsl to override the default rendering
of the summaryList pattern which can be found on the community-list and
front page. I want to enclose or wrap this hierarchy list with div tags.
Please advise what part and what file do I need to edit. Please see
attachment of my theme's xsl. I want to put my starting div tag just after
the text that says "Select a community to browse its collections."
Thanks in advance.
Regards,
Elvi S. Nemiz
<?xml version="1.0" encoding="UTF-8"?>
<!--
The contents of this file are subject to the license and copyright
detailed in the LICENSE and NOTICE files at the root of the source
tree and available online at
http://www.dspace.org/license/
-->
<!--
TODO: Describe this XSL file
Author: Alexey Maslov
-->
<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="../dri2xhtml-alt/dri2xhtml.xsl"/>
<xsl:import href="lib/xsl/core/global-variables.xsl"/>
<xsl:import href="lib/xsl/core/page-structure.xsl"/>
<xsl:import href="lib/xsl/core/navigation.xsl"/>
<xsl:import href="lib/xsl/core/elements.xsl"/>
<xsl:import href="lib/xsl/core/forms.xsl"/>
<xsl:import href="lib/xsl/core/attribute-handlers.xsl"/>
<xsl:import href="lib/xsl/core/utils.xsl"/>
<xsl:import href="lib/xsl/aspect/general/choice-authority-control.xsl"/>
<xsl:import href="lib/xsl/aspect/administrative/administrative.xsl"/>
<xsl:import href="lib/xsl/aspect/artifactbrowser/item-list.xsl"/>
<xsl:import href="lib/xsl/aspect/artifactbrowser/item-view.xsl"/>
<xsl:import href="lib/xsl/aspect/artifactbrowser/community-list.xsl"/>
<xsl:import href="lib/xsl/aspect/artifactbrowser/collection-list.xsl"/>
<xsl:output indent="yes"/>
<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>
<!-- Adds treeview functionality to communities and collections page -->
<xsl:when test="descendant-or-self::dri:referenceSet/@n='community-browser' or ancestor::dri:referenceSet/@n='community-browser'">
<ul>
<xsl:apply-templates select="*[not(name()='head')]" mode="summaryList" />
</ul>
</xsl:when>
<xsl:when test="descendant-or-self::dri:referenceSet/@rend='hierarchy' or ancestor::dri:referenceSet/@rend='hierarchy'">
<ul>
<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>
</xsl:template>
</xsl:stylesheet>
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette