Bugzilla – Attachment 2793 Details for
Bug 5430
Add Control number as option to OPACSearchForTitleIn
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Follow up to previous patch, hopefully fixing problems with non existing 001 fields
0001-Bug-5430-Follow-up-fixes-error-message-when-no-001-e.patch (text/plain), 1022 bytes, created by
Katrin Fischer
on 2010-11-28 12:39:26 UTC
(
hide
)
Description:
Follow up to previous patch, hopefully fixing problems with non existing 001 fields
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2010-11-28 12:39:26 UTC
Size:
1022 bytes
patch
obsolete
>From 8349e731373888c94248744841d3adefcd9e0244 Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <Katrin.Fischer.83@web.de> >Date: Sun, 28 Nov 2010 13:33:03 +0100 >Subject: [PATCH] Bug 5430: Follow-up, fixes error message when no 001 exists >Content-Type: text/plain; charset="utf-8" > >Please test. >--- > C4/Biblio.pm | 6 +++++- > 1 files changed, 5 insertions(+), 1 deletions(-) > >diff --git a/C4/Biblio.pm b/C4/Biblio.pm >index 4102e23..c3a3094 100644 >--- a/C4/Biblio.pm >+++ b/C4/Biblio.pm >@@ -1269,8 +1269,12 @@ sub GetMarcControlnumber { > # Control number or Record identifier are the same field in MARC21 and UNIMARC > # Keep $marcflavour for possible later use > if ($marcflavour eq "MARC21" || $marcflavour eq "UNIMARC") { >- $controlnumber = $record->field('001')->data(); >+ my $controlnumberField = $record->field('001'); >+ if ($controlnumberField) { >+ $controlnumber = $controlnumberField->data(); >+ } > } >+ return $controlnumber; > } > > =head2 GetMarcNotes >-- >1.7.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 5430
:
2781
| 2793