georchestra/datadir

datafeeder - defaultResourceType

Closed this issue · 4 comments

The datafeeder-generated metadata should have

<gmd:hierarchyLevel>
<gmd:MD_ScopeCode codeList="http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#MD_ScopeCode" codeListValue="dataset"/>
</gmd:hierarchyLevel>

... rather than

<gmd:hierarchyLevel>
<gmd:MD_ScopeCode codeList="http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#MD_ScopeCode" codeListValue="series"/>
</gmd:hierarchyLevel>

Since https://github.com/georchestra/datadir/pull/233/files this is dynamically controlled by the datafeeder.publishing.geonetwork.defaultResourceType property.

All branches master, docker-master, 23.0 and docker-23.0 have the following setting in datafeeder.properties:

# defaults to series
#datafeeder.publishing.geonetwork.defaultResourceType=dataset

... which is contradictory.

The default value should be "dataset" rather than "series".

If i understand correctly it is just a matter of the comment here that need to be changed ? https://github.com/georchestra/datadir/blob/docker-master/datafeeder/datafeeder.properties#L76

hopefully yes