Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

consortium: metada for two organisations #287

Merged
merged 1 commit into from
May 13, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ include docker/postgres/Dockerfile
include Dockerfile
include scripts/bootstrap
include scripts/console
include scripts/dojson
include scripts/server
include scripts/setup
include scripts/update
Expand Down
15 changes: 15 additions & 0 deletions data/circulation_policies.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,21 @@
"policy_library_level": false,
"is_default": true
},
{
"$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/2"
},
"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": "Site d'Aoste: short",
Expand Down
8 changes: 8 additions & 0 deletions data/item_types.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,13 @@
"organisation": {
"$ref": "https://ils.rero.ch/api/organisations/1"
}
},
{
"$schema": "https://ils.rero.ch/schema/item_types/item_type-v0.0.1.json",
"name": "Standard",
"description": "Standard checkout.",
"organisation": {
"$ref": "https://ils.rero.ch/api/organisations/2"
}
}
]
12 changes: 6 additions & 6 deletions data/items10k.json
Original file line number Diff line number Diff line change
Expand Up @@ -318588,10 +318588,10 @@
"call_number": "22757",
"status": "on_shelf",
"location": {
"$ref": "https://ils.rero.ch/api/locations/1"
"$ref": "https://ils.rero.ch/api/locations/13"
},
"item_type": {
"$ref": "https://ils.rero.ch/api/item_types/4"
"$ref": "https://ils.rero.ch/api/item_types/7"
},
"document": {
"$ref": "https://ils.rero.ch/api/documents/1"
Expand All @@ -318602,10 +318602,10 @@
"call_number": "22758",
"status": "on_shelf",
"location": {
"$ref": "https://ils.rero.ch/api/locations/1"
"$ref": "https://ils.rero.ch/api/locations/13"
},
"item_type": {
"$ref": "https://ils.rero.ch/api/item_types/6"
"$ref": "https://ils.rero.ch/api/item_types/7"
},
"document": {
"$ref": "https://ils.rero.ch/api/documents/1"
Expand All @@ -318616,10 +318616,10 @@
"call_number": "22759",
"status": "on_shelf",
"location": {
"$ref": "https://ils.rero.ch/api/locations/11"
"$ref": "https://ils.rero.ch/api/locations/12"
},
"item_type": {
"$ref": "https://ils.rero.ch/api/item_types/6"
"$ref": "https://ils.rero.ch/api/item_types/7"
},
"document": {
"$ref": "https://ils.rero.ch/api/documents/1"
Expand Down
12 changes: 6 additions & 6 deletions data/items1k.json
Original file line number Diff line number Diff line change
Expand Up @@ -39848,10 +39848,10 @@
"call_number": "02847",
"status": "on_shelf",
"location": {
"$ref": "https://ils.rero.ch/api/locations/5"
"$ref": "https://ils.rero.ch/api/locations/13"
},
"item_type": {
"$ref": "https://ils.rero.ch/api/item_types/6"
"$ref": "https://ils.rero.ch/api/item_types/7"
},
"document": {
"$ref": "https://ils.rero.ch/api/documents/1"
Expand All @@ -39862,10 +39862,10 @@
"call_number": "02848",
"status": "on_shelf",
"location": {
"$ref": "https://ils.rero.ch/api/locations/1"
"$ref": "https://ils.rero.ch/api/locations/13"
},
"item_type": {
"$ref": "https://ils.rero.ch/api/item_types/5"
"$ref": "https://ils.rero.ch/api/item_types/7"
},
"document": {
"$ref": "https://ils.rero.ch/api/documents/1"
Expand All @@ -39876,10 +39876,10 @@
"call_number": "02849",
"status": "on_shelf",
"location": {
"$ref": "https://ils.rero.ch/api/locations/8"
"$ref": "https://ils.rero.ch/api/locations/12"
},
"item_type": {
"$ref": "https://ils.rero.ch/api/item_types/3"
"$ref": "https://ils.rero.ch/api/item_types/7"
},
"document": {
"$ref": "https://ils.rero.ch/api/documents/1"
Expand Down
12 changes: 6 additions & 6 deletions data/items300.json
Original file line number Diff line number Diff line change
Expand Up @@ -12366,10 +12366,10 @@
"call_number": "01818",
"status": "on_shelf",
"location": {
"$ref": "https://ils.rero.ch/api/locations/10"
"$ref": "https://ils.rero.ch/api/locations/12"
},
"item_type": {
"$ref": "https://ils.rero.ch/api/item_types/5"
"$ref": "https://ils.rero.ch/api/item_types/7"
},
"document": {
"$ref": "https://ils.rero.ch/api/documents/2"
Expand All @@ -12380,10 +12380,10 @@
"call_number": "01819",
"status": "on_shelf",
"location": {
"$ref": "https://ils.rero.ch/api/locations/5"
"$ref": "https://ils.rero.ch/api/locations/13"
},
"item_type": {
"$ref": "https://ils.rero.ch/api/item_types/1"
"$ref": "https://ils.rero.ch/api/item_types/7"
},
"document": {
"$ref": "https://ils.rero.ch/api/documents/1"
Expand All @@ -12394,10 +12394,10 @@
"call_number": "01820",
"status": "on_shelf",
"location": {
"$ref": "https://ils.rero.ch/api/locations/10"
"$ref": "https://ils.rero.ch/api/locations/12"
},
"item_type": {
"$ref": "https://ils.rero.ch/api/item_types/1"
"$ref": "https://ils.rero.ch/api/item_types/7"
},
"document": {
"$ref": "https://ils.rero.ch/api/documents/1"
Expand Down
105 changes: 104 additions & 1 deletion data/libraries.json
Original file line number Diff line number Diff line change
Expand Up @@ -426,5 +426,108 @@
"end_date": "2019-08-22"
}
]
},
{
"$schema": "https://ils.rero.ch/schema/libraries/library-v0.0.1.json",
"address": "Highlands, Scotland, Great Britain",
"code": "HOG",
"email": "reroilstest+magic1@gmail.com",
"name": "Hogwarts Library",
"organisation": {
"$ref": "https://ils.rero.ch/api/organisations/2"
},
"opening_hours": [
{
"day": "monday",
"is_open": true,
"times": [
{
"start_time": "09:00",
"end_time": "20:00"
}
]
},
{
"day": "tuesday",
"is_open": true,
"times": [
{
"start_time": "09:00",
"end_time": "20:00"
}
]
},
{
"day": "wednesday",
"is_open": true,
"times": [
{
"start_time": "09:00",
"end_time": "20:00"
}
]
},
{
"day": "thursday",
"is_open": true,
"times": [
{
"start_time": "09:00",
"end_time": "20:00"
}
]
},
{
"day": "friday",
"is_open": true,
"times": [
{
"start_time": "09:00",
"end_time": "20:00"
}
]
},
{
"day": "saturday",
"is_open": true,
"times": [
{
"start_time": "13:00",
"end_time": "17:00"
}
]
},
{
"day": "sunday",
"is_open": false,
"times": []
}
],
"exception_dates": [
{
"title": "House Cup Ceremony",
"is_open": false,
"start_date": "2019-06-30",
"repeat": {
"interval": 1,
"period": "yearly",
"data": [
8
]
}
},
{
"title": "Hogwarts Quidditch Cup: final match",
"is_open": false,
"start_date": "2019-04-15",
"repeat": {
"interval": 1,
"period": "yearly",
"data": [
8
]
}
}
]
}
]
]
9 changes: 9 additions & 0 deletions data/loans.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,14 @@
"rank_2": 1,
"requests": 2
}
},
{
"barcode": "3050124311",
"loans": {
"active": 1
},
"requests": {
"requests": 1
}
}
]
16 changes: 16 additions & 0 deletions data/locations.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,21 @@
"library": {
"$ref": "https://ils.rero.ch/api/libraries/4"
}
},
{
"$schema": "https://ils.rero.ch/schema/locations/location-v0.0.1.json",
"code": "HOG-RESTR",
"name": "Restricted Section",
"library": {
"$ref": "https://ils.rero.ch/api/libraries/5"
}
},
{
"$schema": "https://ils.rero.ch/schema/locations/location-v0.0.1.json",
"code": "HOG-PUBL",
"name": "Public Section",
"library": {
"$ref": "https://ils.rero.ch/api/libraries/5"
}
}
]
17 changes: 12 additions & 5 deletions data/organisations.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
{
"$schema": "https://ils.rero.ch/schema/organisations/organisation-v0.0.1.json",
"address": "Via Challand 132, 11100 Aosta",
"name": "R\u00e9seau des biblioth\u00e8ques du Canton d'Aoste"
}
[
{
"$schema": "https://ils.rero.ch/schema/organisations/organisation-v0.0.1.json",
"address": "Via Challand 132, 11100 Aosta",
"name": "R\u00e9seau des biblioth\u00e8ques du Canton d'Aoste"
},
{
"$schema": "https://ils.rero.ch/schema/organisations/organisation-v0.0.1.json",
"address": "Highlands, Scotland, Great Britain",
"name": "Libraries of the British Ministry of Magic"
}
]
8 changes: 8 additions & 0 deletions data/patron_types.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,13 @@
"organisation": {
"$ref": "https://ils.rero.ch/api/organisations/1"
}
},
{
"$schema": "https://ils.rero.ch/schema/patron_types/patron_type-v0.0.1.json",
"name": "Standard",
"description": "Standard patron.",
"organisation": {
"$ref": "https://ils.rero.ch/api/organisations/2"
}
}
]
38 changes: 38 additions & 0 deletions data/users.json
Original file line number Diff line number Diff line change
Expand Up @@ -236,5 +236,43 @@
"street": "Vignettes 25",
"communication_channel": "email",
"communication_language": "de"
},
{
"$schema": "https://ils.rero.ch/schema/patrons/patron-v0.0.1.json",
"birth_date": "1955-01-30",
"city": "Hogsmeade",
"email": "reroilstest+irma@gmail.com",
"first_name": "Irma",
"roles": [
"librarian"
],
"last_name": "Pince",
"library": {
"$ref": "https://ils.rero.ch/api/libraries/5"
},
"password": "123456",
"phone": "+01411234567",
"postal_code": "0000",
"street": "High Street"
},
{
"$schema": "https://ils.rero.ch/schema/patrons/patron-v0.0.1.json",
"barcode": "3050124311",
"birth_date": "2001-06-07",
"city": "London",
"email": "reroilstest+harry@gmail.com",
"first_name": "Harry",
"roles": [
"patron"
],
"last_name": "Potter",
"password": "123456",
"patron_type": {
"$ref": "https://ils.rero.ch/api/patron_types/4"
},
"postal_code": "55555",
"street": "Magic Street 3",
"communication_channel": "email",
"communication_language": "en"
}
]
Loading