Merge pull request 'oai-harvester-1.0.5' (#1) from oai-harvester-1.0.5 into master
This commit is contained in:
commit
2123bf6fd2
|
@ -2,6 +2,9 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
||||||
|
|
||||||
# Changelog for org.gcube.data-publishing.gFeed.oai-pmh
|
# Changelog for org.gcube.data-publishing.gFeed.oai-pmh
|
||||||
|
|
||||||
|
## [1.0.5] - 2020-12-15
|
||||||
|
Do not stop on single repository error
|
||||||
|
|
||||||
## [1.0.4] - 2020-12-15
|
## [1.0.4] - 2020-12-15
|
||||||
- Dependency management
|
- Dependency management
|
||||||
- Naming Convention
|
- Naming Convention
|
||||||
|
|
|
@ -2,14 +2,14 @@
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>org.gcube.data-publishing.gFeed</groupId>
|
<groupId>org.gcube.data-publishing.gFeed</groupId>
|
||||||
<artifactId>gFeed-Suite</artifactId>
|
<artifactId>gFeed-Suite</artifactId>
|
||||||
<version>1.0.4</version>
|
<version>1.0.4</version>
|
||||||
</parent>
|
</parent>
|
||||||
<artifactId>oai-harvester</artifactId>
|
<artifactId>oai-harvester</artifactId>
|
||||||
<name>oai-harvester</name>
|
<name>oai-harvester</name>
|
||||||
<version>1.0.4</version>
|
<version>1.0.5</version>
|
||||||
|
|
||||||
<scm>
|
<scm>
|
||||||
<connection>scm:git:${gitBaseUrl}/gFeed</connection>
|
<connection>scm:git:${gitBaseUrl}/gFeed</connection>
|
||||||
|
@ -38,13 +38,13 @@
|
||||||
<groupId>org.gcube.data-publishing.gFeed</groupId>
|
<groupId>org.gcube.data-publishing.gFeed</groupId>
|
||||||
<artifactId>collectors-plugin-framework</artifactId>
|
<artifactId>collectors-plugin-framework</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.glassfish.jersey.media</groupId>
|
<groupId>org.glassfish.jersey.media</groupId>
|
||||||
<artifactId>jersey-media-json-jackson</artifactId>
|
<artifactId>jersey-media-json-jackson</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.slf4j</groupId>
|
<groupId>org.slf4j</groupId>
|
||||||
<artifactId>slf4j-api</artifactId>
|
<artifactId>slf4j-api</artifactId>
|
||||||
|
|
|
@ -27,12 +27,16 @@ public class OAICollector implements DataCollector<OAIRecord> {
|
||||||
AccessPoint point=epr.profile().accessPoints().asCollection().iterator().next();
|
AccessPoint point=epr.profile().accessPoints().asCollection().iterator().next();
|
||||||
String baseUrl=point.address();
|
String baseUrl=point.address();
|
||||||
log.debug("Address is "+baseUrl);
|
log.debug("Address is "+baseUrl);
|
||||||
OAIClient client = new OAIClient(baseUrl);
|
try {
|
||||||
point.properties().iterator().forEachRemaining((Property p)->{
|
OAIClient client = new OAIClient(baseUrl);
|
||||||
if(p.name().equals("set"))
|
point.properties().iterator().forEachRemaining((Property p)->{
|
||||||
client.getSpecifiedSets().add(p.value());
|
if(p.name().equals("set"))
|
||||||
});
|
client.getSpecifiedSets().add(p.value());
|
||||||
toReturn.addAll(client.getAll(OAIClient.DC_METADATA_PREFIX));
|
});
|
||||||
|
toReturn.addAll(client.getAll(OAIClient.DC_METADATA_PREFIX));
|
||||||
|
}catch(Throwable t) {
|
||||||
|
log.warn("Unable to use repository "+epr.id()+" NAME : "+epr.profile().name(),t);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return toReturn;
|
return toReturn;
|
||||||
|
|
Loading…
Reference in New Issue