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

- minor improvement in efficiency

parent 7f007508
No related branches found
No related tags found
No related merge requests found
...@@ -510,7 +510,7 @@ sub check_if_db_conform ($string, $filename) { ...@@ -510,7 +510,7 @@ sub check_if_db_conform ($string, $filename) {
} }
sub get_file_path($xp, $filegrp, $filepid) { sub get_file_path($xp, $filegrp, $filepid) {
return $xp->findvalue("mets:file[\@ID=\"$filepid\"]/mets:FLocat/\@xlin:href", $filegrp); return $xp->findvalue("./mets:file[\@ID=\"$filepid\"]/mets:FLocat/\@xlin:href", $filegrp);
} }
sub get_file_path_rx($xml, $filepid) { sub get_file_path_rx($xml, $filepid) {
my $nt = qr{[^>]*}; my $nt = qr{[^>]*};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment