Merge branch 'FuhuXia-master'

This commit is contained in:
amercader 2013-09-10 11:08:51 +01:00
commit 949599bbfd
3 changed files with 19 additions and 0 deletions

View File

@ -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]

View File

@ -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:

View File

@ -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=[