Skip to content

Commit

Permalink
ebooks: create holdings automatically after record harvesting
Browse files Browse the repository at this point in the history
* Adds online type to item types resource.
* Adds is_online to location resource.
* Adds online_harvested_source to the organisation resource.
* Adds extended validation for the resource location field is_online.
* Adds extended validation for the resource item_type field type.
* Adds an option to setup script to continue process after holding_items generation.
* Fixes some variables snake cases.
* Fixes typos.

Co-Authored-by: Alicia Zangger <[email protected]>
Co-Authored-by: Bertrand Zuchuat <[email protected]>
Co-Authored-by: Aly Badr <[email protected]>
  • Loading branch information
3 people committed Oct 1, 2019
1 parent 2df5857 commit c7eeaa9
Show file tree
Hide file tree
Showing 40 changed files with 41,871 additions and 2,112 deletions.
14,806 changes: 14,262 additions & 544 deletions data/holdings_big.json

Large diffs are not rendered by default.

3,500 changes: 3,328 additions & 172 deletions data/holdings_small.json

Large diffs are not rendered by default.

19 changes: 15 additions & 4 deletions data/item_types.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[
{
"pid": "1",
"$schema": "https://ils.rero.ch/schema/item_types/item_type-v0.0.1.json",
"name": "Standard",
"description": "Standard checkout.",
Expand All @@ -8,6 +9,7 @@
}
},
{
"pid": "2",
"$schema": "https://ils.rero.ch/schema/item_types/item_type-v0.0.1.json",
"name": "Short",
"description": "Short checkout.",
Expand All @@ -16,6 +18,7 @@
}
},
{
"pid": "3",
"$schema": "https://ils.rero.ch/schema/item_types/item_type-v0.0.1.json",
"name": "On-site",
"description": "On-site consultation.",
Expand All @@ -24,6 +27,7 @@
}
},
{
"pid": "4",
"$schema": "https://ils.rero.ch/schema/item_types/item_type-v0.0.1.json",
"name": "No checkout",
"description": "No checkout.",
Expand All @@ -32,6 +36,7 @@
}
},
{
"pid": "5",
"$schema": "https://ils.rero.ch/schema/item_types/item_type-v0.0.1.json",
"name": "Standard adult",
"description": "Standard checkout for adults only (16+).",
Expand All @@ -40,6 +45,7 @@
}
},
{
"pid": "6",
"$schema": "https://ils.rero.ch/schema/item_types/item_type-v0.0.1.json",
"name": "Short adult",
"description": "Short checkout for adults only (16+).",
Expand All @@ -48,6 +54,7 @@
}
},
{
"pid": "7",
"$schema": "https://ils.rero.ch/schema/item_types/item_type-v0.0.1.json",
"name": "Standard",
"description": "Standard checkout.",
Expand All @@ -56,19 +63,23 @@
}
},
{
"pid": "8",
"$schema": "https://ils.rero.ch/schema/item_types/item_type-v0.0.1.json",
"name": "No circulation",
"name": "Online",
"description": "Ebooks dedicated category.",
"organisation": {
"$ref": "https://ils.rero.ch/api/organisations/1"
}
},
"type": "online"
},
{
"pid": "9",
"$schema": "https://ils.rero.ch/schema/item_types/item_type-v0.0.1.json",
"name": "No circulation",
"name": "Online",
"description": "Ebooks dedicated category.",
"organisation": {
"$ref": "https://ils.rero.ch/api/organisations/2"
}
},
"type": "online"
}
]
Loading

0 comments on commit c7eeaa9

Please sign in to comment.