Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SLUB_SIP_Builder
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Digital Preservation
SLUB_SIP_Builder
Commits
864a8860
Commit
864a8860
authored
4 years ago
by
Jens Steidl
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'origin/cleanup#1' into feature_marcxml_only
parents
094d8ec5
ef65c1e1
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/slubsipbuilderbagit.pl
+54
-58
54 additions, 58 deletions
bin/slubsipbuilderbagit.pl
with
54 additions
and
58 deletions
bin/slubsipbuilderbagit.pl
+
54
−
58
View file @
864a8860
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment