Skip to content

Commit

Permalink
Add one missing type
Browse files Browse the repository at this point in the history
  • Loading branch information
utas-raymondng committed Oct 2, 2024
1 parent 1dcf996 commit 83e6ef5
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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());
}
Expand Down

0 comments on commit 83e6ef5

Please sign in to comment.