Bugzilla – Attachment 27134 Details for
Bug 11797
auth_finder.pl: Odd number of elements in anonymous hash
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11797 - Odd number of elements in hash - UNIMARC
Bug-11797---Odd-number-of-elements-in-hash---UNIMA.patch (text/plain), 1.86 KB, created by
Jonathan Druart
on 2014-04-15 15:03:35 UTC
(
hide
)
Description:
Bug 11797 - Odd number of elements in hash - UNIMARC
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2014-04-15 15:03:35 UTC
Size:
1.86 KB
patch
obsolete
>From 5060483d96fddb74362d9d9a599915ed030dbfb7 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Tue, 15 Apr 2014 11:08:54 +0200 >Subject: [PATCH] Bug 11797 - Odd number of elements in hash - UNIMARC > >I got the same warning for my UNIMARC DB. > >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >--- > C4/AuthoritiesMarc.pm | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > >diff --git a/C4/AuthoritiesMarc.pm b/C4/AuthoritiesMarc.pm >index 9409853..0353142 100644 >--- a/C4/AuthoritiesMarc.pm >+++ b/C4/AuthoritiesMarc.pm >@@ -967,7 +967,7 @@ sub BuildSummary { > foreach my $field ($record->field('2..')) { > push @authorized, { > heading => $field->as_string('abcdefghijlmnopqrstuvwxyz'), >- hemain => $field->subfield('a'), >+ hemain => ( $field->subfield('a') // undef ), > field => $field->tag(), > }; > } >@@ -979,7 +979,7 @@ sub BuildSummary { > my $thesaurus = $field->subfield('2') ? "thes. : ".$thesaurus{"$field->subfield('2')"}." : " : ''; > push @seefrom, { > heading => $thesaurus . $field->as_string('abcdefghijlmnopqrstuvwxyz'), >- hemain => $field->subfield('a'), >+ hemain => ( $field->subfield('a') // undef ), > type => 'seefrom', > field => $field->tag(), > }; >@@ -993,9 +993,9 @@ sub BuildSummary { > field => $_->tag, > type => $type, > heading => $heading, >- hemain => $_->subfield('a'), >+ hemain => ( $_->subfield('a') // undef ), > search => $heading, >- authid => $_->subfield('9'), >+ authid => ( $_->subfield('9') // undef ), > } > } $record->field('5..'); > >-- >1.7.10.4
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 11797
:
25478
|
25882
|
25884
|
27077
|
27120
|
27133
| 27134