On Sun, Dec 2, 2012 at 3:00 PM, emilio lorenzo <[email protected]> wrote:
> In dspace1.8 XMLUI AND Mirage Theme
> In the list generated when browsing an index, b.e.
> xmlui/browse?type=author, I would like to include an html tags
> (class="authority author") in some of the authors (those with authority
> key) ...changing those lines from
>
> <a href="browse?authority=20005&type=author">Author“s name</a> to
> <a href="browse?authority=20005&type=author" class="authority author>"
> Author“s name</a>
>
>
> I assume the code is in the
> /aspect/artifatcbrowser/ConfigurableBrowse.java but I cant find the
exact
> place.
> Any help would be apreciated
Hi Emilio,
I'm not sure this aspect is even used. Moreover, it depends on whether you
have Discovery enabled or not, so always mention that, too.
But here's a simple solution you can put into your theme:
<xsl:template
match="dri:div[@id='aspect.artifactbrowser.ConfigurableBrowse.div.browse-by-author-results']/dri:table/dri:row/dri:cell/dri:xref[contains(@target,
'browse?authority')]">
<a class="authority author">
<xsl:attribute name="href">
<xsl:value-of select="@target"/>
</xsl:attribute>
<xsl:value-of select="text()"/>
</a></xsl:template>
Regards,
~~helix84
Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
------------------------------------------------------------------------------
Keep yourself connected to Go Parallel:
DESIGN Expert tips on starting your parallel project right.
http://goparallel.sourceforge.net/
_______________________________________________
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