Skip to content

Commit

Permalink
Merge pull request #4 from srappel/main
Browse files Browse the repository at this point in the history
Change the gbl_mdVersion_s field to Aardvark instead of crosswalking
  • Loading branch information
karenmajewicz authored May 15, 2024
2 parents 15d2227 + d60e288 commit 9b4ff87
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Output files
aardvark/*
!aardvark/.gitkeep

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down
7 changes: 7 additions & 0 deletions 1.0-to-aardvark.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ def schema_update(filepath):
for old_schema, new_schema in crosswalk.items():
if old_schema in data:
data[new_schema] = data.pop(old_schema)

# Change the metadata type:
data["gbl_mdVersion_s"] = "Aardvark"

# Remove geoblacklight_version
if "geoblacklight_version" in data:
data.pop("geoblacklight_version")

# check for multi-valued fields - if so, convert its value to an array
data = string2array(data)
Expand Down
Empty file added aardvark/.gitkeep
Empty file.
3 changes: 1 addition & 2 deletions crosswalk.csv
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@ dct_references_s,dct_references_s
layer_slug_s,id
dc_identifier_s,dct_identifier_sm
layer_modified_dt,gbl_mdModified_dt
geoblacklight_version,gbl_mdVersion_s
suppressed_b,gbl_suppressed_b
suppressed_b,gbl_suppressed_b

0 comments on commit 9b4ff87

Please # to comment.