Skip to main content

A tool allowing you to migrate data from legacy ILS:s (Library systems) into FOLIO LSP

Project description

FOLIO Migration Tools

example workflowcodecov readthedocs

A toolkit that enables you to migrate data over from a legacy ILS system into FOLIO LSP

What is it good for?

FOLIO Migration tools enables you to migrate libraries with the most common ILS:s over to FOLIO without data losses or any major data transformation tasks. The tools transforms and loads the data providing you and the library with good actionable logs and data cleaning task lists together with the migrated data.

What data does it cover?

FOLIO Migration Tools currently covers the following data sets:

  • Catalog (Inventory and SRS in FOLIO terminology)
  • Circulation transactions (Open loans and requests)
  • Users/Patrons (In FOLIO, these share the same app/database)
  • Courses and Reserves (Course reserves)
  • Organizations (Vendor records)
  • Orders (limited support)

What additional functionality is on the roadmap?

This is the loose roadmap, in order of most likely implementations first

  • ERM-related objects
  • Financial records

Can I use the tools for ongoing imports and integrations?

The tools are primarliy maintained for performing initial data migrations. We recommend that you use native FOLIO functionality for ongoing loads where possible. In theory, these tools can be used for ongoing patron loads from systems like Banner, Workday, or PeopleSoft. But we recommend you to weigh your options carefully before going down this path.

Contributing

Want to contribute? Read the CONTRIBUTING.MD

Found an issue?

Report it on the Github Issue tracker

The scripts requires a FOLIO tenant with reference data properly set up. The script will throw messages telling what reference data is missing.

Installing

Make sure you are running Python 3.9 or above.

1. Using pip and venv

2.1. Create and activate a virtual environment

python -m venv ./.venv     # Creates a virtual env in the current folder
source .venv/bin/activate  # Activates the venv    

2. Install using pip:

python -m pip install folio_migration_tools

3. Test the installation by showing the help pages

python -m folio_migration_tools -h

2. Using pipenv

1. Run

pipenv install folio-migration-tools

2. Test the installation by showing the help pages

pipenv run python3 -m folio_migration_tools -h

FOLIO migration process

This repo plays the main part in a process using a collection of tools. The process itself is documented in more detail, including example configuration files, at this template repository In order to perform migrations according to this process, you need the following:

Internationalization

This repo uses Python-i18n to translate reports between languages, and to handle large strings for templates.

Any English string which will end up in a report should be wrapped in the function i18n.t from i18n:

Keys/Usage

i18n.t("Reports")+":"

Templating is achieved with %{[key]} blocks, and keyword arguments in the internationaliation:

i18n.t("Code '%{code}' not found in FOLIO",code=folio_code)

Long strings can use a placeholder key:

i18n.t("blurbs.Introduction.description")

With the full string in translations/en.json:

"blurbs.Introduction.description": "<br/>Data errors preventing records from being migrated

Translations Files

Translation files live in the translations directory, with en.json as the default.

Extract template files with the extract_translations script:

python scripts/extract_translations.py

Internationalizations

Other langauges translations live in translations/[locale].json. For example, Spanish would be es.json.

The keys must match the English keys, but the Values should be translated.

You can update a language file's keys with:

python scripts/update_language.py --target-lang [locale]

Translate all new strings, which begin with TRANSLATE, then commit.

Tips

  • Internationalize entire phrases or paragraphs, not just the constitutent words. Syntax and grammar vary significantly between languages.
  • Name template variables as generically as possible in the circumstance, and check translations for reusable translations.
  • In a block with sentences separately followed by values, such as a table, you only need to translate the sentences.

Running the scripts

For information on syntax, what files are needed and produced by the toolkit, refer to the documentation and example files in the template repository. We are building out the docs section in this repository as well:Documentation ¨

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

folio_migration_tools-1.8.17.post1.tar.gz (174.2 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file folio_migration_tools-1.8.17.post1.tar.gz.

File metadata

File hashes

Hashes for folio_migration_tools-1.8.17.post1.tar.gz
Algorithm Hash digest
SHA256 14e38e8bfca4ab3fbd7a48179c27f4e65219bec7b3d1de00396c4609a94752dd
MD5 e7a04f30306ecb514e192f852949a546
BLAKE2b-256 7caf2d0dfe093347ec49bf715c2b0ae02b09aa45b462258246ecceda57ec18b5

See more details on using hashes here.

Provenance

The following attestation bundles were made for folio_migration_tools-1.8.17.post1.tar.gz:

Publisher: python-publish.yml on FOLIO-FSE/folio_migration_tools

Attestations:

File details

Details for the file folio_migration_tools-1.8.17.post1-py3-none-any.whl.

File metadata

File hashes

Hashes for folio_migration_tools-1.8.17.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 7842ad1f2d6a02eede1a8135db344ab672af03cb616f3bc789599f352eea0789
MD5 8264e77c82e505b9d4f774d06b5094e1
BLAKE2b-256 556693646adc18c124fb80fa703295537a4097bc9a68fa84c0b27a728348d2e0

See more details on using hashes here.

Provenance

The following attestation bundles were made for folio_migration_tools-1.8.17.post1-py3-none-any.whl:

Publisher: python-publish.yml on FOLIO-FSE/folio_migration_tools

Attestations:

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page