Skip to content
Snippets Groups Projects
Commit ff7998dc authored by Andreas Romeyke's avatar Andreas Romeyke
Browse files

- added module version (similar to SLUBArchiv release version)

- moved $sipVersion to module
- added getter get_sip_version()
parent 37f109e9
No related branches found
No related tags found
No related merge requests found
......@@ -59,6 +59,12 @@ use Path::Tiny;
use Term::ANSIColor; # colored print
use XML::LibXML;
use XML::XPath;
our $VERSION=2021.2;
# version of SIP,
# see L<https://slubarchiv.slub-dresden.de/technische-standards-fuer-die-ablieferung-von-digitalen-dokumenten>,
# document "SIP Spezifikation für automatischen Ingest SLUBArchiv (v2.0.1)" for details
my $sipVersion='v2020.1';
our $with_debug = 0; # output debug infos and files
# catalogue infos
......@@ -78,6 +84,10 @@ my $marc21_to_baginfo_mappings = [
{ tag => "246", code => "b", key => "Title" },
];
sub get_sip_version {
return $sipVersion;
}
sub add_metadata($refAddBagInfo, $ppn, $noppn, $marc21) {
# adding entries to bag-info key list
push @{$refAddBagInfo}, {'External-Identifier' => "PPN:$ppn"} unless (! $ppn);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment