Merge branch 'FuhuXia-master'
This commit is contained in:
commit
949599bbfd
|
@ -238,6 +238,10 @@ class SpatialHarvester(HarvesterBase):
|
|||
]:
|
||||
extras[name] = iso_values[name]
|
||||
|
||||
if len(iso_values.get('progress', [])):
|
||||
extras['progress'] = iso_values['progress'][0]
|
||||
else:
|
||||
extras['progress'] = ''
|
||||
|
||||
if len(iso_values.get('resource-type', [])):
|
||||
extras['resource-type'] = iso_values['resource-type'][0]
|
||||
|
|
|
@ -204,6 +204,11 @@ class GeminiHarvester(SpatialHarvester):
|
|||
]:
|
||||
extras[name] = gemini_values[name]
|
||||
|
||||
if len(iso_values.get('progress', [])):
|
||||
extras['progress'] = iso_values['progress'][0]
|
||||
else:
|
||||
extras['progress'] = ''
|
||||
|
||||
extras['resource-type'] = gemini_values['resource-type'][0]
|
||||
|
||||
# Use-constraints can contain values which are:
|
||||
|
|
|
@ -481,6 +481,16 @@ class ISODocument(MappedXmlDocument):
|
|||
],
|
||||
multiplicity="0..1",
|
||||
),
|
||||
ISOElement(
|
||||
name="progress",
|
||||
search_paths=[
|
||||
"gmd:identificationInfo/gmd:MD_DataIdentification/gmd:status/gmd:MD_ProgressCode/@codeListValue",
|
||||
"gmd:identificationInfo/srv:SV_ServiceIdentification/gmd:status/gmd:MD_ProgressCode/@codeListValue",
|
||||
"gmd:identificationInfo/gmd:MD_DataIdentification/gmd:status/gmd:MD_ProgressCode/text()",
|
||||
"gmd:identificationInfo/srv:SV_ServiceIdentification/gmd:status/gmd:MD_ProgressCode/text()",
|
||||
],
|
||||
multiplicity="*",
|
||||
),
|
||||
ISOElement(
|
||||
name="keyword-inspire-theme",
|
||||
search_paths=[
|
||||
|
|
Loading…
Reference in New Issue