On Thu, Aug 30, 2012 at 2:22 AM, Mushashu Mwansa Lumpa
<[email protected]> wrote:
> On the summary item view (actually even the detailed item view), I would
> like to modify the section that lists the collection(s) to which a given
> item belongs to. Among other things, I would like to also add the owning
> community information. which .xsl file should i look at that handles that? I
> have already looked at the item-view.xsl but it looks to me, it is not the
> place that holds that information.
Hi Mushashu,
please, always state which DSpace version, interface (JSPUI/XMLUI) and
XMLUI theme you're using.
You're mentioning item-view.xsl, so I'm judging Mirage (the other
possibility is dri2xhtml-alt).
The owning community is already in the breadcrumb trail (<xsl:template
match="dri:trail"> in Mirage/lib/xsl/core/page-structure.xsl), so I
assume you mean the list under "This item appears in the following
Collection(s)". This is the template in
dri2xhtml-alt/aspect/artifactbrowser/common.xsl (bear in mind that
Mirage build upon and overrides dri2xhtml-alt).
<xsl:template match="dri:referenceSet[@type = 'detailList']" priority="2">
<xsl:apply-templates select="dri:head"/>
<ul class="ds-referenceSet-list">
<xsl:apply-templates select="*[not(name()='head')]"
mode="detailList"/>
</ul>
</xsl:template>
and
<xsl:template match="dri:reference" mode="detailList">
<xsl:variable name="externalMetadataURL">
<xsl:text>cocoon:/</xsl:text>
<xsl:value-of select="@url"/>
<!-- No options selected, render the full METS document -->
</xsl:variable>
<xsl:comment> External Metadata URL: <xsl:value-of
select="$externalMetadataURL"/> </xsl:comment>
<li>
<xsl:apply-templates
select="document($externalMetadataURL)" mode="detailList"/>
<xsl:apply-templates />
</li>
</xsl:template>
Regards,
~~helix84
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech