Skip to content

Commit

Permalink
Merge pull request #63 from aodn/features/5862-logo-fix
Browse files Browse the repository at this point in the history
Add one missing type
  • Loading branch information
HavierD authored Oct 2, 2024
2 parents 18bb674 + 83e6ef5 commit 600d4d9
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 600d4d9

Please sign in to comment.