ReservesMigrator#
Add items to course reserves in FOLIO by linking existing items to courses.
When to Use This Task#
Adding reserve items to courses after courses have been created
Migrating reserve item assignments from legacy systems
Linking items to course listings
Configuration#
{
"name": "migrate_reserves",
"migrationTaskType": "ReservesMigrator",
"reservesFile": {
"file_name": "reserves.tsv"
}
}
Parameters#
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Yes |
The name of this task. |
|
string |
Yes |
Must be |
|
object |
Yes |
File definition with |
Source Data Requirements#
Location: Place CSV/TSV files in
iterations/<iteration>/source_data/reserves/Format: Tab-separated (TSV) or comma-separated (CSV) with header row
Prerequisites:
Run CoursesMigrator first
Items must exist in FOLIO (post items first)
Required Columns#
The reserves file must contain:
Column |
Description |
|---|---|
|
Barcode of the item to place on reserve |
|
UUID of the course listing |
|
UUID of the term (optional, for new course listings) |
Example Data#
item_barcode course_listing_id
1234567890 a1b2c3d4-e5f6-7890-abcd-ef1234567890
0987654321 a1b2c3d4-e5f6-7890-abcd-ef1234567890
Output Files#
Files are created in iterations/<iteration>/results/:
File |
Description |
|---|---|
Report files |
Migration statistics and error logs |
Examples#
Basic Reserves Migration#
{
"name": "migrate_reserves",
"migrationTaskType": "ReservesMigrator",
"reservesFile": {
"file_name": "reserves.tsv"
}
}
Running the Task#
folio-migration-tools mapping_files/config.json migrate_reserves --base_folder ./
See Also#
CoursesMigrator - Creating courses first
ItemsTransformer - Creating items first