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
584fd8c9
Commit
584fd8c9
authored
4 years ago
by
Jens Steidl
Browse files
Options
Downloads
Patches
Plain Diff
- refactor: get marc21 and mods with new funtionality
parent
873bdc8c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/slubsipbuilderbagit.pl
+18
-0
18 additions, 0 deletions
bin/slubsipbuilderbagit.pl
with
18 additions
and
0 deletions
bin/slubsipbuilderbagit.pl
+
18
−
0
View file @
584fd8c9
...
...
@@ -552,6 +552,7 @@ PATCH
my
@addMetaFile
=
@
{
$aRefAddMetaFile
};
my
@addBagInfo
=
@
{
$refAddBagInfo
};
my
(
$mods
,
$marc21
);
# create bag dir
SLUB::LZA::SIPBuilderBagIt::
createDir
(
$bagPath
);
...
...
@@ -560,6 +561,11 @@ PATCH
# copy payload files to data
print_scalar_data
("",
"
INFO: copying original data...
",
"",
"
white
");
dircopy
(
$ieDirectory
,
$dataPath
)
||
die
("
Error coping
$ieDirectory
to
$dataPath
");
# get descriptive metadata from catalog
if
(
$ppn
)
{
$marc21
=
get_marc21_from_catalogue
(
$ppn
);
$mods
=
get_mods_from_marc21
(
$marc21
);
}
# create meta dir
SLUB::LZA::SIPBuilderBagIt::
createDir
(
$metaPath
);
# copy not payload files to meta
...
...
@@ -582,12 +588,18 @@ PATCH
my
@addMetaFile
=
@
{
$aRefAddMetaFile
};
my
@addBagInfo
=
@
{
$refAddBagInfo
};
my
(
$mods
,
$marc21
);
# create bag dir
SLUB::LZA::SIPBuilderBagIt::
createDir
(
$bagPath
);
# move payloads to data dir (which is automatically renamed from IE Directory)
print_scalar_data
("",
"
INFO: moving original data...
",
"",
"
white
");
dirmove
(
$ieDirectory
,
$dataPath
)
||
die
("
Error moving
$ieDirectory
to
$dataPath
");
# get descriptive metadata from catalog
if
(
$ppn
)
{
$marc21
=
get_marc21_from_catalogue
(
$ppn
);
$mods
=
get_mods_from_marc21
(
$marc21
);
}
# create meta dir
SLUB::LZA::SIPBuilderBagIt::
createDir
(
$metaPath
);
# copy not payload files to meta
...
...
@@ -610,12 +622,18 @@ PATCH
my
@addMetaFile
=
@
{
$aRefAddMetaFile
};
my
@addBagInfo
=
@
{
$refAddBagInfo
};
my
(
$mods
,
$marc21
);
# create bag dir
SLUB::LZA::SIPBuilderBagIt::
createDir
(
$bagPath
);
# move payloads to data dir (which is automatically renamed from IE Directory)
print_scalar_data
("",
"
INFO: moving original data...
",
"",
"
white
");
dirmove
(
$ieDirectory
,
$dataPath
)
||
die
("
Error moving
$ieDirectory
to
$dataPath
");
# get descriptive metadata from catalog
if
(
$ppn
)
{
$marc21
=
get_marc21_from_catalogue
(
$ppn
);
$mods
=
get_mods_from_marc21
(
$marc21
);
}
# create meta dir
SLUB::LZA::SIPBuilderBagIt::
createDir
(
$metaPath
);
# copy not payload files to meta
...
...
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