Skip to content

Commit

Permalink
Merge pull request #60 from MITLibraries/ISS-59-fgdc-mapping-bug
Browse files Browse the repository at this point in the history
Fix mapping for FGDC gbl_resourceClass
  • Loading branch information
ghukill committed Dec 22, 2023
2 parents 4801673 + 51459c8 commit c4552c5
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 c4552c5

Please sign in to comment.