Hello,

I'm trying to add a link to the beginning of the breadcrumb trail, but I only 
seem to be able to over-ride the default trail.

I'm working on DSpace 1.6.2, and using instructions I found from Tim Donohue 
(http://www.slideshare.net/tdonohue/making-dspace-15-your-own-customizations-via-overlays)
  and Conal Tuohy (http://osdir.com/ml/db.dspace.user/2008-02/msg00020.html).  

Both sets of instructions are for v. 1.5.x, and I've attempted to use what I 
understand the current best practices to be for placing the new code.   So, 
instead of placing the two new files (sitemap.xmap and modify-trail.xsl; full 
code below) beside the default aspects, I've created a new directory, 
[dspace-source]/dspace/modules/xmlui/src/main/resources/aspects/ulBreadcrumbAspect.

Then, I've updated [dspace-source]/dspace/config/xmlui.xconf to include the new 
aspect (added at the end of the default list.)

When I rebuild, though, the trail only ever contains the link from the new 
aspect.  So, I know I'm missing something, but I'm stymied as to what it might 
be.

Any ideas will be greatly appreciated!

Brian Freels-Stendel
University of New Mexico Libraries



sitemap.xmap file:

<?xml version="1.0"?>

<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0";>
 <map:pipelines>
  <map:pipeline>
   <map:generate/>
   <map:transform src="modify-trail.xsl"/>
   <map:serialize type="xml"/>
  </map:pipeline>
 </map:pipelines>
</map:sitemap>


modify-trail.xsl file:

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
xmlns:dri="http://di.tamu.edu/DRI/1.0/";>

<xsl:template match="*">
        <xsl:copy>
                <xsl:copy-of select="@*"/>
                <xsl:apply-templates/>
        </xsl:copy>
</xsl:template>

<xsl:template match="dri:pageMeta">
        <xsl:copy>
                <xsl:copy-of select="@*"/>
                <dri:trail target="http://elibrary.unm.edu/";>Library 
Home</dri:trail>
        </xsl:copy>
</xsl:template>

</xsl:stylesheet>


------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to