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

Get the last page of IDIOMMets Image Files

parent aa910fdb
No related branches found
No related tags found
No related merge requests found
......@@ -66,6 +66,7 @@ public class IDIOMImages implements RecordDelivererInterface, RecordListDelivere
for(int i=0; i<mediaList.length(); i++){
ImageMetsMods imm = new ImageMetsMods(mediaList.getJSONObject(i));
System.out.println(mediaList.getJSONObject(i).get("id").toString());
RecordType record = new RecordType();
MetadataType metadataMets = new MetadataType();
......@@ -79,6 +80,7 @@ public class IDIOMImages implements RecordDelivererInterface, RecordListDelivere
record.setMetadata(metadataMets);
String dateStamp = mediaList.getJSONObject(i).get("created_at").toString();
String identifier = mediaList.getJSONObject(i).get("id").toString();
record.setHeader(buildOAIPMH_RecordHeader(dateStamp, identifier));
imageMetsModsList.getRecord().add(record);
} catch (ParserConfigurationException e) {
......
......@@ -351,7 +351,7 @@ public class OaiPmhTestTG {
@Test
public void testGetRequestListRecordsIDIOM_IMAGES_with_ResToken() throws ParseException {
System.out.println("Test for the verb \"ListRecords\" with succesfull response for IMAGES");
IDIOMImages.cursorCollector.put("2930c87d-5209-4b14-9d6a-72f10476d947", 3);
IDIOMImages.cursorCollector.put("2930c87d-5209-4b14-9d6a-72f10476d947", 129);
String p = this.request.getRequest("ListRecords", "",
"", "", "", "", "2930c87d-5209-4b14-9d6a-72f10476d947");
System.out.println(p);
......@@ -384,7 +384,7 @@ public class OaiPmhTestTG {
@Test
public void testGetRequestListIdentifiersIDIOM_IMAGES_withResToken() throws ParseException {
System.out.println("Test for the verb \"ListIdentifiers\" with succesfull response");
IDIOMImages.cursorCollector.put("8eea2c07-7dc9-4404-a106-c1412b9ce8b4", 100);
IDIOMImages.cursorCollector.put("8eea2c07-7dc9-4404-a106-c1412b9ce8b4", 129);
String p = this.request.getRequest("ListIdentifiers", "",
"", "", "", "", "8eea2c07-7dc9-4404-a106-c1412b9ce8b4");
System.out.println(p);
......
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