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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Digital Preservation
tools for technical analysts
Commits
0779294c
Commit
0779294c
authored
1 year ago
by
Andreas Romeyke
Browse files
Options
Downloads
Patches
Plain Diff
- moved --target-version to info command
- minor, disabled unused CLI options
parent
814250f0
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/SLUB/LZA/TA/Command/search.pm
+5
-15
5 additions, 15 deletions
lib/SLUB/LZA/TA/Command/search.pm
with
5 additions
and
15 deletions
lib/SLUB/LZA/TA/Command/search.pm
+
5
−
15
View file @
0779294c
...
...
@@ -32,11 +32,10 @@ Examples:
'$0 search -s publicdomain'
* Which AIPs are copyrighted?
'$0 search -s copyrighted'
* Which AIPs were
modifi
ed in 2021-05-31?
'$0 search -
m
2021-05-31'
* Which AIPs were
creat
ed in 2021-05-31?
'$0 search -
c
2021-05-31'
* Which AIPs with mkv-files are in archive?
'$0 search --pronom-format=fmt/569'
'$0 search --pronom-format fmt/569'
* Which AIP has this dc identifier? Print the AIP id, lzaid of matching AIP
as Rows of String Values (RSV)
'$0 search -d SLUB:LZA:Kitodo:kitodo:422766 --with-lzaid --output-as-rsv'
...
...
@@ -63,14 +62,14 @@ sub opt_spec {
[
'
datemode
'
=>
hidden
=>
{
one_of
=>
[
[
'
creationdate|c=s
'
=>
'
search based on creation date, use format YYYY-MM-DD
'
],
[
'
modificationdate|m=s
'
=>
'
search based on modificationdate string
'
]
#
[ 'modificationdate|m=s' => 'search based on modificationdate string' ]
]
}
],
[
'
descriptive|d=s
',
'
search descriptive metadata (dc identifier)
'
],
[
'
lzaid|l=s
',
'
search a specific AIP by given LZA id
'
],
[
'
maxrecords=i
',
'
set maxrecords, default is 10
',
{
default
=>
10
}
],
[
'
source|s=s
',
'
search source metadata
'
],
#
[ 'source|s=s', 'search source metadata' ],
[
'
startrecord=i
',
'
set startrecord, default is 1
'
],
[
'
format
'
=>
hidden
=>
{
one_of
=>
[
[
'
pronom-id|p=s
'
=>
'
with pronom format id
'
],
...
...
@@ -105,7 +104,6 @@ sub opt_spec {
[
'
with-title
'
=>
'
also returns AIP title
'
],
[]
,
[
'
help|h
',
'
print usage message and exit
',
{
shortcircuit
=>
1
}
],
[
'
target-version|V
'
=>
'
get current elasticsearch version
',
{
shortcircuit
=>
1
}
],
[
'
version|v
',
'
print version information
',
{
shortcircuit
=>
1
}
],
);
}
...
...
@@ -245,14 +243,6 @@ sub find_aips_by_file_pronom_id {
sub
execute
{
my
(
$self
,
$opt
,
$args
)
=
@_
;
if
(
$opt
->
{
target_version
})
{
say
SLUB::LZA::TA::Archivematica::Elasticsearch::
version_elasticsearch
(
$
SLUB::LZA::TA::
config
{
elasticsearchprotocol
},
$
SLUB::LZA::TA::
config
{
elasticsearchhost
},
$
SLUB::LZA::TA::
config
{
elasticsearchport
}
);
exit
(
0
);
}
my
$aips_query
;
my
$aips_response
;
#p($opt);
...
...
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