Hi, Tim, thanks for the reply! I can confirm that I do have a
sitemap.xmap at:

[dspace-src]/dspace/modules/xmlui/src/main/resources/aspects/Trail/

and that its contents look exactly the same as the sample code in your
presentation (Conal Tuohy's Trail aspect, updated for DSpace 1.5).

Here's one thing I think might be causing a wrinkle. We have modified
parts of the dspace-api, in order to apply the Shibboleth patch. Do you
think there would be a conflict in the overlay system if our directory
structure looked like this?

[dspace-src]
  dspace/
    ...normal dspace tree past here
  dspace-api/
    src/
      main/
        java/
          au/
          org/
          overview.html
        resources/  <--- possible problem?
          org/
          Messages.properties

--Hardy  

> -----Original Message-----
> From: Tim Donohue [mailto:[email protected]] 
> Sent: Thursday, February 19, 2009 9:28 AM
> To: Pottinger, Hardy J.
> Cc: DSpace Tech
> Subject: Re: [Dspace-tech] help installing an aspect using mvn overlay
> 
> Hardy,
> 
> I've actually done quite a few "overlays" of aspects recently.  First 
> off, it's worth being explicit that there are two types of 
> aspect overlays:
> 
> (1) Overlay an existing aspect to modify it
> (2) Overlay to create a brand new aspect
> 
> It sounds like you are attempting to do the latter, as there is no 
> "Breadcrumb Trail" aspect in Dspace by default.   I've done 
> both of the 
> above before successfully, but here's some general tips on using 
> overlays to create a new aspect (#2 above):
> 
> Locally, for the Illinois IDEALS system, I've created our own custom 
> "IDEALS" aspect setup like so.
> 
> The Main "IDEALS" Aspect folder is setup at:
> [dspace-src]/dspace/modules/xmlui/src/main/resources/aspects/IDEALS/
> 
> Under that folder I created a "sitemap.xmap" which initializes that 
> Aspect appropriately.  In my case, this sitemap.xmap just loads XSLTs 
> from that folder, since our IDEALS aspect is just XSLT based.  But, a 
> sitemap.xmap can just as easily call Java code (you may want 
> to look at 
> the existing aspects' sitemap.xmap files for examples of this).
> 
> Every aspect *must* have a sitemap.xmap, so when you create a *new* 
> aspect, you need to create an appropriate sitemap.xmap.  (One 
> exception: 
> if you were merely changing the functionality of an existing 
> aspect this 
> sitemap.xmap would already exist, so you wouldn't need to 
> included it in 
> your overlay unless you had explicit changes to make to it).
> 
> Once you've setup your Aspect sitemap.xmap, you should then 
> be able to 
> enable it in the xmlui.xconf as you had mentioned:
> 
> <aspect name="IDEALS" path="resource://aspects/IDEALS/" />
> 
> (The key here is that the "path" must specify the path *under* 
> /src/main/resources/....So, for my above example that subpath was 
> "/aspects/IDEALS/")
> 
> Just to let you know...I'm planning on submitting a proposal for Open 
> Repositories 2009 (in Atlanta) for an updated version of that 
> previous 
> presentation you found (as I've learned a lot more since then).  I'm 
> hoping to generate some better examples and documentation out 
> of that talk.
> 
> Let me know if you are still having problems.  It sounds like 
> you may be 
> missing the sitemap.xmap...  Also, feel free to ask questions if you 
> really aren't sure how to setup the sitemap.xmap.
> 
> - Tim
> 
> -
> Tim Donohue
> Research Programmer, IDEALS
> http://www.ideals.uiuc.edu/
> University of Illinois
> [email protected] | (217) 333-4648
> 
> 
> Pottinger, Hardy J. wrote:
> > Hi, I am starting out small and just trying to implement 
> the "Breadcrumb
> > Trail" aspect overlay, as demonstrated by Tim Donohue in 
> his excellent
> > (and very useful) presentation "Customizing DSpace 1.5 with Basic
> > Overlays"
> > 
> (http://www.dspace.org/images/Training_Materials/or2008-1.5tra
> ining.pdf)
> > . However, after setting everything up, running "mvn 
> package" and "ant
> > update init-configs" I am getting the following error:
> > 
> > Resource not found
> > 
> > org.apache.excalibur.source.SourceNotFoundException:
> > resource://aspects/Trail/sitemap.xmap
> > 
> > I have double-checked all my typing, the location of files 
> in the source
> > tree, run a mvn clean, wiped the whole tomcat folder clean, 
> repackaged
> > and run "ant update init-configs", all to no avail. I 
> continue to see
> > the "Resource not found" error.
> > 
> > Since Tim's presentation is the only explicit mention of 
> aspect overlays
> > in any DSpace-related materials, I'm heading to this list to see if
> > anyone else has tried this out? Does anyone have any tips 
> for something
> > I might have missed? Do aspect overlays really go in
> > dspace/modules/xmlui/src/main/resources/aspects/? Are they really
> > configured in xmlui.xconf as <aspect name="Trail"
> > path="resource://aspects/Trail/" />?
> > 
> > --
> > HARDY POTTINGER <[email protected]>
> > University of Missouri Library Systems
> > http://lso.umsystem.edu/~hardy/
> > "No matter how far down the wrong road you've gone,
> > turn back." --Turkish proverb
> > 
> > 
> --------------------------------------------------------------
> ----------------
> > Open Source Business Conference (OSBC), March 24-25, 2009, 
> San Francisco, CA
> > -OSBC tackles the biggest issue in open source: Open 
> Sourcing the Enterprise
> > -Strategies to boost innovation and cut costs with open 
> source participation
> > -Receive a $600 discount off the registration fee with the 
> source code: SFAD
> > http://p.sf.net/sfu/XcvMzF8H
> > _______________________________________________
> > DSpace-tech mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/dspace-tech
> > 
> 
> -
> 

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to