Bugzilla – Attachment 12074 Details for
Bug 8447
can't save new records / indicator error
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8447: Make sure we have enough subfields for broader_headings
Bug-8447-Make-sure-we-have-enough-subfields-for-br.patch (text/plain), 1.56 KB, created by
Jared Camins-Esakov
on 2012-09-07 23:52:15 UTC
(
hide
)
Description:
Bug 8447: Make sure we have enough subfields for broader_headings
Filename:
MIME Type:
Creator:
Jared Camins-Esakov
Created:
2012-09-07 23:52:15 UTC
Size:
1.56 KB
patch
obsolete
>From 590ecccea442178f80e52679c1cdc0a78f64a71a Mon Sep 17 00:00:00 2001 >From: Jared Camins-Esakov <jcamins@cpbibliography.com> >Date: Fri, 7 Sep 2012 10:58:53 -0400 >Subject: [PATCH] Bug 8447: Make sure we have enough subfields for broader_headings >Content-Type: text/plain; charset="UTF-8" > >Thanks to wajasu for providing the debugging information, as I cannot >seem to duplicate the problem, even seeing where it could come from. >--- > C4/Linker/Default.pm | 9 ++++----- > 1 files changed, 4 insertions(+), 5 deletions(-) > >diff --git a/C4/Linker/Default.pm b/C4/Linker/Default.pm >index 653dabd..445b408 100644 >--- a/C4/Linker/Default.pm >+++ b/C4/Linker/Default.pm >@@ -56,17 +56,16 @@ sub get_link { > > if ( !defined $authid && $self->{'broader_headings'} ) { > my $field = $heading->field(); >- my @subfields = $field->subfields(); >+ my @subfields = grep { $_->[0] ne '9' } $field->subfields(); > if ( scalar @subfields > 1 ) { > pop @subfields; >- $field->replace_with( >+ $field = > MARC::Field->new( > $field->tag, > $field->indicator(1), > $field->indicator(2), >- map { $_[0] => $_[1] } @subfields >- ) >- ); >+ map { $_->[0] => $_->[1] } @subfields >+ ); > ( $authid, $fuzzy ) = > $self->get_link( C4::Heading->new_from_bib_field($field), > $behavior ); >-- >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 8447
:
12050
|
12070
|
12074
|
12075
|
12076