Bugzilla – Attachment 2143 Details for
Bug 4527
Item details don't respect newlines in details data
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to resolve this
0001-Support-newlines-in-the-notes-field-when-displaying.patch (text/plain), 1.51 KB, created by
Chris Cormack
on 2010-05-19 00:26:00 UTC
(
hide
)
Description:
Patch to resolve this
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2010-05-19 00:26:00 UTC
Size:
1.51 KB
patch
obsolete
>From 031045759288a12fbc894726c42d78077521e5ef Mon Sep 17 00:00:00 2001 >From: Robin Sheat <robin@catalyst.net.nz> >Date: Wed, 19 May 2010 12:12:14 +1200 >Subject: [PATCH] Support newlines in the notes field when displaying > >--- > catalogue/detail.pl | 3 +++ > opac/opac-detail.pl | 4 ++++ > 2 files changed, 7 insertions(+), 0 deletions(-) > >diff --git a/catalogue/detail.pl b/catalogue/detail.pl >index 85819c0..c3c3c74 100755 >--- a/catalogue/detail.pl >+++ b/catalogue/detail.pl >@@ -93,6 +93,9 @@ my $marcseriesarray = GetMarcSeries($record,$marcflavour); > my $marcurlsarray = GetMarcUrls ($record,$marcflavour); > my $subtitle = GetRecordValue('subtitle', $record, $fw); > >+# Turn newlines into HTML-y newlines >+$_->{marcnote} =~ s{\n}{<br />}g foreach (@$marcnotesarray); >+ > # Get Branches, Itemtypes and Locations > my $branches = GetBranches(); > my $itemtypes = GetItemTypes(); >diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl >index 629ebd2..7a0f2e2 100755 >--- a/opac/opac-detail.pl >+++ b/opac/opac-detail.pl >@@ -205,6 +205,10 @@ my $marcseriesarray = GetMarcSeries ($record,$marcflavour); > my $marcurlsarray = GetMarcUrls ($record,$marcflavour); > my $subtitle = GetRecordValue('subtitle', $record, GetFrameworkCode($biblionumber)); > >+# Support newlines in the notes content >+$_->{marcnote} =~ s{\n}{<br />}g foreach (@$marcnotesarray); >+ >+ > $template->param( > MARCNOTES => $marcnotesarray, > MARCSUBJCTS => $marcsubjctsarray, >-- >1.7.0.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 4527
:
2143
|
10107