folio-migration-tools 1.9.0a5__tar.gz → 1.9.0a6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/PKG-INFO +3 -3
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/pyproject.toml +1 -1
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/marc_rules_transformation/hrid_handler.py +2 -4
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/marc_rules_transformation/rules_mapper_bibs.py +4 -1
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/LICENSE +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/README.md +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/__init__.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/__main__.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/circulation_helper.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/colors.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/config_file_load.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/custom_dict.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/custom_exceptions.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/extradata_writer.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/folder_structure.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/helper.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/holdings_helper.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/i18n_config.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/library_configuration.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/mapper_base.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/mapping_file_transformation/__init__.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/mapping_file_transformation/courses_mapper.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/mapping_file_transformation/holdings_mapper.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/mapping_file_transformation/item_mapper.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/mapping_file_transformation/manual_fee_fines_mapper.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/mapping_file_transformation/mapping_file_mapper_base.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/mapping_file_transformation/notes_mapper.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/mapping_file_transformation/order_mapper.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/mapping_file_transformation/organization_mapper.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/mapping_file_transformation/ref_data_mapping.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/mapping_file_transformation/user_mapper.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/marc_rules_transformation/__init__.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/marc_rules_transformation/conditions.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/marc_rules_transformation/holdings_statementsparser.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/marc_rules_transformation/loc_language_codes.xml +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/marc_rules_transformation/marc_file_processor.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/marc_rules_transformation/marc_reader_wrapper.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/marc_rules_transformation/rules_mapper_authorities.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/marc_rules_transformation/rules_mapper_base.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/marc_rules_transformation/rules_mapper_holdings.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/migration_report.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/migration_tasks/__init__.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/migration_tasks/authority_transformer.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/migration_tasks/batch_poster.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/migration_tasks/bibs_transformer.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/migration_tasks/courses_migrator.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/migration_tasks/holdings_csv_transformer.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/migration_tasks/holdings_marc_transformer.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/migration_tasks/items_transformer.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/migration_tasks/loans_migrator.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/migration_tasks/manual_fee_fines_transformer.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/migration_tasks/migration_task_base.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/migration_tasks/orders_transformer.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/migration_tasks/organization_transformer.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/migration_tasks/requests_migrator.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/migration_tasks/reserves_migrator.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/migration_tasks/user_transformer.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/task_configuration.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/test_infrastructure/__init__.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/test_infrastructure/mocked_classes.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/transaction_migration/__init__.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/transaction_migration/legacy_loan.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/transaction_migration/legacy_request.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/transaction_migration/legacy_reserve.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/transaction_migration/transaction_result.py +0 -0
- {folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/translations/en.json +0 -0
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
2
|
Name: folio_migration_tools
|
|
3
|
-
Version: 1.9.
|
|
3
|
+
Version: 1.9.0a6
|
|
4
4
|
Summary: A tool allowing you to migrate data from legacy ILS:s (Library systems) into FOLIO LSP
|
|
5
|
-
Home-page: https://github.com/FOLIO-FSE/folio_migration_tools
|
|
6
5
|
License: MIT
|
|
7
6
|
Keywords: FOLIO,ILS,LSP,Library Systems,MARC21,Library data
|
|
8
7
|
Author: Theodor Tolstoy
|
|
@@ -27,6 +26,7 @@ Requires-Dist: pyhumps (>=3.7.3,<4.0.0)
|
|
|
27
26
|
Requires-Dist: pymarc (>=5.2.3,<6.0.0)
|
|
28
27
|
Requires-Dist: python-dateutil (>=2.8.2,<3.0.0)
|
|
29
28
|
Requires-Dist: python-i18n (>=0.3.9,<0.4.0)
|
|
29
|
+
Project-URL: Homepage, https://github.com/FOLIO-FSE/folio_migration_tools
|
|
30
30
|
Project-URL: Repository, https://github.com/FOLIO-FSE/folio_migration_tools
|
|
31
31
|
Description-Content-Type: text/markdown
|
|
32
32
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "folio_migration_tools"
|
|
3
|
-
version = "1.9.
|
|
3
|
+
version = "1.9.0a6"
|
|
4
4
|
description = "A tool allowing you to migrate data from legacy ILS:s (Library systems) into FOLIO LSP"
|
|
5
5
|
authors = ["Theodor Tolstoy <github.teddes@tolstoy.se>", "Lisa Sjögren", "Brooks Travis", "Jeremy Nelson", "Clinton Bradford"]
|
|
6
6
|
license = "MIT"
|
|
@@ -6,9 +6,7 @@ import httpx
|
|
|
6
6
|
import i18n
|
|
7
7
|
from folio_uuid import FOLIONamespaces
|
|
8
8
|
from folioclient import FolioClient
|
|
9
|
-
from pymarc import Field
|
|
10
|
-
from pymarc import Record
|
|
11
|
-
from pymarc import Subfield
|
|
9
|
+
from pymarc import Field, Record, Subfield
|
|
12
10
|
|
|
13
11
|
from folio_migration_tools.custom_exceptions import TransformationProcessError
|
|
14
12
|
from folio_migration_tools.helper import Helper
|
|
@@ -220,7 +218,7 @@ class HRIDHandler:
|
|
|
220
218
|
),
|
|
221
219
|
)
|
|
222
220
|
self.handle_035_generation(
|
|
223
|
-
marc_record, legacy_ids, self.migration_report, self.deactivate035_from001
|
|
221
|
+
marc_record, legacy_ids, self.migration_report, self.deactivate035_from001, False
|
|
224
222
|
)
|
|
225
223
|
Helper.log_data_issue(
|
|
226
224
|
legacy_ids,
|
|
@@ -24,6 +24,7 @@ from folio_migration_tools.custom_exceptions import (
|
|
|
24
24
|
from folio_migration_tools.helper import Helper
|
|
25
25
|
from folio_migration_tools.library_configuration import (
|
|
26
26
|
FileDefinition,
|
|
27
|
+
HridHandling,
|
|
27
28
|
IlsFlavour,
|
|
28
29
|
LibraryConfiguration,
|
|
29
30
|
)
|
|
@@ -62,6 +63,8 @@ class BibsRulesMapper(RulesMapperBase):
|
|
|
62
63
|
[self.task_configuration.create_source_records, (not getattr(self.task_configuration, "data_import_marc", False))]
|
|
63
64
|
)
|
|
64
65
|
self.data_import_marc = self.task_configuration.data_import_marc
|
|
66
|
+
if self.data_import_marc:
|
|
67
|
+
self.hrid_handler.deactivate035_from001 = True
|
|
65
68
|
self.start = time.time()
|
|
66
69
|
|
|
67
70
|
def perform_initial_preparation(self, marc_record: pymarc.Record, legacy_ids):
|
|
@@ -73,7 +76,7 @@ class BibsRulesMapper(RulesMapperBase):
|
|
|
73
76
|
str(legacy_ids[-1]),
|
|
74
77
|
)
|
|
75
78
|
)
|
|
76
|
-
if self.create_source_records:
|
|
79
|
+
if self.create_source_records or self.hrid_handler.handling == HridHandling.preserve001:
|
|
77
80
|
self.hrid_handler.handle_hrid(
|
|
78
81
|
FOLIONamespaces.instances,
|
|
79
82
|
folio_instance,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/colors.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{folio_migration_tools-1.9.0a5 → folio_migration_tools-1.9.0a6}/src/folio_migration_tools/helper.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|