Bugzilla – Attachment 5580 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]
Proposed patch
0001-Bug-6912-Test-008-presence-in-get-CoinS-function.patch (text/plain), 933 bytes, created by
Frédéric Demians
on 2011-09-25 09:38:47 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Frédéric Demians
Created:
2011-09-25 09:38:47 UTC
Size:
933 bytes
patch
obsolete
>From 6954595455b556c0b71efadd2a61a81e997e78c8 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 > >--- > C4/Biblio.pm | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > >diff --git a/C4/Biblio.pm b/C4/Biblio.pm >index 915139e..5133037 100644 >--- a/C4/Biblio.pm >+++ b/C4/Biblio.pm >@@ -1217,7 +1217,7 @@ 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') && substr($pubyear->data(), 7, 4); > $isbn = $record->subfield( '773', 'z' ) || ''; > $issn = $record->subfield( '773', 'x' ) || ''; > if ($mtx eq 'journal') { >-- >1.7.6.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