Dear all,

We're trying to create some info pages to our XMLUI 1.7.0 repository using
the Mirage theme.
The problem probably resides in my poor knowledge of XSLT.

1) We've sucessfully added links to the side menu, by adding a link inside
the <xsl:template match="dri:options">  eg:
<div id="ds-search-option" class="ds-option-set">
<a>
<xsl:attribute name="href">
<xsl:value-of select="/dri:document/dri:
meta/dri:pageMeta/dri:metadata[@element='contextPath'][not(@qualifier)]"/>
<xsl:text>/about</xsl:text>
</xsl:attribute>
<i18n:text>xmlui.dri2xhtml.structural.informacoes.sobre</i18n:text>
</a><br/>
[etc...]


2) We editted the Mirage.xsl overriding the <xsl:template match="dri:body">
with conditionals for handling the call for the info pages  eg:
<xsl:template match="dri:body">
<div id="ds-body">
<xsl:choose>
<xsl:when
test="/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='request'][@qualifier='URI']='about'">
<div>
<h1>ABOUT PAGE - THIS IS A SIMPLE TEST</h1>
<p>Lorem Ipsum dolor sit amet</p>
</div>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates />
</xsl:otherwise>
[etc...]


Question 1) Everything is ok, except for the page title. When we click the
"Communities and collections" link, the title of the browser correctly shows
"Communities", but with our page we get a "Page not found" title, despite
the fact that the contents are shown correctly. Even when we include a html
page instead of hardcoding it in the xsl (eg. see code below), the contents
are showing correctly but the <title> of the html appears not to be
interpreted.

<xsl:when
test="/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='request'][@qualifier='URI']='about'">
<p><xsl:copy-of select="document('./Reference/lib/about.html')" /></p>
</xsl:when>


Question 2) The breadcrumbs also don't appear when accessing those info
pages we've created.


Any help will be very much appreciated.

Thank you
Andre Assada
------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to