Hi Andrea,
Success! I'm a bit new to XSL, so I'm still fumbling my way around how it
works structurally. This was a tremendous help.
Do you think the same principle could apply for <a> tags? I would like to
link each author to his/her designation (eg. professor, dean, etc) and
email address. I'm not sure how to do this in situations where there is
more than one author, so my makeshift solution is to create additional
metadata fields.
So could I, for instance, enter this into a metadata field:
Jane Doe, Professor (Enter key, or $#xa)
jdoe@...
Then, create a new xsl:template within item-view.xsl that begins an open
<a> tag at the Enter key, so that it codes:
<a href="mailto:
before the email address:
jdoe@...
and then close the <a> tag:
">send email</a>
So that it finally codes:
<a href="mailto:jdoe@... email</a>
And appears as:
Jane Doe (send email <jdoe@...>)
Any thoughts?
Many thanks,
David
On Thu, Mar 7, 2013 at 6:13 PM, Andrea Schweer <schweer@...:
> Hi David,
>
>
> On 08/03/13 11:28, David Arromba wrote:<https://wiki.duraspace.org/pages/viewpage.action?pageId=19006441>
>
>
> https://wiki.duraspace.org/pages/viewpage.action?pageId=19006441
>
> I assume that this "break" template detects Enter spaces within metadata
> fields and renders them out as <p> tags. I have attempted to implement
> this break template, but it removes everything that was good about the
> original "itemSummaryView-DIM" template.
>
> Could somebody help me integrate the "break" template functionality within
> the existing "itemSummaryView-DIM" template? I would like just about all of
> my metadata fields to have this line break behaviour, so I don't think I
> need the if tests.
>
>
> You should just be able to add the "break" template from the wiki
> somewhere in your item-view.xsl file and then change the
> itemSummaryView-DIM template to use
>
> <xsl:call-template name="break">
> <xsl:with-param name="text" select="./node()"/>
> </xsl:call-template>
>
> instead of
> <xsl:copy-of select="./node()">
> wherever you want the page breaks to be applied. What's the problem you're
> facing?
>
> cheers,
> Andrea
>
> --
> Dr Andrea Schweer
> IRR Technical Specialist, ITS Information Systems
> The University of Waikato, Hamilton, New Zealand
>
>
|