Skip to content

Commit

Permalink
[VSIM-49] come back sidebar plz (DSpace#44)
Browse files Browse the repository at this point in the history
* [VSIM-49] add back the sidebar for item pages

* [VSIM-49] show the sidebar for any admin on all pages
  • Loading branch information
hardyoyo committed Nov 28, 2018
1 parent b160e40 commit 3130034
Showing 1 changed file with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,15 +206,23 @@
<!-- VSIM-40 this is the sidebar we need to "turn off" for all home pages (main, collection and community) -->
<div class="col-xs-6 col-sm-3 sidebar-offcanvas" id="sidebar" role="navigation">

<!-- SHOULD WE SHOW THE SIDEBAR? -->
<xsl:choose>
<xsl:when test="string-length($request-uri)&gt;0 and not (starts-with($request-uri, 'pages/')) and not ($containerType='type:community' or $containerType='type:collection')">

<!-- if there is an admin panel, then this is an admin user, ALWAYS show the sidebar for an admin user -->
<xsl:when test="//dri:xref[@target='/xmlui/admin/panel']">
<xsl:apply-templates select="dri:options"/>
</xsl:when>

<!-- if we're not on the home page, and not on a community or collection home page, or if this is an item page, show the sidebar -->
<xsl:when test="(string-length($request-uri)&gt;0 and not (starts-with($request-uri, 'pages/')) and not ($containerType='type:community' or $containerType='type:collection')) or $containerType='type:item'">
<xsl:apply-templates select="dri:options"/>
</xsl:when>


<!-- otherwise, don't show the sidebar -->
<xsl:otherwise>
</xsl:otherwise>
</xsl:otherwise>

</xsl:choose>

</div>
Expand Down

0 comments on commit 3130034

Please sign in to comment.