Skip to content

Commit a04dbce

Browse files
authored
Merge pull request #112 from nulib/inv_description
0.2.1 - Change inventory_title to description
2 parents 6631a8a + 8efac1f commit a04dbce

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

nulrdcscripts/aproc/helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ def import_inventories(source_inventories, skip_coding_history):
350350
["work_accession_number"],
351351
["filename"],
352352
["label"],
353-
["inventory_title"],
353+
["description", "inventory_title"],
354354
["record date/time"],
355355
["housing/container markings"],
356356
["condition notes"],
@@ -449,7 +449,7 @@ def import_inventories(source_inventories, skip_coding_history):
449449
"work_accession_number": row[fieldnames["work_accession_number"]],
450450
"box/folder alma number": row[fieldnames["box/folder alma number"]],
451451
"barcode": row[fieldnames["barcode"]],
452-
"inventory title": row[fieldnames["inventory_title"]],
452+
"description": row[fieldnames["description"]],
453453
"record date": record_date,
454454
"container markings": container_markings,
455455
"condition notes": row[fieldnames["condition notes"]],

nulrdcscripts/ingest/inventory_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def get_description_fields(desc_arg: list[str], inventory_fields: list[str]):
171171
:rtype: list of str
172172
"""
173173
if not desc_arg:
174-
return ["inventory_title"]
174+
return ["description"]
175175

176176
#find missing description fields
177177
missing_fields = [

nulrdcscripts/ingest/params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
nargs = "*",
5050
action = "store",
5151
dest = "desc",
52-
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"',
52+
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"',
5353
)
5454
parser.add_argument(
5555
"--auxiliary",

nulrdcscripts/vproc/helpers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ def import_csv(csvInventory):
627627
["work_accession_number"],
628628
["box/folder alma number", "Box/Folder\nAlma number"],
629629
["barcode"],
630-
["inventory_title"],
630+
["description", "inventory_title"],
631631
["record date/time"],
632632
["housing/container markings"],
633633
["condition notes"],
@@ -680,7 +680,7 @@ def import_csv(csvInventory):
680680
id1 = row[fieldnames["work_accession_number"]]
681681
id2 = row[fieldnames["box/folder alma number"]]
682682
id3 = row[fieldnames["barcode"]]
683-
title = row[fieldnames["inventory_title"]]
683+
description = row[fieldnames["description"]]
684684
record_date = row[fieldnames["record date/time"]]
685685
container_markings = row[fieldnames["housing/container markings"]]
686686
if container_markings:
@@ -725,7 +725,7 @@ def import_csv(csvInventory):
725725
"accession number/call number": id1,
726726
"box/folder alma number": id2,
727727
"barcode": id3,
728-
"inventory_title": title,
728+
"description": description,
729729
"record date": record_date,
730730
"housing/container markings": container_markings,
731731
"condition notes": condition_notes,

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "nul-rdc-scripts"
3-
version = "0.2.0"
3+
version = "0.2.1"
44
description = "Scripts for NUL RDC Digitization Team"
55
authors = [
66
"Northwestern University Libraries <[email protected]>",

0 commit comments

Comments
 (0)