<font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2">
Thank you so much, just what I needed!<div>--Mike<br><br><font color="#990099">
-----eprints-tech-bounces@ecs.soton.ac.uk wrote: -----</font><div style="padding-left:5px;">
<div style="padding-right:0px;padding-left:5px;border-left:solid black 2px;">
To: "'eprints-tech@ecs.soton.ac.uk'" &lt;eprints-tech@ecs.soton.ac.uk&gt;<br>
From: John Salter <j.salter@leeds.ac.uk><br>Sent by: eprints-tech-bounces@ecs.soton.ac.uk<br>
Date: 04/22/2015 11:36AM<br>Subject: [EP-tech] Re: (no subject)<br><br>
<!--[if gte mso 9]><xml><o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml><o:shapelayout v:ext="edit"><o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--><div class="WordSection1"><p class="MsoNormal">
<span style="font-size: 11pt; font-family: Calibri, sans-serif;"><font color="#1f497d">
Hi Mike,<o:p></o:p></font></span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">
<font color="#1f497d">I think this is the most recent incantation of that issue:<o:p>
</o:p></font></span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">
<font color="#1f497d"><a href="http://www.eprints.org/tech.php/18737.html">
http://www.eprints.org/tech.php/18737.html</a><o:p></o:p></font></span>
</p><p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">
<font color="#1f497d"><o:p>&nbsp;</o:p></font></span></p><p class="MsoNormal">
<span style="font-size: 11pt; font-family: Calibri, sans-serif;"><font color="#1f497d">
NB The mailing list breaks perl code (e.g. changing &#8216;@_&#8217; to &#8216;AT _&#8217;) &#8211; although I&#8217;m sure you&#8217;ll be able to make sense of it!<o:p>
</o:p></font></span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">
<font color="#1f497d"><o:p>&nbsp;</o:p></font></span></p><p class="MsoNormal">
<span style="font-size: 11pt; font-family: Calibri, sans-serif;"><font color="#1f497d">
Does that thread help?<o:p></o:p></font></span></p><p class="MsoNormal">
<span style="font-size: 11pt; font-family: Calibri, sans-serif;"><font color="#1f497d">
<o:p>&nbsp;</o:p></font></span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">
<font color="#1f497d">Cheers,<o:p></o:p></font></span></p><p class="MsoNormal">
<span style="font-size: 11pt; font-family: Calibri, sans-serif;"><font color="#1f497d">
John<o:p></o:p></font></span></p><p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">
<font color="#1f497d"><o:p>&nbsp;</o:p></font></span></p><p class="MsoNormal">
<span style="font-size: 11pt; font-family: Calibri, sans-serif;"><font color="#1f497d">
<o:p>&nbsp;</o:p></font></span></p><p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">
From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">
 eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
<b>On Behalf Of </b>Michael Street<br><b>Sent:</b> 22 April 2015 16:09<br>
<b>To:</b> eprints-tech@ecs.soton.ac.uk<br><b>Subject:</b> [EP-tech] (no subject)<o:p>
</o:p></span></p><p class="MsoNormal"><o:p>&nbsp;</o:p></p><p class="MsoNormal">
<span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
Hi,<o:p></o:p></span></p><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
<o:p>&nbsp;</o:p></span></p></div><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
I recently migrated from v2 to v3 and am strangely enough, having the exact same issue I did 10 years ago, the last time I upgraded. &nbsp;I managed to dig up an old thread I
 had posted in 2005 with the same situation. &nbsp;Essentially it's that all the abstracts seem to no longer be displayed with their line breaks/paragraphs. &nbsp;When editing the field, the paragraphs are there but they are not displayed on the summary page.<o:p>
</o:p></span></p></div><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
<o:p>&nbsp;</o:p></span></p></div><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
I've tried the fix from 10 years ago but as you might expect, that did not work. &nbsp;I tried sticking the code snippet into eprint_field.pl.<o:p>
</o:p></span></p></div><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
<o:p>&nbsp;</o:p></span></p></div><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
Any help would be greatly appreciated thanks.<o:p></o:p></span></p></div>
<div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
<o:p>&nbsp;</o:p></span></p></div><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
--Mike<o:p></o:p></span></p></div><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
<o:p>&nbsp;</o:p></span></p></div><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
Thread from 10 years ago:<o:p></o:p></span></p></div><div><p class="MsoNormal">
<span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
------<o:p></o:p></span></p></div><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
<o:p>&nbsp;</o:p></span></p></div><div><p class="MsoNormal"><b><span style="font-size:10.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
Fra:</span></b><span style="font-size:10.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
 &nbsp;owner-eprints-tech@xxxxxxxxxxxxxxx [<a href="mailto:owner-eprints-tech@xxxxxxxxxxxxxxx">
mailto:owner-eprints-tech@xxxxxxxxxxxxxxx</a>]</span><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
</span><b><span style="font-size:10.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
På vegne af&nbsp;</span></b><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
</span><span style="font-size:10.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
Christopher Gutteridge</span><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
</span><span style="font-size:10.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
<br><b>Sendt:</b> &nbsp;12. maj 2005 15:09<br><b>Til:</b></span><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
</span><span style="font-size:10.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
&nbsp;EPrints.org Technical List</span><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
</span><span style="font-size:10.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
<br><b>Emne:</b> &nbsp;Re: [EP-tech] Linefeeds in Abstract field<br><br>
Hmm. I'm not sure why that changed. The default rendering for fields of type "longtext" appears to just turn them into a single block of text now.</span>
<span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
</span><span style="font-size:10.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
<br><br>It's easily worked around however by adding the a rendering parameter to the "abstract" field config in ArchiveMetadataFieldsConfig.pm:</span>
<span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
</span><span style="font-size:10.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
<br>----------------------<br>{ name =&gt; "abstract", input_rows =&gt; 10, type =&gt; "longtext", render_single_value=&gt;sub {</span>
<span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
</span><span style="font-size:10.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
<br>&nbsp;&nbsp;&nbsp; my( $session, $field, $value ) = @_;<br><br>&nbsp;&nbsp; my @paras = split( /\r\n\r\n|\r\r|\n\n/ , $value );</span>
<span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
</span><span style="font-size:10.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
<br><br>&nbsp;&nbsp; my $frag = $session-&gt;make_doc_fragment();</span>
<span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
</span><span style="font-size:10.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
<br>&nbsp;&nbsp; foreach( @paras )<br>&nbsp;&nbsp; {</span><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
 </span><span style="font-size:10.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; my $p = $session-&gt;make_element(&nbsp;</span>
<span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
</span><span style="font-size:10.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "p",&nbsp;</span>
<span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
</span><span style="font-size:10.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; class=&gt;$self-&gt;{name}."_paragraph" );</span>
<span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
</span><span style="font-size:10.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $p-&gt;appendChild( $session-&gt;make_text( $_ ) );</span>
<span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
</span><span style="font-size:10.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $frag-&gt;appendChild( $p );</span>
<span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
</span><span style="font-size:10.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
<br>&nbsp;&nbsp; }<br>&nbsp;&nbsp; return $frag;</span><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
</span><span style="font-size:10.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
<br>}&nbsp;<br>},</span><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
 </span><span style="font-size:10.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
<br>------------------<br>and restart apache and MAKE SURE IT WORKS,as i've just cut and pasted the code</span>
<span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
</span><span style="font-size:10.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
<br>then run generate_abstracts to fix the ones which are wrong.<br><br>
The "render" paramters only effect how a value is converted to XHTML, so they can</span>
<span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
</span><span style="font-size:10.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
<br>safely be played with without effecting the underlying data.<br><br>
<br>Michael Street wrote:&nbsp;</span><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
</span><span style="font-size:10.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
<br>Hi Folks,&nbsp;<br><br>I migrated an EPrints archive from v2 to v2.3.7 on a new server. &nbsp;Everything seems in order except for the linefeeds and paragraphs in the Abstract field. &nbsp;In the old version they show up fine, but in the new version it is all one paragraph.&nbsp;</span>
<span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
</span><span style="font-size:10.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
<br><br>Anyone know how I might be able to fix this? &nbsp;&nbsp;</span>
<span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
</span><span style="font-size:10.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
<br><br>I should mention that when I edit the eprint, the paragraphs are there, they just don't show up when you view it.&nbsp;</span>
<span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
</span><span style="font-size:10.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
<br><br>Thanks in advance,&nbsp;</span><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
</span><span style="font-size:10.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
<br>Mike.&nbsp;<br><br><br></span><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">
<o:p></o:p></span></p><div><font face="Courier New,Courier,monospace" size="3">
<span style="font-size:10.5pt"><o:p>&nbsp;</o:p></span></font></div><div>
<font face="Courier New,Courier,monospace" size="3"><span style="font-size:10.5pt">
-- Christopher Gutteridge -- <a href="mailto:cjg@xxxxxxxxxxxxxxx" target="_blank">
<o:p></o:p></a></span></font></div><div><font face="Courier New,Courier,monospace" size="3">
<span class="MsoHyperlink"><span style="font-size: 10.5pt;"><font color="#2b3eae">
<a href="mailto:cjg@xxxxxxxxxxxxxxx" target="_blank"><font color="#2b3eae">
cjg@xxxxxxxxxxxxxxx</font></a></font></span></span><span style="font-size:10.5pt">
&nbsp;-- +44 (0)23 8059 4833 <o:p></o:p></span></font></div><div><font face="Courier New,Courier,monospace" size="3">
<span style="font-size:10.5pt">University of Southampton, School of Electronics and Computer ScienceChris is currently listening to: . Obligatory Random Quote: Shout&nbsp;&nbsp;&nbsp;&nbsp; <o:p>
</o:p></span></font></div><div><font face="Courier New,Courier,monospace" size="3">
<span style="font-size:10.5pt">Britain, raise a joyful shout, The Tyrant Tories all are out --&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Deluded Britains -- cease your din -- For lo -- the scoundrel Whigs&nbsp;&nbsp; <o:p>
</o:p></span></font></div><div><font face="Courier New,Courier,monospace" size="3">
<span style="font-size:10.5pt">are in. -- Hartley Coleridge (1796-1849)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <o:p>
</o:p></span></font></div></div></div><div><font face="Courier New,Courier,monospace" size="3">
*** Options: <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech">
http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a><br>*** Archive: <a href="http://www.eprints.org/tech.php/">
http://www.eprints.org/tech.php/</a><br>*** EPrints community wiki: <a href="http://wiki.eprints.org/">
http://wiki.eprints.org/</a><br>*** EPrints developers Forum: <a href="http://forum.eprints.org/">
http://forum.eprints.org/</a><br></font></div></j.salter@leeds.ac.uk></div>
</div></div><div></div></font>