DSpace 5.5 XMLUI customizing

235 views
Skip to first unread message

Aldo

unread,
Aug 8, 2016, 10:15:26 PM8/8/16
to DSpace Technical Support
Hi all,
I'm new to DSpace and DSpace XMLUI. How do I get rid of the right hand side menu (Browse, My Account, Discover and RSS Feeds?
Any help will be appreciated.

Regards,
Aldo

Eddilbert Macharia

unread,
Aug 16, 2016, 2:33:29 AM8/16/16
to DSpace Technical Support
Hello Aldo,

I think you need to do a recompilation of your dspace to get rid of that,

here is what i did. (Im assuming your using mirage 2, but it should be also straight forward on the other themes i.e you just need to locate the section that outputs the sidebar)
.
on you dspace source folder copy the file :

[dspace-source]/dspace-xmlui-mirage2/src/main/webapp/xsl/core/page-structure.xml

and place it in at:

[dspace-source]/dspace/modules/xmlui-mirage2/src/main/webapp/themes/xsl/core/page-structure.xml

Now on the copied file around line 100 you will see this div, this is the one that outputs your content and the sidebar


<div id="main-container" class="container">

<div class="row row-offcanvas row-offcanvas-right">
<div class="horizontal-slider clearfix">
<div class="col-xs-12 col-sm-12 col-md-9 main-content">
<xsl:apply-templates select="*[not(self::dri:options)]"/>

<div class="visible-xs visible-sm">
<xsl:call-template name="buildFooter"/>
</div>
</div>
<div class="col-xs-6 col-sm-3 sidebar-offcanvas" id="sidebar" role="navigation">
<xsl:apply-templates select="dri:options"/>
</div>

</div>
</div>

At around line 111, you will get this code which is responsible for the sidebar

<div class="col-xs-6 col-sm-3 sidebar-offcanvas" id="sidebar" role="navigation">
<xsl:apply-templates select="dri:options"/>
</div>

remove it or comment it out.

Then recompile dspace.

Aldo

unread,
Aug 16, 2016, 10:31:13 PM8/16/16
to DSpace Technical Support
Hi Eddilbert,
thank you very much for your help. I am not using Mirage 2 but I'm using a Mirage based theme. So far I am unable to locate the section that outputs the sidebar but I'll keep trying. 

Regards,
Aldo

Eddilbert Macharia

unread,
Aug 17, 2016, 1:50:04 PM8/17/16
to DSpace Technical Support
On Mirage, it's on the navigation.xsl just try disabling it's inclusion in the file [dspace source ]/dspace-xmlui/src/main/webapp/themes/Mirage/Mirage.xsl

Comment out the line that imports
Navigation.xsl.


Then recompile.

Aldo

unread,
Aug 18, 2016, 12:26:35 AM8/18/16
to DSpace Technical Support
Thanks for that Eddilbert,
that did work for my setup. I was able to get rid of most of the side bar by editing the file
[dspace-sourcce]/dspace/modules/xmlui/src/main/webapp/themes/dri2xhtml-alt/dri2xhtml.xsl

and uncommenting <xsl:import href="core/navigation.xsl"/>

and then recompiling DSpace.

Now I need to get rid of the Discover header that doesn't want to go away :)

Regards,
Aldo
Reply all
Reply to author
Forward
0 new messages