core-geonetwork icon indicating copy to clipboard operation
core-geonetwork copied to clipboard

Harvester "Override" option updates the metadata source, but not the harvested flag

Open josegar74 opened this issue 4 years ago • 0 comments

Override option in harvesters allow to override a metadata that is already in the catalogue, but managed by locally or by other harvester.

The code is similar to all the harvesters that support this option:

https://github.com/geonetwork/core-geonetwork/blob/20693c711a6404d49208364adc2a63202d1ec6ad/harvesters/src/main/java/org/fao/geonet/kernel/harvest/harvester/csw/Aligner.java#L439-L445

It is assigned the source, but not the harvested flag (for example, if the metadata was created in the catalogue, not imported from other harvester). This causes that the metadata is listed in the Editor Dashboard when filtering by PROVIDED BY selecting the harvester source, but not when filtering by HARVESTED, with value Yes.

josegar74 avatar Apr 23 '20 08:04 josegar74