Skip to content

Commit

Permalink
Merge pull request #112 from nulib/inv_description
Browse files Browse the repository at this point in the history
0.2.1 - Change inventory_title to description
  • Loading branch information
SoFrans authored Apr 15, 2024
2 parents 6631a8a + 8efac1f commit a04dbce
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions nulrdcscripts/aproc/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down Expand Up @@ -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"]],
Expand Down
2 changes: 1 addition & 1 deletion nulrdcscripts/ingest/inventory_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
2 changes: 1 addition & 1 deletion nulrdcscripts/ingest/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions nulrdcscripts/vproc/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>",
Expand Down

0 comments on commit a04dbce

Please sign in to comment.