[Koha-patches] [PATCH] Support newlines in the notes field when displaying
Galen Charlton
gmcharlt at gmail.com
Fri Jul 2 01:33:37 CEST 2010
Hi,
On Thu, Jul 1, 2010 at 12:49 AM, Robin Sheat <robin at catalyst.net.nz> wrote:
> +# Turn newlines into HTML-y newlines
> +$_->{marcnote} =~ s{\n}{<br />}g foreach (@$marcnotesarray);
> +
This sort of HTML display logic should be pushed off to the templates
if at all possible; if newlines are significant in the notes field
(and this is slightly nonstandard in MARC, in fact, although I grant
that it certainly happens in the wild), I suggest splitting up
@$marcnotesarray on embedded newlines and passing that to the
template.
Regards,
Galen
--
Galen Charlton
gmcharlt at gmail.com
More information about the Koha-patches
mailing list