diff --git a/nulrdcscripts/aproc/helpers.py b/nulrdcscripts/aproc/helpers.py index f347529..0ec869c 100644 --- a/nulrdcscripts/aproc/helpers.py +++ b/nulrdcscripts/aproc/helpers.py @@ -350,7 +350,7 @@ def import_inventories(source_inventories, skip_coding_history): ["work_accession_number"], ["filename"], ["label"], - ["inventory_title"], + ["description", "inventory_title"], ["record date/time"], ["housing/container markings"], ["condition notes"], @@ -449,7 +449,7 @@ def import_inventories(source_inventories, skip_coding_history): "work_accession_number": row[fieldnames["work_accession_number"]], "box/folder alma number": row[fieldnames["box/folder alma number"]], "barcode": row[fieldnames["barcode"]], - "inventory title": row[fieldnames["inventory_title"]], + "description": row[fieldnames["description"]], "record date": record_date, "container markings": container_markings, "condition notes": row[fieldnames["condition notes"]], diff --git a/nulrdcscripts/ingest/inventory_helpers.py b/nulrdcscripts/ingest/inventory_helpers.py index 3c5ffff..f261c95 100644 --- a/nulrdcscripts/ingest/inventory_helpers.py +++ b/nulrdcscripts/ingest/inventory_helpers.py @@ -171,7 +171,7 @@ def get_description_fields(desc_arg: list[str], inventory_fields: list[str]): :rtype: list of str """ if not desc_arg: - return ["inventory_title"] + return ["description"] #find missing description fields missing_fields = [ diff --git a/nulrdcscripts/ingest/params.py b/nulrdcscripts/ingest/params.py index 1f34fba..8dce537 100644 --- a/nulrdcscripts/ingest/params.py +++ b/nulrdcscripts/ingest/params.py @@ -49,7 +49,7 @@ nargs = "*", action = "store", dest = "desc", - help = 'Use to specify column names to populate Meadow description field with. Can take multiple inputs. Information from each column will be separated by a ";" in the description. Example usage: -d "Date/Time" "Barcode". If not specified, script will default to looking for the column "inventory_title"', + help = 'Use to specify column names to populate Meadow description field with. Can take multiple inputs. Information from each column will be separated by a ";" in the description. Example usage: -d "Date/Time" "Barcode". If not specified, script will default to looking for the column "description"', ) parser.add_argument( "--auxiliary", diff --git a/nulrdcscripts/vproc/helpers.py b/nulrdcscripts/vproc/helpers.py index c17a0bf..b512800 100644 --- a/nulrdcscripts/vproc/helpers.py +++ b/nulrdcscripts/vproc/helpers.py @@ -627,7 +627,7 @@ def import_csv(csvInventory): ["work_accession_number"], ["box/folder alma number", "Box/Folder\nAlma number"], ["barcode"], - ["inventory_title"], + ["description", "inventory_title"], ["record date/time"], ["housing/container markings"], ["condition notes"], @@ -680,7 +680,7 @@ def import_csv(csvInventory): id1 = row[fieldnames["work_accession_number"]] id2 = row[fieldnames["box/folder alma number"]] id3 = row[fieldnames["barcode"]] - title = row[fieldnames["inventory_title"]] + description = row[fieldnames["description"]] record_date = row[fieldnames["record date/time"]] container_markings = row[fieldnames["housing/container markings"]] if container_markings: @@ -725,7 +725,7 @@ def import_csv(csvInventory): "accession number/call number": id1, "box/folder alma number": id2, "barcode": id3, - "inventory_title": title, + "description": description, "record date": record_date, "housing/container markings": container_markings, "condition notes": condition_notes, diff --git a/pyproject.toml b/pyproject.toml index 42b6bf6..2eec3c8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "nul-rdc-scripts" -version = "0.2.0" +version = "0.2.1" description = "Scripts for NUL RDC Digitization Team" authors = [ "Northwestern University Libraries ",