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

- 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
......@@ -32,11 +32,10 @@ Examples:
'$0 search -s publicdomain'
* Which AIPs are copyrighted?
'$0 search -s copyrighted'
* Which AIPs were modified in 2021-05-31?
'$0 search -m 2021-05-31'
* Which AIPs were created 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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment