Bugzilla – Attachment 4465 Details for
Bug 6480
Koha produces a lot of apache logs for UNIMARC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 6480 - Koha produces a lot of apache logs for UNIMARC
Bug-6480---Koha-produces-a-lot-of-apache-logs-for-.patch (text/plain), 1.94 KB, created by
Chris Cormack
on 2011-06-14 22:05:05 UTC
(
hide
)
Description:
Bug 6480 - Koha produces a lot of apache logs for UNIMARC
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2011-06-14 22:05:05 UTC
Size:
1.94 KB
patch
obsolete
>From 2bd79e57c7d2cce3898e6ca127f5f3f46a6f27eb Mon Sep 17 00:00:00 2001 >From: Janusz Kaczmarek <januszop@gmail.com> >Date: Tue, 7 Jun 2011 22:28:24 +0300 >Subject: [PATCH] Bug 6480 - Koha produces a lot of apache logs for UNIMARC > >For Koha with UNIMARC a lot of entries in apache log lines are produced. > >In the patch, corrections to the GetCOinSBiblio function has been introduces, >in the UNIMARC section: (i.e. || '' at the end of lines that can create this >problem) -- analogous as it is in the MARC21 section. > >Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz> >--- > C4/Biblio.pm | 12 ++++++------ > 1 files changed, 6 insertions(+), 6 deletions(-) > >diff --git a/C4/Biblio.pm b/C4/Biblio.pm >index d797f40..19e1e14 100644 >--- a/C4/Biblio.pm >+++ b/C4/Biblio.pm >@@ -1180,8 +1180,8 @@ sub GetCOinSBiblio { > if ( C4::Context->preference("marcflavour") eq "UNIMARC" ) { > > # Setting datas >- $aulast = $record->subfield( '700', 'a' ); >- $aufirst = $record->subfield( '700', 'b' ); >+ $aulast = $record->subfield( '700', 'a' ) || ''; >+ $aufirst = $record->subfield( '700', 'b' ) || ''; > $oauthors = "&rft.au=$aufirst $aulast"; > > # others authors >@@ -1194,10 +1194,10 @@ sub GetCOinSBiblio { > ( $mtx eq 'dc' ) > ? "&rft.title=" . $record->subfield( '200', 'a' ) > : "&rft.title=" . $record->subfield( '200', 'a' ) . "&rft.btitle=" . $record->subfield( '200', 'a' ); >- $pubyear = $record->subfield( '210', 'd' ); >- $publisher = $record->subfield( '210', 'c' ); >- $isbn = $record->subfield( '010', 'a' ); >- $issn = $record->subfield( '011', 'a' ); >+ $pubyear = $record->subfield( '210', 'd' ) || ''; >+ $publisher = $record->subfield( '210', 'c' ) || ''; >+ $isbn = $record->subfield( '010', 'a' ) || ''; >+ $issn = $record->subfield( '011', 'a' ) || ''; > } else { > > # MARC21 need some improve >-- >1.7.4.1
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 6480
:
4425
| 4465