Skip to content
Snippets Groups Projects
Commit 873bdc8c authored by Jens Steidl's avatar Jens Steidl :baby_chick:
Browse files

- refactor: remove mods creation, hand over instead

parent b343444c
No related branches found
No related tags found
No related merge requests found
...@@ -415,12 +415,13 @@ PATCH ...@@ -415,12 +415,13 @@ PATCH
} }
} }
sub copyFilesToMeta($$$$$){ sub copyFilesToMeta($$$$$$){
my $ppn = $_[0]; my $ppn = $_[0];
my $noppn = $_[1]; my $noppn = $_[1];
my $metaPath = $_[2]; my $metaPath = $_[2];
my $rightsFilePath = $_[3]; my $rightsFilePath = $_[3];
my $aRefAddMetaFile = $_[4]; my $aRefAddMetaFile = $_[4];
my $mods = $_[5];
my @addMetaFile = @{ $aRefAddMetaFile }; my @addMetaFile = @{ $aRefAddMetaFile };
...@@ -449,8 +450,7 @@ PATCH ...@@ -449,8 +450,7 @@ PATCH
} }
# mods.xml # mods.xml
if (defined $ppn) { if ($ppn && $mods) {
my $mods = prepare_mods_section_with_ppn($ppn); # get mods from catalog
write_file("$metaPath/mods.xml", $mods); write_file("$metaPath/mods.xml", $mods);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment