[Koha-patches] [PATCH] Format marc notes
Nahuel ANGELINETTI
nahuel.angelinetti at biblibre.com
Tue Jan 13 11:33:54 CET 2009
this patch add a filter to notes, it transform \n in <br />
---
C4/Biblio.pm | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/C4/Biblio.pm b/C4/Biblio.pm
index a2e6d07..3c32710 100644
--- a/C4/Biblio.pm
+++ b/C4/Biblio.pm
@@ -969,6 +969,8 @@ sub GetMarcNotes {
my $marcnote;
foreach my $field ( $record->field($scope) ) {
my $value = $field->as_string();
+ $value =~ s/\n/<br \/>/g ;
+
if ( $note ne "" ) {
$marcnote = { marcnote => $note, };
push @marcnotes, $marcnote;
--
1.5.6.3
More information about the Koha-patches
mailing list