Here is a starting point inspired by the link you shared above. https://gist.github.com/terrywbrady/ba3b1b3ae6ef5551290fc9339f38ace9
I recommend that you first start with the SplitOnFirstNewline implementation to get a sense of how it works. If that succeeds, use the SplitOnAllNewlines implementation to recursively find all newlines. Terry On Tue, Feb 14, 2017 at 1:02 PM, David Brian Holt <[email protected]> wrote: > I hope you don't mind, but can you tell me where that should go here?: > > <xsl:template name="itemSummaryView-DIM-description"> > <xsl:if test="dim:field[@element='description']"> > <div class="simple-item-view-description > item-page-field-wrapper table"> > <h5><i18n:text>xmlui.dri2xhtml.METS-1.0.item- > description</i18n:text></h5> > <xsl:for-each select="dim:field[@element=' > description'][not(@qualifier)]"> > <xsl:choose> > <xsl:when test="node()"> > <xsl:copy-of select="node()"/> > > </xsl:when> > <xsl:otherwise> > <xsl:text> </xsl:text> > </xsl:otherwise> > </xsl:choose> > </xsl:for-each> > </div> > </xsl:if> > </xsl:template> > > > > On Tuesday, February 14, 2017 at 11:17:10 AM UTC-8, Terry Brady wrote: >> >> The substring-before/substring-after logic in the initial code you >> shared would be the approach to find the insertion point for the line >> break/paragraph break. >> >> On Tue, Feb 14, 2017 at 10:31 AM, David Brian Holt <[email protected]> >> wrote: >> >>> I'm using Mirage2 on Dspace 6. I tried your suggestion and it didn't >>> work (it just appended the text). Can I simply add a link break somewhere >>> in the XSLT? >>> >>> Thanks! >>> >>> >>> On Monday, February 13, 2017 at 8:54:44 PM UTC-8, Terry Brady wrote: >>>> >>>> I would consider breaking up the abstract field into 2 separate >>>> dc.description.abstract entries rather than relying on the XSLT to parse >>>> for newlines. >>>> >>>> To help troubleshoot this issue, which version of DSpace are you >>>> running and which theme are you using? >>>> >>>> On Mon, Feb 13, 2017 at 1:52 PM, David Brian Holt <[email protected]> >>>> wrote: >>>> >>>>> What's the easiest method to do this? >>>>> >>>>> I see the instructions here but it looks like they're outdated: >>>>> https://wiki.duraspace.org/pages/viewpage.action?pageId=19006441 >>>>> >>>>> Thanks, >>>>> >>>>> David >>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "DSpace Technical Support" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to [email protected]. >>>>> To post to this group, send email to [email protected]. >>>>> Visit this group at https://groups.google.com/group/dspace-tech. >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> >>>> >>>> >>>> -- >>>> Terry Brady >>>> Applications Programmer Analyst >>>> Georgetown University Library Information Technology >>>> http://georgetown-university-libraries.github.io/ >>>> <https://www.library.georgetown.edu/lit/code> >>>> 425-298-5498 (Seattle, WA) >>>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "DSpace Technical Support" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To post to this group, send email to [email protected]. >>> Visit this group at https://groups.google.com/group/dspace-tech. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> >> >> -- >> Terry Brady >> Applications Programmer Analyst >> Georgetown University Library Information Technology >> http://georgetown-university-libraries.github.io/ >> <https://www.library.georgetown.edu/lit/code> >> 425-298-5498 <(425)%20298-5498> (Seattle, WA) >> > -- > You received this message because you are subscribed to the Google Groups > "DSpace Technical Support" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/dspace-tech. > For more options, visit https://groups.google.com/d/optout. > -- Terry Brady Applications Programmer Analyst Georgetown University Library Information Technology http://georgetown-university-libraries.github.io/ <https://www.library.georgetown.edu/lit/code> 425-298-5498 (Seattle, WA) -- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/dspace-tech. For more options, visit https://groups.google.com/d/optout.
