[Koha-patches] [PATCH] Bug #6044 - Authority is deleted when mergeto and mergefrom are the same
Alex Arnaud
alex.arnaud at biblibre.com
Mon Apr 4 15:28:11 CEST 2011
---
misc/migration_tools/merge_authority.pl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/misc/migration_tools/merge_authority.pl b/misc/migration_tools/merge_authority.pl
index 0987827..b99591f 100755
--- a/misc/migration_tools/merge_authority.pl
+++ b/misc/migration_tools/merge_authority.pl
@@ -97,7 +97,7 @@ if ($batch) {
my $MARCto = GetAuthority($mergeto);
&merge($mergefrom,$MARCfrom,$mergeto,$MARCto);
#Could add mergefrom authority to mergeto rejected forms before deletion
- DelAuthority($mergefrom);
+ DelAuthority($mergefrom) if ($mergefrom != $mergeto);
}
my $timeneeded = gettimeofday - $starttime;
print "Done in $timeneeded seconds" unless $noconfirm;
--
1.6.3.3
More information about the Koha-patches
mailing list