From 285069b583c4a7d9c442583388ff97ce44d5f715 Mon Sep 17 00:00:00 2001 From: Maximilian Behnert-Brodhun <behnert-brodhun@sub.uni-goettingen.de> Date: Thu, 17 Feb 2022 21:44:53 +0100 Subject: [PATCH] added usage of constructor with TextGridUri object --- .../main/java/info/textgrid/middleware/IDIOMImages.java | 7 ++++--- pom.xml | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/oaipmh-core/src/main/java/info/textgrid/middleware/IDIOMImages.java b/oaipmh-core/src/main/java/info/textgrid/middleware/IDIOMImages.java index a9998eae..3b5fbbb0 100644 --- a/oaipmh-core/src/main/java/info/textgrid/middleware/IDIOMImages.java +++ b/oaipmh-core/src/main/java/info/textgrid/middleware/IDIOMImages.java @@ -20,7 +20,7 @@ import javax.xml.transform.TransformerFactoryConfigurationError; import javax.xml.transform.dom.DOMSource; import javax.xml.transform.stream.StreamResult; -import org.classicmayan.tools.ConedaKorID; +import org.classicmayan.tools.TextGridUri; import org.classicmayan.tools.ImageMetsMods; import org.classicmayan.tools.MediaHarvester; import org.json.JSONArray; @@ -141,9 +141,10 @@ public class IDIOMImages implements RecordDelivererInterface, RecordListDelivere //ImageMetsMods imm = new ImageMetsMods(new ConedaKorID(id)); ImageMetsMods immByTGURI = null; - try { + try { System.out.println(id); - immByTGURI = new ImageMetsMods(id, "2016-02-18T10:15:19Z", "2016-02-18T10:15:19Z"); + //TextGridUri asa = new TextGridUri(); + immByTGURI = new ImageMetsMods(new TextGridUri(id)); } catch (CrudClientException e1) { // TODO Auto-generated catch block e1.printStackTrace(); diff --git a/pom.xml b/pom.xml index 2cd4e7d2..2c7049e3 100644 --- a/pom.xml +++ b/pom.xml @@ -24,7 +24,7 @@ <maven-deploy-plugin.version>2.8.2</maven-deploy-plugin.version> <maven-eclipse-plugin.version>2.10</maven-eclipse-plugin.version> <maven-jaxb2-plugin.version>0.14.0</maven-jaxb2-plugin.version> - <mets-mods-mapping.version>1.1.31</mets-mods-mapping.version> + <mets-mods-mapping.version>1.1.34-SNAPSHOT</mets-mods-mapping.version> <package-info-maven-plugin.version>1.4.5</package-info-maven-plugin.version> <properties-maven-plugin.version>1.0-alpha-2</properties-maven-plugin.version> <!-- <slf4j.version>1.7.5</slf4j.version> --> -- GitLab