SUNScholar/XMLUI Theme/M1/Page Content

Back to Mirage 1 Modification

Upload your own header logo
Upload your repositories logo to the following images folder. $HOME/ source /dspace/modules/xmlui/src/main/webapp/themes/Mytheme/images Overwrite or create a file called logo.png and make sure that the CSS stylesheets refer to your custom logo header image file.

Customise the front page introduction
Type the following. nano $HOME/ source /dspace/config/news-xmlui.xml

Use the following tags for content markup:
 * Bold text... 
 * Italic text... 
 * Title etc..
 * ..... for paragraphs.
 * BOAI Section 3 for hyperlinks to other online content.
 * 

DSpace XMLUI Elements

 * https://github.com/DSpace/DSpace/tree/master/dspace-xmlui/src/main/java/org/dspace/app/xmlui/wing/element

XML Tags Examples

 * https://github.com/DSpace/DSpace/blob/master/dspace/config/news-xmlui.xml
 * https://github.com/gsallen/unb-dspace/blob/master/dspace/config/news-xmlui.xml
 * https://github.com/gsallen/unb-dspace/blob/master/dspace/config/help-xmlui.xml
 * https://github.com/unb-libraries/unb-dspace/blob/master/riverrun/config/news-xmlui.xml
 * https://github.com/unb-libraries/unb-dspace/blob/master/riverrun/config/help-xmlui.xml

Customise the page footer
Type the following. nano $HOME/ source /dspace/modules/xmlui/src/main/webapp/themes/Mytheme/lib/xsl/core/page-structure.xsl Search for "footer" around line 557 approx by typing CTL+W and modify accordingly.

See modified example below.  DSpace 1.8.2 | Ubuntu 10.04 | Copyright&#160;&#169;&#160;Stellenbosch University

Enable public view of item counts
Edit the DSpace config file as follows: nano $HOME/ source /dspace/config/dspace.cfg Change the following to true: webui.strengths.show = true

webui.strengths.cache = true

