Skip to content

Instantly share code, notes, and snippets.

@CliffordAnderson
Created December 29, 2013 19:46
Show Gist options
  • Save CliffordAnderson/8174046 to your computer and use it in GitHub Desktop.
Save CliffordAnderson/8174046 to your computer and use it in GitHub Desktop.
Provides a hook for CSS/JQuery effects to the top level elements in DSpace community lists
<!-- Provides class hook for accordion effect in community-list -->
<xsl:template name="top-browse-only" match="dri:referenceSet[@rend='hierarchy']">
<xsl:for-each select="dri:reference">
<xsl:variable name="item-dim" select="document(concat(confman:getProperty('dspace.baseUrl'), @url))//dim:dim"/>
<div class="artifact-description top-level-nav">
<div class="artifact-title">
<a href="{concat('/xmlui/handle', substring-after($item-dim/dim:field[@element='identifier'], 'http://hdl.handle.net'))}">
<xsl:value-of select="$item-dim/dim:field[@element='title']"/>
</a>
</div>
</div>
<xsl:apply-templates/>
</xsl:for-each>
</xsl:template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment