Bugzilla – Attachment 101301 Details for
Bug 15214
Add logging of authority updates to bulkmarcimport
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15214: bulkmarcimport should log if an authority has been updated
Bug-15214-bulkmarcimport-should-log-if-an-authorit.patch (text/plain), 1.61 KB, created by
Kyle M Hall (khall)
on 2020-03-20 16:39:44 UTC
(
hide
)
Description:
Bug 15214: bulkmarcimport should log if an authority has been updated
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2020-03-20 16:39:44 UTC
Size:
1.61 KB
patch
obsolete
>From df21b941a881cd855ba23064234c55d150ecc8c7 Mon Sep 17 00:00:00 2001 >From: Matthias Meusburger <matthias.meusburger@biblibre.com> >Date: Thu, 19 Nov 2015 09:52:04 +0100 >Subject: [PATCH] Bug 15214: bulkmarcimport should log if an authority has been > updated > >When importing with bulkmarcimport, authorities may or may not be updated based on which authority is newer (005 are compared). >This patch allows to keep track in the result yaml file if an authority has been updated or not: > >Signed-off-by: Jon Knight <J.P.Knight@lboro.ac.uk> > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > misc/migration_tools/bulkmarcimport.pl | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/misc/migration_tools/bulkmarcimport.pl b/misc/migration_tools/bulkmarcimport.pl >index 6a08c6cd56..6ab4b3fcf4 100755 >--- a/misc/migration_tools/bulkmarcimport.pl >+++ b/misc/migration_tools/bulkmarcimport.pl >@@ -341,6 +341,7 @@ RECORD: while ( ) { > push @subfields, map { ( $_->[0] =~ /[a-z]/ ? $_->[1] : () ) } $field->subfields(); > } > $yamlhash->{$originalid}->{'subfields'} = \@subfields; >+ $yamlhash->{$originalid}->{'updated'} = 0; > } > next; > } >@@ -424,6 +425,7 @@ RECORD: while ( ) { > push @subfields, map { ( $_->[0] =~ /[a-z]/ ? $_->[1] : () ) } $field->subfields(); > } > $yamlhash->{$originalid}->{'subfields'} = \@subfields; >+ $yamlhash->{$originalid}->{'updated'} = 1; > } > } > else { >-- >2.21.1 (Apple Git-122.3)
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 15214
:
44979
|
100591
| 101301