Skip to content

Commit

Permalink
add dataset-language and dataset-language-other
Browse files Browse the repository at this point in the history
  • Loading branch information
fostermh committed Aug 25, 2023
1 parent dc39422 commit c2bbfbc
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions ckanext/spatial/model/harvested_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -1278,10 +1278,23 @@ class ISODocument(MappedXmlDocument):
ISOElement(
name="dataset-language",
search_paths=[
# ISO19139
"gmd:identificationInfo/gmd:MD_DataIdentification/gmd:language/gmd:LanguageCode/@codeListValue",
"gmd:identificationInfo/srv:SV_ServiceIdentification/gmd:language/gmd:LanguageCode/@codeListValue",
"gmd:identificationInfo/gmd:MD_DataIdentification/gmd:language/gmd:LanguageCode/text()",
"gmd:identificationInfo/srv:SV_ServiceIdentification/gmd:language/gmd:LanguageCode/text()",
# ISO19115-3
"mdb:identificationInfo/*[contains(local-name(), 'Identification')]/mri:defaultLocale/lan:PT_Locale/lan:language/lan:LanguageCode/@codeListValue"
"mdb:identificationInfo/*[contains(local-name(), 'Identification')]/mri:defaultLocale/lan:PT_Locale/lan:language/lan:LanguageCode/text()"
],
multiplicity="*",
),
ISOElement(
name="dataset-language-other",
search_paths=[
# ISO19115-3
"mdb:identificationInfo/*[contains(local-name(), 'Identification')]/mri:otherLocale/lan:PT_Locale/lan:language/lan:LanguageCode/@codeListValue"
"mdb:identificationInfo/*[contains(local-name(), 'Identification')]/mri:otherLocale/lan:PT_Locale/lan:language/lan:LanguageCode/text()"
],
multiplicity="*",
),
Expand Down

0 comments on commit c2bbfbc

Please sign in to comment.