Skip to content

Commit

Permalink
CSW Harvester - use harvester outputschema to retrieve remote metadat…
Browse files Browse the repository at this point in the history
…a uuid, date tuples to compare with local harvested records #1917
  • Loading branch information
josegar74 committed Dec 5, 2017
1 parent f84a548 commit 1041386
Showing 1 changed file with 0 additions and 4 deletions.
Expand Up @@ -251,8 +251,6 @@ private Set<RecordInfo> search(CswServer server, Search s) throws Exception {

// Use the preferred HTTP method and check one exist.
configRequest(request, oper, server, s, PREFERRED_HTTP_METHOD);
// Force csw:Record outputSchema
request.setOutputSchema(Csw.NAMESPACE_CSW.getURI());

if (params.isUseAccount()) {
log.debug("Logging into server (" + params.getUsername() + ")");
Expand All @@ -271,8 +269,6 @@ private Set<RecordInfo> search(CswServer server, Search s) throws Exception {
errors.add(new HarvestError(context, ex, log));

configRequest(request, oper, server, s, PREFERRED_HTTP_METHOD.equals("GET") ? "POST" : "GET");
// Force csw:Record outputSchema
request.setOutputSchema(Csw.NAMESPACE_CSW.getURI());
}

Set<RecordInfo> records = new HashSet<RecordInfo>();
Expand Down

0 comments on commit 1041386

Please sign in to comment.