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

- removed deprecated code

parent a9c1be29
Branches
Tags
No related merge requests found
...@@ -3,10 +3,8 @@ use SLUB::LZA::TA -command; ...@@ -3,10 +3,8 @@ use SLUB::LZA::TA -command;
use strict; use strict;
use warnings; use warnings;
use feature qw(say); use feature qw(say);
#use SLUB::LZA::TA::common_sru;
#use SLUB::LZA::TA::SRU;
use SLUB::LZA::TA::Archivematica::Elasticsearch; use SLUB::LZA::TA::Archivematica::Elasticsearch;
use Data::Printer;
# VERSION # VERSION
...@@ -15,8 +13,8 @@ use SLUB::LZA::TA::Archivematica::Elasticsearch; ...@@ -15,8 +13,8 @@ use SLUB::LZA::TA::Archivematica::Elasticsearch;
sub abstract {"searches Archival Information System (AIS)";} sub abstract {"searches Archival Information System (AIS)";}
my $description=<<"DESCR"; my $description=<<"DESCR";
Searches an AIS for descriptive oder source metadata on behalf of the Technical Analyst. Searches an AIS for descriptive or source metadata on behalf of the Technical Analyst.
Returns SRU-response including dc-records. Only the first 10 matches will be presented by default. Returns response including dc-records. Only the first 10 matches will be presented by default.
Examples: Examples:
...@@ -89,17 +87,7 @@ sub execute { ...@@ -89,17 +87,7 @@ sub execute {
); );
exit (0); exit (0);
} }
my $maxrecords="10";
if (exists $opt->{maxrecords}) {
$maxrecords = $opt->{maxrecords};
}
my $startrecord=1;
if (exists $opt->{startrecord}) {
$startrecord = $opt->{startrecord};
}
my $query = SLUB::LZA::TA::Archivematica::Elasticsearch::prepare_query($opt); my $query = SLUB::LZA::TA::Archivematica::Elasticsearch::prepare_query($opt);
#p(%SLUB::LZA::TA::config);
my $response = SLUB::LZA::TA::Archivematica::Elasticsearch::query_elasticsearch( my $response = SLUB::LZA::TA::Archivematica::Elasticsearch::query_elasticsearch(
$SLUB::LZA::TA::config{elasticsearchprotocol}, $SLUB::LZA::TA::config{elasticsearchprotocol},
$SLUB::LZA::TA::config{elasticsearchhost}, $SLUB::LZA::TA::config{elasticsearchhost},
...@@ -107,12 +95,7 @@ sub execute { ...@@ -107,12 +95,7 @@ sub execute {
'aips', # indexname 'aips', # indexname
$query, # query_hash ref $query, # query_hash ref
); );
#my $query = SLUB::LZA::TA::Rosetta::common_sru::prepare_query($opt); say np($response);
#my $response = SLUB::LZA::TA::Rosetta::SRU::sru_search('ie', $query, $startrecord, $maxrecords, $opt->{verbose}, $opt->{debug}, $opt->{user}, $opt->{password});
say $response;
# use Data::Printer;
# p($response);
return 1; return 1;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment