Hello Helix,
I actually override it accidentally when I override the template for Item
List, (<xsl:template match="dim:dim" mode="itemSummaryList-DIM-metadata">).
Thanks for the info, if ever I want to render "Related Items" differently
from Item List.
Regards
On Wed, Aug 7, 2013 at 6:17 AM, helix84 <[email protected]> wrote:
> On Mon, Aug 5, 2013 at 8:09 AM, Nemiz, Elvi <[email protected]>
> wrote:
> > The templates inside discovery.xsl are used to render the search results
> for
> > discovery, I would like to know which file was used to render the
> formatting
> > in "Related Items". If none, how can I override it? Thanks in advance and
> > regards.
>
> Here's an example of the Related Items widget taken from DRI:
>
> <div id="aspect.discovery.RelatedItems.div.item-related-container"
> n="item-related-container"> <div
> id="aspect.discovery.RelatedItems.div.item-related" rend="secondary related"
> n="item-related"> <head>Related items</head> <p>
> Showing items related by title, author, creator and subject. </p>
> <referenceSet
> id="aspect.discovery.RelatedItems.referenceSet.item-related-items"
> rend="related-items" n="item-related-items" type="summaryList">
> <reference repositoryID="10673" type="DSpace Item"
> url="/metadata/handle/10673/225/mets.xml"/> <reference
> repositoryID="10673" type="DSpace Item"
> url="/metadata/handle/10673/242/mets.xml"/> <reference
> repositoryID="10673" type="DSpace Item"
> url="/metadata/handle/10673/259/mets.xml"/> </referenceSet> </div></div>
>
>
> Here you can see that it's just generic elements like referenceSet, not
> specific to Related Items. What you probably want to do is override the
> whole related items container and do your own rendering (if you tried to
> modify how referenceSet is rendered, it would have effect also in other
> unrelated places):
>
> <xsl:template name="my-related-items"
> match="dri:div[@id='aspect.discovery.RelatedItems.div.item-related-container']">
> <!-- for-each reference, render reference --></xsl:template>
>
>
> Regards,
> ~~helix84
>
> Compulsory reading: DSpace Mailing List Etiquette
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette