Skip to content

Commit

Permalink
Admin: Circulation policy
Browse files Browse the repository at this point in the history
* NEW: Angular Form

Co-authored-by: Aly Badr <[email protected]>
Signed-off-by: Bertrand Zuchuat <[email protected]>
  • Loading branch information
Garfield-fr and Aly Badr committed Feb 8, 2019
1 parent cd90ac1 commit 3470c0e
Show file tree
Hide file tree
Showing 81 changed files with 90,452 additions and 89,181 deletions.
51 changes: 37 additions & 14 deletions data/circulation_policies.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,41 @@
[
{
"$schema": "http://ils.rero.ch/schema/circ_policies/circ_policy-v0.0.1.json",
"name": "Default",
"description": "Default circulation policy.",
"organisation": {
"$ref": "https://ils.rero.ch/api/organisations/1"
},
"allow_checkout": true,
"checkout_duration": 30,
"allow_requests": true,
"number_renewals": 3,
"renewal_duration": 30,
"policy_library_level": false,
"is_default": true
},
{
"$schema": "http://ils.rero.ch/schema/circ_policies/circ_policy-v0.0.1.json",
"name": "standard",
"description": "Default standard circulation policy.",
"description": "Standard circulation policy.",
"organisation": {
"$ref": "http://ils.rero.ch/api/organisations/1"
"$ref": "https://ils.rero.ch/api/organisations/1"
},
"allow_checkout": true,
"checkout_duration": 30,
"allow_requests": true,
"number_renewals": 3,
"renewal_duration": 30,
"policy_library_level": false,
"is_default": false,
"settings": [
{
"patron_type": "1",
"item_type": "1"
"patron_type": {
"$ref": "https://ils.rero.ch/api/patron_types/1"
},
"item_type": {
"$ref": "https://ils.rero.ch/api/item_types/1"
}
}
]
},
Expand All @@ -24,21 +44,23 @@
"name": "short",
"description": "Short circulation policy.",
"organisation": {
"$ref": "http://ils.rero.ch/api/organisations/1"
"$ref": "https://ils.rero.ch/api/organisations/1"
},
"allow_checkout": true,
"checkout_duration": 10,
"allow_requests": true,
"number_renewals": 1,
"renewal_duration": 10,
"policy_library_level": true,
"libraries": [
"1"
],
"policy_library_level": false,
"is_default": false,
"settings": [
{
"patron_type": "1",
"item_type": "1"
"patron_type": {
"$ref": "https://ils.rero.ch/api/patron_types/1"
},
"item_type": {
"$ref": "https://ils.rero.ch/api/item_types/2"
}
}
]
},
Expand All @@ -47,10 +69,11 @@
"name": "on-site",
"description": "On-site circulation policy.",
"organisation": {
"$ref": "http://ils.rero.ch/api/organisations/1"
"$ref": "https://ils.rero.ch/api/organisations/1"
},
"allow_checkout": false,
"allow_requests": false,
"policy_library_level": false
"policy_library_level": false,
"is_default": false
}
]
]
18 changes: 9 additions & 9 deletions data/item_types.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
[
{
"$schema": "http://ils.rero.ch/schema/item_types/item_type-v0.0.1.json",
"$schema": "https://ils.rero.ch/schema/item_types/item_type-v0.0.1.json",
"name": "standard",
"description": "standard checkout",
"organisation": {
"$ref": "http://ils.rero.ch/api/organisations/1"
"$ref": "https://ils.rero.ch/api/organisations/1"
}
},
{
"$schema": "http://ils.rero.ch/schema/item_types/item_type-v0.0.1.json",
"$schema": "https://ils.rero.ch/schema/item_types/item_type-v0.0.1.json",
"name": "short",
"description": "short checkout",
"organisation": {
"$ref": "http://ils.rero.ch/api/organisations/1"
"$ref": "https://ils.rero.ch/api/organisations/1"
}
},
{
"$schema": "http://ils.rero.ch/schema/item_types/item_type-v0.0.1.json",
"$schema": "https://ils.rero.ch/schema/item_types/item_type-v0.0.1.json",
"name": "on-site",
"description": "on-site checkout",
"organisation": {
"$ref": "http://ils.rero.ch/api/organisations/1"
"$ref": "https://ils.rero.ch/api/organisations/1"
}
},
{
"$schema": "http://ils.rero.ch/schema/item_types/item_type-v0.0.1.json",
"$schema": "https://ils.rero.ch/schema/item_types/item_type-v0.0.1.json",
"name": "no-checkout",
"description": "no checkout",
"organisation": {
"$ref": "http://ils.rero.ch/api/organisations/1"
"$ref": "https://ils.rero.ch/api/organisations/1"
}
}
]
]
Loading

0 comments on commit 3470c0e

Please sign in to comment.