FOLIO-FSE / FOLIO-FSE/folio_migration_tools

Bypass organization category maps

Open
#651 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
14
Forks
10
Avg merge
55m
Merged PRs (30d)
7

Description

I have multiple categories in email, phone, url etc. that are already mapped to ref data in the prepped spreadsheet. Ideally I could bypass the separate tsv maps for OrganizationTransformer and just use the values found in my prepped sheet. Something similar to `useGroupMap` in UserTransformer.

Org map example:

```json
[
{
"folio_field": "emails[0].categories[0]",
"legacy_field": "e-mails_Categories_0",
"value": "",
"description": "",
"fallback_legacy_field": ""
},
{
"folio_field": "emails[0].categories[1]",
"legacy_field": "adressen_Categories_1",
"value": "",
"description": "",
"fallback_legacy_field": ""
},
{
"folio_field": "emails[0].categories[2]",
"legacy_field": "e-mails_Categories_2",
"value": "",
"description": "",
"fallback_legacy_field": ""
}
]
```

Spreadsheet columns example:

e-mails_Categories_0 | e-mails_Categories_1 | e-mails_Categories_2 | e-mails_Categories_3 | e-mails_Categories_4
-- | -- | -- | -- | --
Books | eBooks |   |   |  
Journals |   |   |   |  
Hardware |   |   |   |  
Journals |   |   |   |  
Journals | eJournals | Databases | Books | eBooks
Journals |   |   |   |  

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.