Bugzilla – Attachment 5804 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]
[SIGNED-OFF] Bug 6912 Test 008 presence in get CoinS function
SIGNED-OFF-Bug-6912-Test-008-presence-in-get-CoinS.patch (text/plain), 1.07 KB, created by
Jared Camins-Esakov
on 2011-10-08 20:00:13 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 6912 Test 008 presence in get CoinS function
Filename:
MIME Type:
Creator:
Jared Camins-Esakov
Created:
2011-10-08 20:00:13 UTC
Size:
1.07 KB
patch
obsolete
>From c087a5c63b28b9e18dc9c2ededf2aa9e4c8cfa50 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] [SIGNED-OFF] Bug 6912 Test 008 presence in get CoinS function >Content-Type: text/plain; charset="UTF-8" > >Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.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.2.5
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