Skip to content
Snippets Groups Projects
Commit 1d11c7e5 authored by Gerhard Gonter's avatar Gerhard Gonter :speech_balloon:
Browse files

allow configuration of separator for various suffix formats, mostly used by OJS

parent fc6dd535
No related branches found
No related tags found
No related merge requests found
...@@ -374,7 +374,9 @@ sub get_all_urls ...@@ -374,7 +374,9 @@ sub get_all_urls
sub split_doi_string sub split_doi_string
{ {
my $doi= shift; # e.g. 10.25365/phaidra.1 my $doi= shift; # e.g. 10.25365/phaidra.1
my $id_separator= shift || '.'; my $id_separator= shift;
$id_separator= qr(\.) if (!$id_separator || $id_separator eq '.');
my ($pfx, $sfx)= split ('/', $doi, 2); my ($pfx, $sfx)= split ('/', $doi, 2);
my ($ns, $nr)= split ($id_separator, $sfx, 2); my ($ns, $nr)= split ($id_separator, $sfx, 2);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment