SUNScholar/XMLUI Theme/M1/Page Structure

Back to Mirage 1 Modification

Move front page search above front page community list
See:
 * http://sourceforge.net/p/dspace/mailman/message/31869335/
 * https://github.com/DSpace/DSpace/blob/master/dspace-xmlui/src/main/java/org/dspace/app/xmlui/aspect/discovery/SiteViewer.java
 * https://github.com/DSpace/DSpace/commit/4b6322d361fcfc49743e5ab476408f3ddeb0a208

Hi Kev,

There are a couple of ways you could do that.

I'll write one that I think requires the least amount of work:

Put this in your theme's XSL file:   And the following block to the appropriate place in [dspace]/config/news-xmlui.xml.

This one assumes you have Discovery enabled; if you don't, just use the appropriate snippet from DRI and change the "id" attribute.  Search DSpace Enter some text in the box below to search DSpace.   Go

Regards,

helix84

Remove duplicate "Community" browse link from the right navigation box
Go to the following folder: cd $HOME/ source /dspace/modules/xmlui/src/main/webapp/themes/Mytheme/lib/xsl/core Open the following file: nano navigation.xsl Add the following to the top of the file:

 

Remove duplicate "Search" input from the right navigation box
Go to the following folder: cd $HOME/ source /dspace/modules/xmlui/src/main/webapp/themes/Mytheme/lib/xsl/core Open the following file: nano navigation.xsl Go to line 55 approx and comment out as follows or you can simply delete the text:          <xsl:attribute name="onclick"> <xsl:text> var radio = document.getElementById(&quot;ds-search-form-scope-container&quot;); if (radio != undefined &amp;&amp; radio.checked) {                                   var form = document.getElementById(&quot;ds-search-form&quot;); form.action= </xsl:text> <xsl:text>&quot;</xsl:text> <xsl:value-of select="/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='contextPath']"/> <xsl:text>/handle/&quot; + radio.value + &quot;</xsl:text> <xsl:value-of select="/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='search'][@qualifier='simpleURL']"/> <xsl:text>&quot; ; </xsl:text> <xsl:text> }                               </xsl:text> </xsl:attribute> <xsl:if test="/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='focus'][@qualifier='container']"> <input id="ds-search-form-scope-all" type="radio" name="scope" value="" checked="checked"/> <i18n:text>xmlui.dri2xhtml.structural.search</i18n:text> <input id="ds-search-form-scope-container" type="radio" name="scope"> <xsl:attribute name="value"> <xsl:value-of select="substring-after(/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='focus'][@qualifier='container'],':')"/> </xsl:attribute> <xsl:choose> <xsl:when test="/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='focus'][@qualifier='containerType']/text = 'type:community'"> <i18n:text>xmlui.dri2xhtml.structural.search-in-community</i18n:text> </xsl:when> <xsl:otherwise> <i18n:text>xmlui.dri2xhtml.structural.search-in-collection</i18n:text> </xsl:otherwise>

</xsl:choose> </xsl:if> -->

Remove duplicate "Login" link above the top banner logo
Go to the following folder: cd $HOME/ source /dspace/modules/xmlui/src/main/webapp/themes/Mytheme/lib/xsl/core Open the following file: nano page-structure.xsl Go to line 337 approx and comment out as follows or you can simply delete the text: