projects
/
migration-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
mig-import missed a clause for deleting from the itemtypes table
[migration-tools.git]
/
extract_loadset
diff --git
a/extract_loadset
b/extract_loadset
index
aa29023
..
61326bd
100755
(executable)
--- a/
extract_loadset
+++ b/
extract_loadset
@@
-41,6
+41,7
@@
open MI, '<', $conf->{input} or die "Can't open input file: $!\n";
open MO, '>', $conf->{output} or die "Can't open output file: $!\n";
while (<MI>) {
m/tag="$conf->{tag}".+?<subfield code="$conf->{subfield}">(\d+)</;
+ next unless defined $1;
if ($conf->{reverse}) {
print MO if $exclude{$1};
} else {