On Thu, Nov 5, 2009 at 11:07 AM, Thornton, Susan M.
(LARC-B702)[RAYTHEON TECHNICAL SERVICES COMPANY]
<[email protected]> wrote:
> Does anyone know whether it’s possible in DSpace 1.5.1 to have different
> labels for the same metadata field, depending upon what collection you’re
> in? For instance, if I’m displaying an Item in Collection A, I want the
> label for contributor.author to be “Author”, but in Collection B, I want the
> label for contributor.author to be “Contributor”.
Off the top of my head, possible but somewhat hacky in XMLUI. Get the
collection handle, then use it to switch between labels you've put in
messages.xml.
<dt>
<xsl:choose>
<xsl:when test="[XPath that gets coll handle, probably from
breadcrumbs?]==[handle]">
<i18n:text>xmlui.dri2xhtml.METS-1.0.item-author</i18n:text>
</xsl:when>
<xsl:when test="[other XPath]"=="[other handle]">
<i18n:text>xmlui.dri2xhtml.METS-1.0.item-contributor</i18n:text>
</xsl:when>
</dt>
That's the idea, anyway. There may well be less hacky ways to do it.
Dorothea
--
Dorothea Salo [email protected]
Digital Repository Librarian AIM: mindsatuw
University of Wisconsin
Rm 218, Memorial Library
(608) 262-5493
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech