Skip to content

Commit

Permalink
Update CHANGELOG.rst, __init__.py, and iso_metadata.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jokiefer committed Sep 14, 2023
1 parent 0ada5fa commit 4079b8f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0



[v0.4.2] - 2023-09-14
---------------------

Fixed
~~~~~

* removes specific xpath of `_hierachy_level` which depends on `codeList` attribute to collect the codeListValue anyway


[v0.4.1] - 2023-05-26
---------------------
Expand Down
2 changes: 1 addition & 1 deletion ows_lib/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = "0.4.1"
__version__ = "0.4.2"
VERSION = __version__ # synonym
9 changes: 8 additions & 1 deletion ows_lib/xml_mapper/iso_metadata/iso_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,15 @@ class MdMetadata(BaseIsoMetadata):
file_identifier = xmlmap.StringField(
xpath="gmd:fileIdentifier/gco:CharacterString")
# language = xmlmap.StringField(xpath=f"{NS_WC}identificationInfo']//{NS_WC}language']/{NS_WC}LanguageCode']")

# TODO: add a default value such as http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#MD_ScopeCode for example?
_hierarchy_level_code_list = xmlmap.StringField(
xpath="gmd:hierarchyLevel/gmd:MD_ScopeCode/@codeList"

)
_hierarchy_level = xmlmap.StringField(
xpath="gmd:hierarchyLevel/gmd:MD_ScopeCode[@codeList='http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/codelist/ML_gmxCodelists.xml#MD_ScopeCode']/@codeListValue")
xpath="gmd:hierarchyLevel/gmd:MD_ScopeCode/@codeListValue")

_date_stamp_date = xmlmap.DateField(xpath="gmd:dateStamp/gco:Date")
_date_stamp_date_time = xmlmap.DateTimeField(
xpath="gmd:dateStamp/gco:DateTime")
Expand Down

0 comments on commit 4079b8f

Please sign in to comment.