Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tools for technical analysts
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
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
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
tools for technical analysts
Commits
a9f0a42d
Verified
Commit
a9f0a42d
authored
1 year ago
by
Andreas Romeyke
Browse files
Options
Downloads
Patches
Plain Diff
- refactoring, minimized complexity by reordering and postfix evaluation
parent
e7ad689f
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
lib/SLUB/LZA/TA/Output.pm
+13
-1
13 additions, 1 deletion
lib/SLUB/LZA/TA/Output.pm
with
13 additions
and
1 deletion
lib/SLUB/LZA/TA/Output.pm
+
13
−
1
View file @
a9f0a42d
...
@@ -40,7 +40,7 @@ sub line_result_mapper {
...
@@ -40,7 +40,7 @@ sub line_result_mapper {
my
(
$partial_result
,
$opt
)
=
@_
;
my
(
$partial_result
,
$opt
)
=
@_
;
my
%line
;
my
%line
;
$line
{
aipid
}
=
$partial_result
->
{
_source
}
->
{
uuid
};
$line
{
aipid
}
=
$partial_result
->
{
_source
}
->
{
uuid
};
my
@tmd
=
qw(
foreach
my
$t
(
qw(
External-Description
External-Description
External-Identifier
External-Identifier
LDP-collection
LDP-collection
...
@@ -65,6 +65,18 @@ sub line_result_mapper {
...
@@ -65,6 +65,18 @@ sub line_result_mapper {
)
{
)
{
add_line_by_baginfo_entry
(
\
%line
,
$partial_result
,
$t
,
$opt
);
add_line_by_baginfo_entry
(
\
%line
,
$partial_result
,
$t
,
$opt
);
}
}
my
$payload_oxum
=
$line
{'
payload_oxum
'};
my
$payload_size
=
"";
my
$payload_filecount
=
"";
(
$payload_size
,
$payload_filecount
)
=
split
/\./
,
$payload_oxum
if
(
defined
$payload_oxum
);
$line
{
payload_size
}
=
$payload_size
if
(
defined
$opt
->
{
with_payload_size
});
$line
{
payload_filecount
}
=
$payload_filecount
if
(
defined
$opt
->
{
with_payload_filecount
});
delete
$line
{'
payload_oxum
'};
# should not be part of result!
$line
{
creation_date
}
=
$partial_result
->
{
_source
}
->
{
created
}
if
(
defined
$opt
->
{
with_creationdate
});;
$line
{
filecount
}
=
$partial_result
->
{
_source
}
->
{
file_count
}
if
(
defined
$opt
->
{
with_filecount
});;
$line
{
path
}
=
$partial_result
->
{
_source
}
->
{
filePath
}
if
(
defined
$opt
->
{
with_path
});;
$line
{
score
}
=
$partial_result
->
{
_score
}
if
(
defined
$opt
->
{
with_score
});
$line
{
size
}
=
$partial_result
->
{
_source
}
->
{
size
}
*
1024
*
1024
if
(
defined
$opt
->
{
with_size
});;
return
\
%line
;
return
\
%line
;
}
}
...
...
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