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

Merge remote-tracking branch 'origin/cleanup#1' into feature_marcxml_only

parents 094d8ec5 ef65c1e1
Branches
Tags
No related merge requests found
...@@ -435,7 +435,11 @@ PATCH ...@@ -435,7 +435,11 @@ PATCH
my $path = $_[0]; my $path = $_[0];
if(! -d $path && ! -f $path){ if(! -d $path && ! -f $path){
mkdir($path) or die "Could not mkdir $path: $!"; eval { path($path)->mkpath; };
if ($@) { # error
print_scalar_data("", "ERROR: Failed to create directory '$path'.", "", "red");
die $@;
}
} }
return 1; return 1;
} }
...@@ -970,74 +974,66 @@ Options: ...@@ -970,74 +974,66 @@ Options:
=head1 EXAMPLES =head1 EXAMPLES
=head2 Copy (minimalistic)
perl bin/slubsipbuilderbagit.pl
--save_option=copy
--IE_directory=/IE/git/SLUB_SIP_Builder/export_dir_kitodo/bagit/test2
--SIP_output_path=/output_sips
--ppn=457035137
--SIP_version=v2020.1
--external_id=10008
--external_workflow=kitodo
--external_ISIL=DE-14
--external_value_descr="Gesetzlicher Auftrag"
--rights_version=1.0
--rights_xml=/metadata/rights/Fallbeispiel-02.xml
=head2 Copy =head2 Copy
perl bin/slubsipbuilderbagit.pl perl bin/slubsipbuilderbagit.pl
--save_option=copy -save_option=copy
--IE_directory=/IE/git/SLUB_SIP_Builder/export_dir_kitodo/bagit/test2 -IE_directory=./export_dir_kitodo/bagit/test2
--SIP_output_path=/output_sips -SIP_output_path=./output_sips
--ppn=457035137 -ppn=457035137
--SIP_version=v2020.1 -SIP_version=v2020.1
--external_id=10008 -external_id=10008
--external_workflow=kitodo -external_workflow=kitodo
--external_ISIL=DE-14 -external_ISIL=DE-14
--external_value_descr="Gesetzlicher Auftrag" -external_value_descr="Gesetzlicher Auftrag"
--rights_version=1.0 -rights_version=1.0
--rights_xml=/metadata/rights/Fallbeispiel-01.xml -rights_xml=export_dir_kitodo/bagit/rights/Fallbeispiel-01.xml
--add_meta_file=/metadata/lido.xml -add_meta_file=./export_dir_kitodo/bagit/meta/lido.xml
--add_meta_file=/metadata/mods.xml -add_key_value="Title:Krieg und Frieden"
--add_key_value="Author:Lew Nikolajewitsch Tolstoi" -add_key_value="Author:Lew Nikolajewitsch Tolstoi"
--add_key_value="Titel:Krieg und Frieden"
--add_key_value="Genre:Roman" =head2 Replace
=head2 Replace (minimalistic)
NOT RECOMMENDED! IF FAILS, "IE" MUST BE MANUAL RESTORED TO THE PREVIOUS STATE!!! NOT RECOMMENDED! IF FAILS, "IE" MUST BE MANUAL RESTORED TO THE PREVIOUS STATE!!!
cp -a ./export_dir_kitodo/bagit/test2 ./ie_to_be_replaced
perl bin/slubsipbuilderbagit.pl perl bin/slubsipbuilderbagit.pl
--save_option=replace -save_option=replace
--IE_directory=/IE/SLUB_SIP_Builder/export_dir_kitodo/bagit/test2 -IE_directory=./ie_to_be_replaced
--ppn=457035137 -ppn=457035137
--SIP_version=v2020.1 -SIP_version=v2020.1
--external_id=10008 -external_id=10008
--external_workflow=kitodo -external_workflow=kitodo
--external_ISIL=DE-14 -external_ISIL=DE-14
--external_value_descr="Gesetzlicher Auftrag" -external_value_descr="Gesetzlicher Auftrag"
--rights_version=1.0 -rights_version=1.0
--rights_xml=/metadata/rights/Fallbeispiel-01.xml -rights_xml=./export_dir_kitodo/bagit/rights/Fallbeispiel-01.xml
-add_meta_file=./export_dir_kitodo/bagit/meta/lido.xml
=head2 Move (minimalistic) -add_key_value="Title:Krieg und Frieden"
-add_key_value="Author:Lew Nikolajewitsch Tolstoi"
=head2 Move
NOT RECOMMENDED! IF FAILS, "IE" MUST BE MANUAL RESTORED TO THE PREVIOUS STATE!!! NOT RECOMMENDED! IF FAILS, "IE" MUST BE MANUAL RESTORED TO THE PREVIOUS STATE!!!
perl bin/slubsipbuilderbagit.pl cp -a ./export_dir_kitodo/bagit/test2 ./ie_to_be_moved
--save_option=move
--IE_directory=/IE/git/SLUB_SIP_Builder/export_dir_kitodo/bagit/test2
--SIP_output_path=/output_sips
--ppn=457035137
--SIP_version=v2020.1
--external_id=10008
--external_workflow=kitodo
--external_ISIL=DE-14
--external_value_descr="Gesetzlicher Auftrag"
--rights_version=1.0
--rights_xml=/metadata/rights/Fallbeispiel-03.xml
perl bin/slubsipbuilderbagit.pl
-save_option=move
-IE_directory=./ie_to_be_moved
--SIP_output_path=./output_sips
-ppn=457035137
-SIP_version=v2020.1
-external_id=10008
-external_workflow=kitodo
-external_ISIL=DE-14
-external_value_descr="Gesetzlicher Auftrag"
-rights_version=1.0
-rights_xml=./export_dir_kitodo/bagit/rights/Fallbeispiel-01.xml
-add_meta_file=./export_dir_kitodo/bagit/meta/lido.xml
-add_key_value="Title:Krieg und Frieden"
-add_key_value="Author:Lew Nikolajewitsch Tolstoi"
=head1 OPTIONS =head1 OPTIONS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment