Skip to content

Commit

Permalink
Fix mapping for FGDC gbl_resourceClass
Browse files Browse the repository at this point in the history
Closes #59
  • Loading branch information
ghukill committed Dec 22, 2023
1 parent 4801673 commit 51459c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion harvester/records/fgdc.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def _gbl_resourceClass_sm(self) -> list[str]:
value_map = {
"vector digital data": "Datasets",
"raster digital data": "Datasets",
"remote-sensing image": "Image",
"remote-sensing image": "Imagery",
}
xpath_expr = """
//idinfo
Expand Down
2 changes: 1 addition & 1 deletion tests/test_records/test_fgdc.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def test_fgdc_record_required_dct_title_s_missing_raises_error(


def test_fgdc_record_required_gbl_resourceClass_sm(fgdc_source_record_required_fields):
assert fgdc_source_record_required_fields._gbl_resourceClass_sm() == ["Image"]
assert fgdc_source_record_required_fields._gbl_resourceClass_sm() == ["Imagery"]


def test_fgdc_record_required_gbl_resourceClass_sm_missing_return_empty_list(
Expand Down

0 comments on commit 51459c8

Please sign in to comment.