Bugzilla – Attachment 5859 Details for
Bug 6912
OPAC display crashes for analytical biblio without 008 field
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 6912 Test 008 presence in get CoinS function
Bug-6912-Test-008-presence-in-get-CoinS-function.patch (text/plain), 1.07 KB, created by
Paul Poulain
on 2011-10-12 15:51:24 UTC
(
hide
)
Description:
Bug 6912 Test 008 presence in get CoinS function
Filename:
MIME Type:
Creator:
Paul Poulain
Created:
2011-10-12 15:51:24 UTC
Size:
1.07 KB
patch
obsolete
>From edb9662065a01871be052c7e79c2fb771290884a Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Demians?= <f.demians@tamil.fr> >Date: Sun, 25 Sep 2011 11:25:25 +0200 >Subject: [PATCH] Bug 6912 Test 008 presence in get CoinS function > >Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> >Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> >--- > C4/Biblio.pm | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > >diff --git a/C4/Biblio.pm b/C4/Biblio.pm >index 915139e..95d5456 100644 >--- a/C4/Biblio.pm >+++ b/C4/Biblio.pm >@@ -1217,7 +1217,8 @@ sub GetCOinSBiblio { > $subtitle = $record->subfield( '245', 'b' ) || ''; > $title .= $subtitle; > if ($titletype eq 'a') { >- $pubyear = substr $record->field('008')->data(), 7, 4; >+ $pubyear = $record->field('008') || ''; >+ $pubyear = substr($pubyear->data(), 7, 4) if $pubyear; > $isbn = $record->subfield( '773', 'z' ) || ''; > $issn = $record->subfield( '773', 'x' ) || ''; > if ($mtx eq 'journal') { >-- >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 6912
:
5580
|
5581
|
5582
|
5804
| 5859