<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'" <eprints-tech@ecs.soton.ac.uk><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> </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 ‘@_’ to ‘AT _’) – although I’m sure you’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> </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> </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> </o:p></font></span></p><p class="MsoNormal">
<span style="font-size: 11pt; font-family: Calibri, sans-serif;"><font color="#1f497d">
<o:p> </o:p></font></span></p><p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
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> </o:p></p><p class="MsoNormal">
<span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">
Hi,<o:p></o:p></span></p><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">
<o:p> </o:p></span></p></div><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">
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. I managed to dig up an old thread I
had posted in 2005 with the same situation. Essentially it's that all the abstracts seem to no longer be displayed with their line breaks/paragraphs. 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:"Verdana","sans-serif"">
<o:p> </o:p></span></p></div><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">
I've tried the fix from 10 years ago but as you might expect, that did not work. 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:"Verdana","sans-serif"">
<o:p> </o:p></span></p></div><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">
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:"Verdana","sans-serif"">
<o:p> </o:p></span></p></div><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">
--Mike<o:p></o:p></span></p></div><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">
<o:p> </o:p></span></p></div><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">
Thread from 10 years ago:<o:p></o:p></span></p></div><div><p class="MsoNormal">
<span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">
------<o:p></o:p></span></p></div><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">
<o:p> </o:p></span></p></div><div><p class="MsoNormal"><b><span style="font-size:10.5pt;font-family:"Verdana","sans-serif"">
Fra:</span></b><span style="font-size:10.5pt;font-family:"Verdana","sans-serif"">
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:"Verdana","sans-serif"">
</span><b><span style="font-size:10.5pt;font-family:"Verdana","sans-serif"">
På vegne af </span></b><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">
</span><span style="font-size:10.5pt;font-family:"Verdana","sans-serif"">
Christopher Gutteridge</span><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">
</span><span style="font-size:10.5pt;font-family:"Verdana","sans-serif"">
<br><b>Sendt:</b> 12. maj 2005 15:09<br><b>Til:</b></span><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">
</span><span style="font-size:10.5pt;font-family:"Verdana","sans-serif"">
EPrints.org Technical List</span><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">
</span><span style="font-size:10.5pt;font-family:"Verdana","sans-serif"">
<br><b>Emne:</b> 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:"Verdana","sans-serif"">
</span><span style="font-size:10.5pt;font-family:"Verdana","sans-serif"">
<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:"Verdana","sans-serif"">
</span><span style="font-size:10.5pt;font-family:"Verdana","sans-serif"">
<br>----------------------<br>{ name => "abstract", input_rows => 10, type => "longtext", render_single_value=>sub {</span>
<span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">
</span><span style="font-size:10.5pt;font-family:"Verdana","sans-serif"">
<br> my( $session, $field, $value ) = @_;<br><br> my @paras = split( /\r\n\r\n|\r\r|\n\n/ , $value );</span>
<span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">
</span><span style="font-size:10.5pt;font-family:"Verdana","sans-serif"">
<br><br> my $frag = $session->make_doc_fragment();</span>
<span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">
</span><span style="font-size:10.5pt;font-family:"Verdana","sans-serif"">
<br> foreach( @paras )<br> {</span><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">
</span><span style="font-size:10.5pt;font-family:"Verdana","sans-serif"">
<br> my $p = $session->make_element( </span>
<span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">
</span><span style="font-size:10.5pt;font-family:"Verdana","sans-serif"">
<br> "p", </span>
<span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">
</span><span style="font-size:10.5pt;font-family:"Verdana","sans-serif"">
<br> class=>$self->{name}."_paragraph" );</span>
<span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">
</span><span style="font-size:10.5pt;font-family:"Verdana","sans-serif"">
<br> $p->appendChild( $session->make_text( $_ ) );</span>
<span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">
</span><span style="font-size:10.5pt;font-family:"Verdana","sans-serif"">
<br> $frag->appendChild( $p );</span>
<span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">
</span><span style="font-size:10.5pt;font-family:"Verdana","sans-serif"">
<br> }<br> return $frag;</span><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">
</span><span style="font-size:10.5pt;font-family:"Verdana","sans-serif"">
<br>} <br>},</span><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">
</span><span style="font-size:10.5pt;font-family:"Verdana","sans-serif"">
<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:"Verdana","sans-serif"">
</span><span style="font-size:10.5pt;font-family:"Verdana","sans-serif"">
<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:"Verdana","sans-serif"">
</span><span style="font-size:10.5pt;font-family:"Verdana","sans-serif"">
<br>safely be played with without effecting the underlying data.<br><br>
<br>Michael Street wrote: </span><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">
</span><span style="font-size:10.5pt;font-family:"Verdana","sans-serif"">
<br>Hi Folks, <br><br>I migrated an EPrints archive from v2 to v2.3.7 on a new server. Everything seems in order except for the linefeeds and paragraphs in the Abstract field. In the old version they show up fine, but in the new version it is all one paragraph. </span>
<span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">
</span><span style="font-size:10.5pt;font-family:"Verdana","sans-serif"">
<br><br>Anyone know how I might be able to fix this? </span>
<span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">
</span><span style="font-size:10.5pt;font-family:"Verdana","sans-serif"">
<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. </span>
<span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">
</span><span style="font-size:10.5pt;font-family:"Verdana","sans-serif"">
<br><br>Thanks in advance, </span><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">
</span><span style="font-size:10.5pt;font-family:"Verdana","sans-serif"">
<br>Mike. <br><br><br></span><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"">
<o:p></o:p></span></p><div><font face="Courier New,Courier,monospace" size="3">
<span style="font-size:10.5pt"><o:p> </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">
-- +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 <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 -- Deluded Britains -- cease your din -- For lo -- the scoundrel Whigs <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) <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>