Skip to content
Snippets Groups Projects
Commit b17800fb authored by mbrodhu's avatar mbrodhu
Browse files

new version, cursorSize configurable

parent e56e8f11
No related branches found
No related tags found
No related merge requests found
1.
change identifier from 123.0 to textgrid:123.0 in all/the getRecord requests,
must be equal to the identifiers we get with the getIdentifiers() method
DONE
2.
implement sets (for the prootype :)
DONE
3.
implement resumption tokens (later)
DONE
4.
remove "yo" in class RecordDeliverer :-)
DONE
5.
DONE :D
6.
Fetch earliestTimestamp from ElasticSearch?
DONE
......@@ -4,7 +4,7 @@
<parent>
<artifactId>oaipmh</artifactId>
<groupId>info.textgrid.middleware</groupId>
<version>2.5.3-SNAPSHOT</version>
<version>2.5.4-SNAPSHOT</version>
</parent>
<groupId>info.textgrid.middleware</groupId>
<artifactId>oaipmh-core</artifactId>
......
......@@ -109,7 +109,7 @@ public class RecordListDeliverer {
private static Map<String, Integer> cursorCollector = new Hashtable<String, Integer >();
long searchResponseSize = 10;
private long searchResponseSize;
BigInteger valueToAdd = BigInteger.valueOf(searchResponseSize);
ResumptionTokenType resTokenForResponse = new ResumptionTokenType();
......@@ -284,7 +284,7 @@ public class RecordListDeliverer {
}else {
System.out.println("NO RESTOKEN FOUND");
resTokenForResponse.setCursor(BigInteger.valueOf((int)searchResponseSize));
cursorCollector.put(scrollResp.getScrollId(), (int)searchResponseSize + 90);
cursorCollector.put(scrollResp.getScrollId(), (int)searchResponseSize);
System.out.println(cursorCollector.get(scrollResp.getScrollId()));
//System.out.println("withOUTtoken" + cursorCollector.get(resumptionToken) + (int)searchResponseSize);
}
......@@ -754,6 +754,14 @@ public class RecordListDeliverer {
public void setIdentifierField(String identifierField) {
this.identifierField = identifierField;
}
public long getSearchResponseSize() {
return searchResponseSize;
}
public void setIdentifierField(long searchResponseSize) {
this.searchResponseSize = searchResponseSize;
}
......
......@@ -4,7 +4,7 @@
<parent>
<artifactId>oaipmh</artifactId>
<groupId>info.textgrid.middleware</groupId>
<version>2.5.3-SNAPSHOT</version>
<version>2.5.4-SNAPSHOT</version>
</parent>
<groupId>info.textgrid.middleware</groupId>
<artifactId>oaipmh-webapp</artifactId>
......
......@@ -109,6 +109,7 @@
<property name="types" value="${typeList}" />
<property name="modifiedField" value="${modifiedField}" />
<property name="identifierField" value="${identifierField}" />
<property name="searchResponseSize" value="${cursorSize}" />
</bean>
<bean id="Record" class="info.textgrid.middleware.RecordDeliverer">
......
......@@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>info.textgrid.middleware</groupId>
<artifactId>oaipmh</artifactId>
<version>2.5.3-SNAPSHOT</version>
<version>2.5.4-SNAPSHOT</version>
<packaging>pom</packaging>
<name>DARIAHDE :: OAI-PMH DataProvider</name>
<properties>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment