Bugzilla – Attachment 10237 Details for
Bug 8136
Changes the expected lenght of 100$a in rebuild_zebra.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 8136 Changes the expected lenght of 100$a in rebuild_zebra.pl
SIGNED-OFF-Bug-8136-Changes-the-expected-lenght-of.patch (text/plain), 1.65 KB, created by
Sophie MEYNIEUX
on 2012-06-11 16:26:09 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 8136 Changes the expected lenght of 100$a in rebuild_zebra.pl
Filename:
MIME Type:
Creator:
Sophie MEYNIEUX
Created:
2012-06-11 16:26:09 UTC
Size:
1.65 KB
patch
obsolete
>From 430513dcecea0b7272ae0525a0670b71e7c813e6 Mon Sep 17 00:00:00 2001 >From: christophe croullebois <christophe.croullebois@biblibre.com> >Date: Tue, 22 May 2012 13:59:33 +0200 >Subject: [PATCH] [SIGNED-OFF] Bug 8136 Changes the expected lenght of 100$a > in rebuild_zebra.pl > >In rebuild_zebra.pl, if we are in "unimarc" ("marcflavour" syspref), the sub "fix_unimarc_100" is called and checks if 100$a lenght is equal to 35. >If it is not the case, the sub inserts the localtime and more, so we loose the datas in reindexing. >The standart lenght is 36. >I have just changed 35 to 36. > >Signed-off-by: Sophie Meynieux <sophie.meynieux@biblibre.com> >--- > misc/migration_tools/rebuild_zebra.pl | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/misc/migration_tools/rebuild_zebra.pl b/misc/migration_tools/rebuild_zebra.pl >index d369d72..dbbb140 100755 >--- a/misc/migration_tools/rebuild_zebra.pl >+++ b/misc/migration_tools/rebuild_zebra.pl >@@ -602,7 +602,7 @@ sub fix_unimarc_100 { > my $marc = shift; > > my $string; >- if ( length($marc->subfield( 100, "a" )) == 35 ) { >+ if ( length($marc->subfield( 100, "a" )) == 36 ) { > $string = $marc->subfield( 100, "a" ); > my $f100 = $marc->field(100); > $marc->delete_field($f100); >@@ -613,7 +613,7 @@ sub fix_unimarc_100 { > $string = sprintf( "%-*s", 35, $string ); > } > substr( $string, 22, 6, "frey50" ); >- unless ( length($marc->subfield( 100, "a" )) == 35 ) { >+ unless ( length($marc->subfield( 100, "a" )) == 36 ) { > $marc->delete_field($marc->field(100)); > $marc->insert_grouped_field(MARC::Field->new( 100, "", "", "a" => $string )); > } >-- >1.7.5.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 8136
:
9699
| 10237