Hi Anthony,

Not sure I have understood correctly. Is it effectively a replacement
for ItemViewer with some additional functionality ? If so then you could
keep the name as ItemViewer and place it in the overlay module
dspace-source/dspace/modules/xmlui. Anything you put in there will
replace the original class from the dspace-xmlui module when you rebuild
the app with 'mvn package'.

Alternatively, factor out your new code and create a new Transformer
that can be 'scheduled' after the existing transformer, so...

<map:transform type="ItemViewer"/>
<map:transform type="YourNewClass"/>                               

Both your new class and the amended sitemap could be placed in the
overlay module.

Cheers.



On Fri, 2011-05-27 at 13:26 +0100, Antony Corfield [awc] wrote:
> I've created a new class similar to ViewItem.java that displays 'recommended 
> items' when a user views an item.
> 
> I've configured this by updating the sitemap.xmap for the ArtifactBrowser 
> Aspect to map ItemViewer to 'MyNewItemViewer' class
> 
> <map:transformer name="ItemViewer" 
> src="org.dspace.app.xmlui.aspect.artifactbrowser.MyNewItemViewer"/>
> 
> It's working fine..
> 
> However, I'm wondering if there is an easier way to add this functionality 
> and configure the aspect (as this is all packed up in the dspace-xmlui-api 
> jar)?!
> 
> 
> Thanks in advance,
> Antony
> --
> Antony Corfield
> Project developer
> AEIOU Project
> Tel. 01970 628724
> http://aeiouproject.blogspot.com/
> 
> 
> ------------------------------------------------------------------------------
> vRanger cuts backup time in half-while increasing security.
> With the market-leading solution for virtual backup and recovery, 
> you get blazing-fast, flexible, and affordable data protection.
> Download your free trial now. 
> http://p.sf.net/sfu/quest-d2dcopy1
> _______________________________________________
> Dspace-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-devel



------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to