[Bug 3201] New: script missing090field.pl if record is NULL
http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=3201 Summary: script missing090field.pl if record is NULL Product: Koha Version: unspecified Platform: PC OS/Version: SunOS Status: NEW Severity: enhancement Priority: P5 Component: Installation (command-line installer) AssignedTo: galen.charlton@liblime.com ReportedBy: henry@cmi.univ-mrs.fr Estimated Hours: 0.0 Change sponsored?: --- please add: $ diff -u ./misc/migration_tools/22_to_30/missing090field.pl-ori ./misc/migration_tools/22_to_30/missing090field.pl --- ./misc/migration_tools/22_to_30/missing090field.pl-ori Fri Jan 16 12:10:07 2009 +++ ./misc/migration_tools/22_to_30/missing090field.pl Thu Apr 30 12:29:51 2009 @@ -38,6 +38,8 @@ my ($tagfield2,$biblioitemtagsubfield) = &GetMarcFromKohaField("biblio.biblioitemnumber",""); my $update=0; + if (defined $record) + { my $tag = $record->field($tagfield); # warn "ICI : ".$record->as_formatted if $record->subfield('090','a') eq '11546'; @@ -63,8 +65,13 @@ $update=1; } } + } + else + { + warn "problem with :".$biblionumber." , record undefined"; + } + - if ($update){ &ModBiblioMarc($record,$biblionumber,''); print "\n modified : $biblionumber \n"; -- Configure bugmail: http://bugs.koha.org/cgi-bin/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=3201 --- Comment #1 from Galen Charlton <galen.charlton@liblime.com> 2009-05-07 17:34:11 --- Thank you for this suggested patch. I see you've posted a diff; would it be possible for you to use Git to prepare and format the patch and send it to patches@koha.org? Instructions for using Git for Koha can be found at http://wiki.koha.org/doku.php?id=en:development:git_usage . If you don't have the time or inclination to do that, that's fine - I will eventually test and push the diff you've added to this bug. However, if you plan on sending many patches, using Git will help you a lot. -- Configure bugmail: http://bugs.koha.org/cgi-bin/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=3201 Galen Charlton <galen.charlton@liblime.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Priority|P5 |PATCH-Sent --- Comment #2 from Galen Charlton <galen.charlton@liblime.com> 2009-06-06 23:13:41 --- Submitted version of this patch to patches list. -- Configure bugmail: http://bugs.koha.org/cgi-bin/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=3201 --- Comment #3 from Galen Charlton <galen.charlton@liblime.com> 2009-06-07 18:19:14 --- Pushed patch to HEAD. Please test and close. -- Configure bugmail: http://bugs.koha.org/cgi-bin/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
participants (1)
-
bugzilla-daemon@liblime.com