Use unique icons for digital format types in item view
Go to the folder containing the item view xsl file. cd $HOME/ source /dspace/modules/xmlui/src/main/webapp/themes/Mytheme/lib/xsl/aspect/artifactbrowser Edit the following file. nano item-view.xsl Find the following section;    Copy and paste the following EXACTLY above the section mentioned above. Make sure to correctly indent items.   </xsl:when> <xsl:when test="current/@MIMETYPE = 'application/docx'"> <img alt="Icon" src="{concat($theme-path,'/images/icons/app-docx.png')}" style="height:{$thumbnail.maxheight}px;"/> </xsl:when> <xsl:when test="current/@MIMETYPE = 'application/html'"> <img alt="Icon" src="{concat($theme-path,'/images/icons/app-html.png')}" style="height:{$thumbnail.maxheight}px;"/> </xsl:when> <xsl:when test="current/@MIMETYPE = 'application/pdf'"> <img alt="Icon" src="{concat($theme-path,'/images/icons/app-pdf.png')}" style="height:{$thumbnail.maxheight}px;"/> </xsl:when> <xsl:when test="current/@MIMETYPE = 'application/pptx'"> <img alt="Icon" src="{concat($theme-path,'/images/icons/app-pptx.png')}" style="height:{$thumbnail.maxheight}px;"/> </xsl:when> <xsl:when test="current/@MIMETYPE = 'application/text'"> <img alt="Icon" src="{concat($theme-path,'/images/icons/app-text.png')}" style="height:{$thumbnail.maxheight}px;"/> </xsl:when> <xsl:when test="current/@MIMETYPE = 'application/xml'"> <img alt="Icon" src="{concat($theme-path,'/images/icons/app-xml.png')}" style="height:{$thumbnail.maxheight}px;"/> </xsl:when> <xsl:when test="current/@MIMETYPE = 'audio/mp3'"> <img alt="Icon" src="{concat($theme-path,'/images/icons/audio-mp3.png')}" style="height:{$thumbnail.maxheight}px;"/> </xsl:when> <xsl:when test="current/@MIMETYPE = 'audio/x-wav'"> <img alt="Icon" src="{concat($theme-path,'/images/icons/audio-wav.png')}" style="height:{$thumbnail.maxheight}px;"/> </xsl:when> <xsl:when test="current/@MIMETYPE = 'audio/x-ms-wma'"> <img alt="Icon" src="{concat($theme-path,'/images/icons/audio-wma.png')}" style="height:{$thumbnail.maxheight}px;"/> </xsl:when> <xsl:when test="current/@MIMETYPE = 'file/rar'"> <img alt="Icon" src="{concat($theme-path,'/images/icons/file-rar.png')}" style="height:{$thumbnail.maxheight}px;"/> </xsl:when> <xsl:when test="current/@MIMETYPE = 'file/sql'"> <img alt="Icon" src="{concat($theme-path,'/images/icons/file-sql.png')}" style="height:{$thumbnail.maxheight}px;"/> </xsl:when> <xsl:when test="current/@MIMETYPE = 'file/tar'"> <img alt="Icon" src="{concat($theme-path,'/images/icons/file-tar.png')}" style="height:{$thumbnail.maxheight}px;"/> </xsl:when> <xsl:when test="current/@MIMETYPE = 'file/tgz'"> <img alt="Icon" src="{concat($theme-path,'/images/icons/file-tgz.png')}" style="height:{$thumbnail.maxheight}px;"/> </xsl:when> <xsl:when test="current/@MIMETYPE = 'file/zip'"> <img alt="Icon" src="{concat($theme-path,'/images/icons/file-zip.png')}" style="height:{$thumbnail.maxheight}px;"/> </xsl:when> <xsl:when test="current/@MIMETYPE = 'image/bmp'"> <img alt="Icon" src="{concat($theme-path,'/images/icons/image-bmp.png')}" style="height:{$thumbnail.maxheight}px;"/> </xsl:when> <xsl:when test="current/@MIMETYPE = 'image/gif'"> <img alt="Icon" src="{concat($theme-path,'/images/icons/image-gif.png')}" style="height:{$thumbnail.maxheight}px;"/> </xsl:when> <xsl:when test="current/@MIMETYPE = 'image/jpeg'"> <img alt="Icon" src="{concat($theme-path,'/images/icons/image-jpeg.png')}" style="height:{$thumbnail.maxheight}px;"/> </xsl:when> <xsl:when test="current/@MIMETYPE = 'image/png'"> <img alt="Icon" src="{concat($theme-path,'/images/icons/image-png.png')}" style="height:{$thumbnail.maxheight}px;"/> </xsl:when> <xsl:when test="current/@MIMETYPE = 'image/tiff'"> <img alt="Icon" src="{concat($theme-path,'/images/icons/image-tiff.png')}" style="height:{$thumbnail.maxheight}px;"/> </xsl:when> <xsl:when test="current/@MIMETYPE = 'video/avi'"> <img alt="Icon" src="{concat($theme-path,'/images/icons/video-avi.png')}" style="height:{$thumbnail.maxheight}px;"/> </xsl:when> <xsl:when test="current/@MIMETYPE = 'video/flv'"> <img alt="Icon" src="{concat($theme-path,'/images/icons/video-flv.png')}" style="height:{$thumbnail.maxheight}px;"/> </xsl:when> <xsl:when test="current/@MIMETYPE = 'video/mov'"> <img alt="Icon" src="{concat($theme-path,'/images/icons/video-mov.png')}" style="height:{$thumbnail.maxheight}px;"/> </xsl:when> <xsl:when test="current/@MIMETYPE = 'video/mp4v-es'"> <img alt="Icon" src="{concat($theme-path,'/images/icons/video-mp4.png')}" style="height:{$thumbnail.maxheight}px;"/> </xsl:when> <xsl:when test="current/@MIMETYPE = 'video/mpeg'"> <img alt="Icon" src="{concat($theme-path,'/images/icons/video-mpeg.png')}" style="height:{$thumbnail.maxheight}px;"/> </xsl:when> <xsl:when test="current/@MIMETYPE = 'video/swf'"> <img alt="Icon" src="{concat($theme-path,'/images/icons/video-swf.png')}" style="height:{$thumbnail.maxheight}px;"/> </xsl:when> <xsl:when test="current/@MIMETYPE = 'video/webm'"> <img alt="Icon" src="{concat($theme-path,'/images/icons/video-webm.png')}" style="height:{$thumbnail.maxheight}px;"/> </xsl:when> <xsl:when test="current/@MIMETYPE = 'video/wmv'"> <img alt="Icon" src="{concat($theme-path,'/images/icons/video-wmv.png')}" style="height:{$thumbnail.maxheight}px;"/> </xsl:when>

Icon design by: http://www.iconarchive.com/artist/treetog.html

Download the icons compressed tarball (tar.gz) from the following web folder to your themes images folder as follows. cd $HOME/ source /dspace/modules/xmlui/src/main/webapp/themes/Mytheme/images

wget http://web.lib.sun.ac.za/style/icons/icons.tar.gz

tar -xzvf icons.tar.gz

rm icons.tar.gz

cd icons

chmod 0777 *

You can browse the individual icons by going to: http://web.lib.sun.ac.za/style/icons

Finally add the following common formats to DSpace.



Custom View Pages

 * https://www.mail-archive.com/dspace-tech@lists.sourceforge.net/msg15576.html
 * https://wiki.duraspace.org/pages/viewpage.action?pageId=19006388 - Modify item metadata display
 * https://wiki.duraspace.org/pages/viewpage.action?pageId=19006367 - Make author and subject links clickable

Simplified Community List
Serhiy, You should check your "sitemap.xmap" for "ArtifactBrowser Aspect" there are a few lines that say,

<map:transform type="CommunityBrowser"> <map:parameter name="depth" value="1"/> </map:transform> from:

<map:match pattern="community-list"> <map:transform type="CommunityBrowser"> <map:parameter name="depth" value="999"/> </map:transform> <map:serialize type="xml"/> </map:match>

To:

<map:match pattern="community-list"> <map:transform type="CommunityBrowser"> <map:parameter name="depth" value="1"/> </map:transform> <map:serialize type="xml"/> </map:match>