xslt - How to customize feedback page Dspace XMLUI? -


how customize or change contact page of dspace 5.5 xmlui? files or configuration should change?

to add additional content page have 2 options:

one option customize contact.addbody. example:

public void addbody(body body) throws ... {     [...]     contact.addpara("for urgent matters call 555-666-777."); } 

use ide autocompletion see kind of elements can add. there equivalents basic html elements. see dri schema reference understand better.

the other option add content through xsl file:

first, create dspace-xmlui-mirage2/src/main/webapp/xsl/aspect/artifactbrowser/contact.xsl (assuming mirage 2 theme) following content:

<xsl:stylesheet     xmlns:i18n="http://apache.org/cocoon/i18n/2.1"     xmlns:dri="http://di.tamu.edu/dri/1.0/"     xmlns:xsl="http://www.w3.org/1999/xsl/transform" version="1.0"     xmlns="http://www.w3.org/1999/xhtml"     exclude-result-prefixes="i18n dri xsl">     <xsl:output indent="yes"/>     <xsl:template match="dri:div[@id='aspect.artifactbrowser.contact.div.contact']">         <xsl:apply-templates />         <!-- add here additional html: -->         <p>         urgent matters call 555-666-777.         </p>     </xsl:template> </xsl:stylesheet> 

then, add reference @ end of dspace-xmlui-mirage2/src/main/webapp/xsl/theme.xsl:

<xsl:import href="aspect/artifactbrowser/contact.xsl"/> 

Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -