-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Description
During SAF package creation, if a bitstream filename was duplicated then an identifier was added (e.g., a.pdf ==> `a_uuid.pdf`` thus a direct comparison from ERA to Scholaris on the filename fails here:
dspace_api_tools/src/compare_csv.py
Lines 619 to 622 in 6d6ed8a
| "name": { | |
| "columns": {"jupiter": "filename", "dspace": "bitstream.name"}, | |
| "comparison_function": string_compare_ignore_whitespace, | |
| }, |
Idea to fix
- quick: create a new comparison function that removes the added part
- longer: use syntax like the "special_type_compare" to pass multiple columns into the comparison and try to match the addition to the filename string:
dspace_api_tools/src/compare_csv.py
Line 451 in 6d6ed8a
def special_type_compare(row, key, value):
The later exception to the cleaner rules grew like one-time code sometimes does.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels