diff --git a/geonetwork-core/src/main/java/au/org/aodn/geonetwork4/controller/Api.java b/geonetwork-core/src/main/java/au/org/aodn/geonetwork4/controller/Api.java index 09d5c9d..768930a 100644 --- a/geonetwork-core/src/main/java/au/org/aodn/geonetwork4/controller/Api.java +++ b/geonetwork-core/src/main/java/au/org/aodn/geonetwork4/controller/Api.java @@ -22,6 +22,7 @@ import org.fao.geonet.kernel.harvest.harvester.geonet20.Geonet20Harvester; import org.fao.geonet.kernel.harvest.harvester.oaipmh.OaiPmhHarvester; import org.fao.geonet.kernel.harvest.harvester.ogcwxs.OgcWxSHarvester; +import org.fao.geonet.kernel.harvest.harvester.webdav.WebDavHarvester; import org.fao.geonet.repository.GroupRepository; import org.fao.geonet.repository.MetadataRepository; import org.springframework.beans.factory.annotation.Autowired; @@ -155,6 +156,10 @@ else if (harvester instanceof Geonet20Harvester) { // Will have remote link to logo info.put("harvesterUri", StringUtils.removeEnd(((Geonet20Harvester) harvester).getParams().host, "/")); } + else if (harvester instanceof WebDavHarvester) { + // Will have remote link to logo + info.put("harvesterUri", StringUtils.removeEnd(((WebDavHarvester) harvester).getParams().url, "/")); + } else { logger.error("Unknown instanceof type for harvester {}", harvester.getClass()); }