Skip to content
Snippets Groups Projects
Commit b0ec128b authored by Stefan E. Funk's avatar Stefan E. Funk
Browse files

fix: add geolocation for dariah openaire

parent 22feac77
No related branches found
No related tags found
No related merge requests found
Pipeline #342461 passed
......@@ -412,15 +412,13 @@ public class RecordDelivererDatacite extends RecordDelivererAbstract {
for (String geoLocationField : this.oarGeoLocationFields) {
GeoLocation geoLocation = new GeoLocation();
geoLocation.setGeoLocationPlace(
OaipmhUtilities.firstEnrtryFieldLoader(this.jsonObj, geoLocationField + DOT_VALUE));
geoLocations.getGeoLocation().add(geoLocation);
String place = OaipmhUtilities.firstEnrtryFieldLoader(this.jsonObj, geoLocationField);
geoLocation.setGeoLocationPlace(place);
if (!place.isEmpty()) {
geoLocations.getGeoLocation().add(geoLocation);
}
}
// if (geoLocations.getGeoLocation().get(0).getGeoLocationPlace() != null) {
// this.resource.setGeoLocations(geoLocations);
// }
return geoLocations;
}
......@@ -492,6 +490,7 @@ public class RecordDelivererDatacite extends RecordDelivererAbstract {
relatedID.setValue(i);
}
// Relation type is REFERENCES for the time being (coming from dc:relation at the moment).
// TODO Check if we can use isPartOf for subcollections and sub objects!
relatedID.setRelationType(RelationType.REFERENCES);
relatedIdentifiers.getRelatedIdentifier().add(relatedID);
}
......
......@@ -66,7 +66,7 @@ oar.rightsFields = descriptiveMetadata.dc:rights
oar.descriptionFields = descriptiveMetadata.dc:description
oar.relatedIdentifierFields = descriptiveMetadata.dc:relation
oar.geoLocationFields = descriptiveMetadata.dc:coverage
oar.versionFields =
oar.versionFields = administrativeMetadata.dcterms:modified
oar.subjectFields = descriptiveMetadata.dc:subject
##########################
......
......@@ -65,7 +65,7 @@ oar.formatFields = format
oar.rightsFields = edition.license
oar.descriptionFields = work.abstract
oar.relatedIdentifierFields = edition.isEditionOf
oar.geoLocationFields = edition.source.bibliographicCitation.placeOfPublication
oar.geoLocationFields = edition.source.bibliographicCitation.placeOfPublication.value
oar.versionFields = revision
oar.subjectFields = work.subject
......
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