1.0.6
This commit is contained in:
parent
3e4fe33171
commit
03e4d86b99
|
@ -98,6 +98,8 @@ public class OAIClient {
|
|||
private List<OAIRecord> call(WebTarget target,String metadataPrefix){
|
||||
ArrayList<OAIRecord> toReturn=new ArrayList<OAIRecord>();
|
||||
|
||||
log.info("Harvesting from resulting url {} ",target.getUri());
|
||||
|
||||
String resumptionToken=null;
|
||||
|
||||
// call & iterate
|
||||
|
@ -105,14 +107,16 @@ public class OAIClient {
|
|||
int currentAttempt=1;
|
||||
while(!isComplete) {
|
||||
try {
|
||||
|
||||
if(resumptionToken==null)
|
||||
|
||||
if(resumptionToken==null) {
|
||||
target=target.queryParam("metadataPrefix",metadataPrefix);
|
||||
else
|
||||
}
|
||||
else {
|
||||
target=target.queryParam("resumptionToken", resumptionToken);
|
||||
}
|
||||
|
||||
|
||||
Response resp=target.request("application/xml").get();
|
||||
Response resp=target.request("application/xml").get();
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue