invenio-app-ils 4.5.0__py2.py3-none-any.whl → 5.0.0__py2.py3-none-any.whl

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.
Files changed (115) hide show
  1. invenio_app_ils/__init__.py +1 -1
  2. invenio_app_ils/assets/semantic-ui/less/theme.config +103 -0
  3. invenio_app_ils/circulation/api.py +9 -5
  4. invenio_app_ils/circulation/config.py +1 -0
  5. invenio_app_ils/circulation/loaders/schemas/json/loan_checkout.py +1 -1
  6. invenio_app_ils/circulation/loaders/schemas/json/loan_request.py +2 -2
  7. invenio_app_ils/circulation/notifications/api.py +9 -1
  8. invenio_app_ils/circulation/notifications/messages.py +2 -1
  9. invenio_app_ils/circulation/templates/invenio_app_ils_circulation/notifications/update_dates.html +19 -0
  10. invenio_app_ils/cli.py +92 -64
  11. invenio_app_ils/config.py +10 -2
  12. invenio_app_ils/documents/loaders/jsonschemas/document.py +1 -1
  13. invenio_app_ils/eitems/loaders/jsonschemas/eitems.py +2 -2
  14. invenio_app_ils/patrons/anonymization.py +0 -4
  15. invenio_app_ils/series/loaders/jsonschemas/series.py +1 -1
  16. invenio_app_ils/webpack.py +27 -0
  17. {invenio_app_ils-4.5.0.dist-info → invenio_app_ils-5.0.0.dist-info}/METADATA +56 -43
  18. {invenio_app_ils-4.5.0.dist-info → invenio_app_ils-5.0.0.dist-info}/RECORD +24 -112
  19. {invenio_app_ils-4.5.0.dist-info → invenio_app_ils-5.0.0.dist-info}/entry_points.txt +3 -0
  20. {invenio_app_ils-4.5.0.dist-info → invenio_app_ils-5.0.0.dist-info}/top_level.txt +0 -1
  21. invenio_app_ils/notifications/admin.py +0 -57
  22. tests/__init__.py +0 -8
  23. tests/api/__init__.py +0 -8
  24. tests/api/acquisition/__init__.py +0 -8
  25. tests/api/acquisition/test_acq_orders_crud.py +0 -99
  26. tests/api/acquisition/test_acq_orders_permissions.py +0 -104
  27. tests/api/acquisition/test_acq_providers_permissions.py +0 -83
  28. tests/api/circulation/__init__.py +0 -8
  29. tests/api/circulation/test_expired_loans.py +0 -88
  30. tests/api/circulation/test_loan_bulk_extend.py +0 -169
  31. tests/api/circulation/test_loan_checkout.py +0 -422
  32. tests/api/circulation/test_loan_default_durations.py +0 -43
  33. tests/api/circulation/test_loan_document_resolver.py +0 -18
  34. tests/api/circulation/test_loan_extend.py +0 -122
  35. tests/api/circulation/test_loan_item_permissions.py +0 -135
  36. tests/api/circulation/test_loan_item_resolver.py +0 -26
  37. tests/api/circulation/test_loan_list_permissions.py +0 -98
  38. tests/api/circulation/test_loan_patron_resolver.py +0 -38
  39. tests/api/circulation/test_loan_request.py +0 -338
  40. tests/api/circulation/test_loan_update.py +0 -150
  41. tests/api/circulation/test_notifications.py +0 -221
  42. tests/api/conftest.py +0 -227
  43. tests/api/document_requests/__init__.py +0 -8
  44. tests/api/document_requests/test_document_requests.py +0 -131
  45. tests/api/document_requests/test_document_requests_permissions.py +0 -159
  46. tests/api/document_requests/test_notifications_filter.py +0 -35
  47. tests/api/ill/__init__.py +0 -8
  48. tests/api/ill/test_ill_brw_crud.py +0 -74
  49. tests/api/ill/test_ill_brw_reqs_patron_loan_create_action.py +0 -198
  50. tests/api/ill/test_ill_brw_reqs_patron_loan_extension_actions.py +0 -280
  51. tests/api/ill/test_ill_brw_reqs_permissions.py +0 -163
  52. tests/api/ill/test_ill_providers_permissions.py +0 -82
  53. tests/api/ils/__init__.py +0 -8
  54. tests/api/ils/documents/__init__.py +0 -8
  55. tests/api/ils/documents/test_document_crud.py +0 -57
  56. tests/api/ils/documents/test_document_permissions.py +0 -100
  57. tests/api/ils/documents/test_document_resolvers.py +0 -35
  58. tests/api/ils/eitems/__init__.py +0 -8
  59. tests/api/ils/eitems/test_eitems_crud.py +0 -42
  60. tests/api/ils/eitems/test_eitems_permissions.py +0 -85
  61. tests/api/ils/eitems/test_files.py +0 -162
  62. tests/api/ils/items/__init__.py +0 -8
  63. tests/api/ils/items/test_apis.py +0 -43
  64. tests/api/ils/items/test_items_crud.py +0 -99
  65. tests/api/ils/items/test_items_permissions.py +0 -107
  66. tests/api/ils/records_relations/__init__.py +0 -8
  67. tests/api/ils/records_relations/helpers.py +0 -115
  68. tests/api/ils/records_relations/test_records_relations_parentchild.py +0 -560
  69. tests/api/ils/records_relations/test_records_relations_sequence.py +0 -294
  70. tests/api/ils/records_relations/test_records_relations_siblings.py +0 -751
  71. tests/api/ils/series/__init__.py +0 -8
  72. tests/api/ils/series/test_series_permissions.py +0 -95
  73. tests/api/ils/test_anonymization.py +0 -181
  74. tests/api/ils/test_apis.py +0 -76
  75. tests/api/ils/test_closures.py +0 -353
  76. tests/api/ils/test_errors.py +0 -125
  77. tests/api/ils/test_facets.py +0 -88
  78. tests/api/ils/test_internal_locations.py +0 -96
  79. tests/api/ils/test_loaders.py +0 -51
  80. tests/api/ils/test_metadata_extensions.py +0 -206
  81. tests/api/ils/test_notifications.py +0 -173
  82. tests/api/ils/test_notifications_mails.py +0 -37
  83. tests/api/ils/test_notifications_permissions.py +0 -55
  84. tests/api/ils/test_patrons.py +0 -102
  85. tests/api/ils/test_record_delete.py +0 -42
  86. tests/api/ils/test_record_permissions.py +0 -132
  87. tests/api/ils/test_resolvers.py +0 -205
  88. tests/api/ils/test_stats.py +0 -142
  89. tests/api/ils/test_tasks.py +0 -209
  90. tests/api/ils/test_vocabularies.py +0 -35
  91. tests/conftest.py +0 -221
  92. tests/data/acq_orders.json +0 -110
  93. tests/data/acq_providers.json +0 -12
  94. tests/data/document_requests.json +0 -77
  95. tests/data/documents.json +0 -238
  96. tests/data/eitems.json +0 -71
  97. tests/data/ill_borrowing_requests.json +0 -77
  98. tests/data/ill_providers.json +0 -12
  99. tests/data/internal_locations.json +0 -22
  100. tests/data/items.json +0 -304
  101. tests/data/loans.json +0 -133
  102. tests/data/loans_most_loaned.json +0 -128
  103. tests/data/locations.json +0 -26
  104. tests/data/series.json +0 -33
  105. tests/helpers.py +0 -107
  106. tests/templates/notifications/title_body.html +0 -8
  107. tests/templates/notifications/title_body_html.html +0 -13
  108. tests/templates/notifications/title_body_html_ctx.html +0 -13
  109. tests/templates/notifications/title_only.html +0 -3
  110. tests/test_post_logout_redirect.py +0 -23
  111. tests/test_version.py +0 -17
  112. /tests/templates/notifications/blank.html → /invenio_app_ils/assets/semantic-ui/templates/.gitkeep +0 -0
  113. {invenio_app_ils-4.5.0.dist-info → invenio_app_ils-5.0.0.dist-info}/WHEEL +0 -0
  114. {invenio_app_ils-4.5.0.dist-info → invenio_app_ils-5.0.0.dist-info}/licenses/AUTHORS.rst +0 -0
  115. {invenio_app_ils-4.5.0.dist-info → invenio_app_ils-5.0.0.dist-info}/licenses/LICENSE +0 -0
tests/data/eitems.json DELETED
@@ -1,71 +0,0 @@
1
- [
2
- {
3
- "pid": "eitemid-1",
4
- "created_by": {"type": "script", "value": "demo"},
5
- "document_pid": "docid-1",
6
- "eitem_type": "E-BOOK",
7
- "internal_notes": "An internal note",
8
- "description": "Description of the electronic item",
9
- "open_access": true,
10
- "document": {
11
- "title": "Document 1 title"
12
- }
13
- },
14
- {
15
- "pid": "eitemid-2",
16
- "created_by": {"type": "script", "value": "demo"},
17
- "document_pid": "docid-2",
18
- "eitem_type": "E-BOOK",
19
- "internal_notes": "An internal note",
20
- "description": "Description of the electronic item",
21
- "open_access": false,
22
- "document": {
23
- "title": "Document 2 title"
24
- }
25
- },
26
- {
27
- "$schema": "https://127.0.0.1:5000/schemas/eitems/eitem-v3.0.0.json",
28
- "bucket_id": "5d877356-59b2-4886-9e7f-0ba2cb6a5fd3",
29
- "document_pid": "docid-3",
30
- "eitem_type": "E-BOOK",
31
- "files": [
32
- {
33
- "bucket": "5d877356-59b2-4886-9e7f-0ba2cb6a5fd3",
34
- "checksum": "md5: 623bd0cc7ab348d72543c0a4d901daa4",
35
- "file_id": "5007ba23-ebf5-4664-ad8d-98d839d5acb0",
36
- "key": "file1.pdf",
37
- "size": 196879,
38
- "version_id": "284412f1-ef0c-4b4a-8c63-f85b40d02dc1"
39
- },
40
- {
41
- "bucket": "5d877356-59b2-4886-9e7f-0ba2cb6a5fd3",
42
- "checksum": "md5: 1b7ea8126d278ecbfa9fcb9b0d7dc5af",
43
- "file_id": "cd878cfd-e756-4355-98d3-21784f1633c2",
44
- "key": "file2.txt",
45
- "size": 16,
46
- "version_id": "f86b4dd2-88e6-4af7-bdd5-42aa6c5a7fbc"
47
- }
48
- ],
49
- "open_access": true,
50
- "pid": "eitemid-3",
51
- "created_by": {"type": "script", "value": "demo"}
52
- },
53
- {
54
- "$schema": "https://127.0.0.1:5000/schemas/eitems/eitem-v3.0.0.json",
55
- "document_pid": "docid-1",
56
- "eitem_type": "E-BOOK",
57
- "files": [],
58
- "open_access": true,
59
- "pid": "eitemid-4",
60
- "created_by": {"type": "script", "value": "demo"}
61
- },
62
- {
63
- "$schema": "https://127.0.0.1:5000/schemas/eitems/eitem-v3.0.0.json",
64
- "document_pid": "docid-1",
65
- "eitem_type": "E-BOOK",
66
- "files": [],
67
- "open_access": false,
68
- "pid": "eitemid-5",
69
- "created_by": {"type": "script", "value": "demo"}
70
- }
71
- ]
@@ -1,77 +0,0 @@
1
- [
2
- {
3
- "document_pid": "docid-1",
4
- "provider_pid": "ill-provid-1",
5
- "patron_pid": "1",
6
- "pid": "illbid-1",
7
- "status": "PENDING",
8
- "type": "PHYSICAL_COPY"
9
- },
10
- {
11
- "document_pid": "docid-2",
12
- "provider_pid": "ill-provid-1",
13
- "patron_pid": "2",
14
- "pid": "illbid-2",
15
- "status": "REQUESTED",
16
- "type": "DIGITAL"
17
- },
18
- {
19
- "document_pid": "docid-3",
20
- "provider_pid": "ill-provid-2",
21
- "patron_pid": "1",
22
- "pid": "illbid-3",
23
- "status": "ON_LOAN",
24
- "type": "PHYSICAL_COPY"
25
- },
26
- {
27
- "document_pid": "docid-4",
28
- "provider_pid": "ill-provid-2",
29
- "patron_pid": "1",
30
- "pid": "illbid-4",
31
- "status": "RETURNED",
32
- "type": "PHYSICAL_COPY"
33
- },
34
- {
35
- "document_pid": "docid-5",
36
- "provider_pid": "ill-provid-2",
37
- "patron_pid": "2",
38
- "pid": "illbid-5",
39
- "status": "CANCELLED",
40
- "cancel_reason": "USER_CANCEL",
41
- "type": "DIGITAL"
42
- },
43
- {
44
- "document_pid": "docid-3",
45
- "provider_pid": "ill-provid-1",
46
- "patron_pid": "2",
47
- "pid": "illbid-6",
48
- "status": "ON_LOAN",
49
- "type": "PHYSICAL_COPY"
50
- },
51
- {
52
- "document_pid": "docid-3",
53
- "provider_pid": "ill-provid-1",
54
- "patron_pid": "1",
55
- "pid": "illbid-7",
56
- "status": "ON_LOAN",
57
- "type": "PHYSICAL_COPY",
58
- "patron_loan": {
59
- "extension": {
60
- "status": "PENDING"
61
- }
62
- }
63
- },
64
- {
65
- "document_pid": "docid-3",
66
- "provider_pid": "ill-provid-1",
67
- "patron_pid": "1",
68
- "pid": "illbid-8",
69
- "status": "ON_LOAN",
70
- "type": "PHYSICAL_COPY",
71
- "patron_loan": {
72
- "extension": {
73
- "status": "DECLINED"
74
- }
75
- }
76
- }
77
- ]
@@ -1,12 +0,0 @@
1
- [
2
- {
3
- "name": "Library 1",
4
- "pid": "ill-provid-1",
5
- "type": "LIBRARY"
6
- },
7
- {
8
- "name": "Library 2",
9
- "pid": "ill-provid-2",
10
- "type": "LIBRARY"
11
- }
12
- ]
@@ -1,22 +0,0 @@
1
- [
2
- {
3
- "pid": "ilocid-1",
4
- "location_pid": "locid-1",
5
- "name": "Internal Library 1"
6
- },
7
- {
8
- "pid": "ilocid-2",
9
- "location_pid": "locid-1",
10
- "name": "Internal Library 2"
11
- },
12
- {
13
- "pid": "ilocid-3",
14
- "location_pid": "locid-1",
15
- "name": "Unused Internal Library"
16
- },
17
- {
18
- "pid": "ilocid-4",
19
- "location_pid": "locid-2",
20
- "name": "Another unused library"
21
- }
22
- ]
tests/data/items.json DELETED
@@ -1,304 +0,0 @@
1
- [
2
- {
3
- "pid": "itemid-1",
4
- "created_by": { "type": "script", "value": "demo" },
5
- "barcode": "123456789-1",
6
- "document_pid": "docid-1",
7
- "internal_location_pid": "ilocid-1",
8
- "circulation_restriction": "NO_RESTRICTION",
9
- "medium": "NOT_SPECIFIED",
10
- "status": "MISSING",
11
- "document": {}
12
- },
13
- {
14
- "pid": "itemid-2",
15
- "created_by": { "type": "script", "value": "demo" },
16
- "barcode": "123456789-2",
17
- "document_pid": "docid-1",
18
- "internal_location_pid": "ilocid-2",
19
- "circulation_restriction": "ONE_WEEK",
20
- "medium": "NOT_SPECIFIED",
21
- "status": "CAN_CIRCULATE",
22
- "document": {}
23
- },
24
- {
25
- "pid": "itemid-3",
26
- "created_by": { "type": "script", "value": "demo" },
27
- "barcode": "123456789-3",
28
- "document_pid": "docid-2",
29
- "internal_location_pid": "ilocid-1",
30
- "circulation_restriction": "TWO_WEEKS",
31
- "medium": "NOT_SPECIFIED",
32
- "status": "CAN_CIRCULATE",
33
- "document": {}
34
- },
35
- {
36
- "pid": "itemid-4",
37
- "created_by": { "type": "script", "value": "demo" },
38
- "barcode": "123456789-4",
39
- "document_pid": "docid-3",
40
- "internal_location_pid": "ilocid-2",
41
- "circulation_restriction": "THREE_WEEKS",
42
- "medium": "NOT_SPECIFIED",
43
- "status": "CAN_CIRCULATE",
44
- "document": {}
45
- },
46
- {
47
- "pid": "itemid-5",
48
- "created_by": { "type": "script", "value": "demo" },
49
- "barcode": "123456789-5",
50
- "document_pid": "docid-3",
51
- "internal_location_pid": "ilocid-1",
52
- "circulation_restriction": "ONE_WEEK",
53
- "medium": "NOT_SPECIFIED",
54
- "status": "CAN_CIRCULATE",
55
- "document": {}
56
- },
57
- {
58
- "pid": "itemid-6",
59
- "created_by": { "type": "script", "value": "demo" },
60
- "barcode": "123456789-6",
61
- "document_pid": "docid-3",
62
- "internal_location_pid": "ilocid-1",
63
- "circulation_restriction": "NO_RESTRICTION",
64
- "medium": "NOT_SPECIFIED",
65
- "status": "CAN_CIRCULATE",
66
- "document": {}
67
- },
68
- {
69
- "pid": "itemid-7",
70
- "created_by": { "type": "script", "value": "demo" },
71
- "barcode": "123456789-7",
72
- "document_pid": "docid-5",
73
- "internal_location_pid": "ilocid-2",
74
- "circulation_restriction": "NO_RESTRICTION",
75
- "medium": "NOT_SPECIFIED",
76
- "status": "IN_BINDING",
77
- "document": {}
78
- },
79
- {
80
- "pid": "itemid-8",
81
- "created_by": { "type": "script", "value": "demo" },
82
- "barcode": "123456789-8",
83
- "document_pid": "docid-5",
84
- "internal_location_pid": "ilocid-1",
85
- "circulation_restriction": "NO_RESTRICTION",
86
- "medium": "NOT_SPECIFIED",
87
- "status": "MISSING",
88
- "document": {}
89
- },
90
- {
91
- "pid": "itemid-9",
92
- "created_by": { "type": "script", "value": "demo" },
93
- "barcode": "123456789-9",
94
- "document_pid": "docid-5",
95
- "internal_location_pid": "ilocid-1",
96
- "circulation_restriction": "NO_RESTRICTION",
97
- "medium": "NOT_SPECIFIED",
98
- "status": "CAN_CIRCULATE",
99
- "document": {}
100
- },
101
- {
102
- "pid": "itemid-10",
103
- "created_by": { "type": "script", "value": "demo" },
104
- "barcode": "123456789-10",
105
- "document_pid": "docid-5",
106
- "internal_location_pid": "ilocid-1",
107
- "circulation_restriction": "NO_RESTRICTION",
108
- "medium": "NOT_SPECIFIED",
109
- "status": "CAN_CIRCULATE",
110
- "document": {}
111
- },
112
- {
113
- "pid": "itemid-50",
114
- "created_by": { "type": "script", "value": "demo" },
115
- "barcode": "123456789-50",
116
- "document_pid": "docid-5",
117
- "internal_location_pid": "ilocid-1",
118
- "circulation_restriction": "NO_RESTRICTION",
119
- "medium": "NOT_SPECIFIED",
120
- "status": "CAN_CIRCULATE",
121
- "_access": { "update": [1] },
122
- "document": {}
123
- },
124
- {
125
- "pid": "itemid-51",
126
- "created_by": { "type": "script", "value": "demo" },
127
- "barcode": "123456789-51",
128
- "document_pid": "docid-5",
129
- "internal_location_pid": "ilocid-2",
130
- "circulation_restriction": "NO_RESTRICTION",
131
- "medium": "NOT_SPECIFIED",
132
- "status": "CAN_CIRCULATE",
133
- "_access": { "delete": ["librarian"] },
134
- "document": {}
135
- },
136
- {
137
- "pid": "itemid-52",
138
- "created_by": { "type": "script", "value": "demo" },
139
- "barcode": "123456789-52",
140
- "document_pid": "docid-5",
141
- "internal_location_pid": "ilocid-1",
142
- "circulation_restriction": "NO_RESTRICTION",
143
- "medium": "NOT_SPECIFIED",
144
- "status": "CAN_CIRCULATE",
145
- "_access": { "delete": ["1"] },
146
- "document": {}
147
- },
148
- {
149
- "pid": "itemid-53",
150
- "created_by": { "type": "script", "value": "demo" },
151
- "barcode": "123456789-53",
152
- "document_pid": "docid-5",
153
- "internal_location_pid": "ilocid-1",
154
- "circulation_restriction": "NO_RESTRICTION",
155
- "medium": "NOT_SPECIFIED",
156
- "status": "CAN_CIRCULATE",
157
- "_access": { "update": ["1"] },
158
- "document": {}
159
- },
160
- {
161
- "pid": "itemid-54",
162
- "created_by": { "type": "script", "value": "demo" },
163
- "barcode": "123456789-54",
164
- "document_pid": "docid-5",
165
- "internal_location_pid": "ilocid-1",
166
- "circulation_restriction": "NO_RESTRICTION",
167
- "medium": "NOT_SPECIFIED",
168
- "status": "CAN_CIRCULATE",
169
- "_access": { "read": ["1"] },
170
- "document": {}
171
- },
172
- {
173
- "pid": "itemid-55",
174
- "created_by": { "type": "script", "value": "demo" },
175
- "barcode": "123456789-55",
176
- "document_pid": "docid-1",
177
- "internal_location_pid": "ilocid-1",
178
- "circulation_restriction": "NO_RESTRICTION",
179
- "medium": "NOT_SPECIFIED",
180
- "status": "MISSING",
181
- "document": {}
182
- },
183
- {
184
- "pid": "itemid-56",
185
- "created_by": { "type": "script", "value": "demo" },
186
- "barcode": "123456789-54",
187
- "document_pid": "docid-5",
188
- "internal_location_pid": "ilocid-1",
189
- "circulation_restriction": "NO_RESTRICTION",
190
- "medium": "NOT_SPECIFIED",
191
- "status": "CAN_CIRCULATE",
192
- "document": {}
193
- },
194
- {
195
- "pid": "itemid-57",
196
- "created_by": { "type": "script", "value": "demo" },
197
- "barcode": "123456789-55",
198
- "document_pid": "docid-1",
199
- "internal_location_pid": "ilocid-1",
200
- "circulation_restriction": "NO_RESTRICTION",
201
- "medium": "NOT_SPECIFIED",
202
- "status": "CAN_CIRCULATE",
203
- "document": {}
204
- },
205
- {
206
- "pid": "itemid-MISSING",
207
- "created_by": { "type": "script", "value": "demo" },
208
- "barcode": "123456789-55",
209
- "document_pid": "docid-1",
210
- "internal_location_pid": "ilocid-1",
211
- "circulation_restriction": "NO_RESTRICTION",
212
- "medium": "NOT_SPECIFIED",
213
- "status": "MISSING",
214
- "document": {}
215
- },
216
- {
217
- "pid": "itemid-60",
218
- "created_by": { "type": "script", "value": "demo" },
219
- "barcode": "123456789-60",
220
- "document_pid": "docid-1",
221
- "internal_location_pid": "ilocid-1",
222
- "circulation_restriction": "NO_RESTRICTION",
223
- "medium": "NOT_SPECIFIED",
224
- "status": "CAN_CIRCULATE",
225
- "document": {}
226
- },
227
- {
228
- "pid": "itemid-61",
229
- "created_by": { "type": "script", "value": "demo" },
230
- "barcode": "123456789-61",
231
- "document_pid": "docid-1",
232
- "internal_location_pid": "ilocid-1",
233
- "circulation_restriction": "NO_RESTRICTION",
234
- "medium": "NOT_SPECIFIED",
235
- "status": "CAN_CIRCULATE",
236
- "document": {}
237
- },
238
- {
239
- "pid": "itemid-62",
240
- "created_by": { "type": "script", "value": "demo" },
241
- "barcode": "123456789-55",
242
- "document_pid": "docid-1",
243
- "internal_location_pid": "ilocid-1",
244
- "circulation_restriction": "NO_RESTRICTION",
245
- "medium": "NOT_SPECIFIED",
246
- "status": "CAN_CIRCULATE",
247
- "document": {}
248
- },
249
- {
250
- "pid": "itemid-63",
251
- "created_by": { "type": "script", "value": "demo" },
252
- "barcode": "123456789-55",
253
- "document_pid": "docid-1",
254
- "internal_location_pid": "ilocid-1",
255
- "circulation_restriction": "NO_RESTRICTION",
256
- "medium": "NOT_SPECIFIED",
257
- "status": "CAN_CIRCULATE",
258
- "document": {}
259
- },
260
- {
261
- "pid": "itemid-71",
262
- "created_by": { "type": "script", "value": "demo" },
263
- "barcode": "123456789-55",
264
- "document_pid": "docid-15",
265
- "internal_location_pid": "ilocid-4",
266
- "circulation_restriction": "NO_RESTRICTION",
267
- "medium": "NOT_SPECIFIED",
268
- "status": "CAN_CIRCULATE",
269
- "document": {}
270
- },
271
- {
272
- "pid": "itemid-72",
273
- "created_by": { "type": "script", "value": "demo" },
274
- "barcode": "123456789-72",
275
- "document_pid": "docid-16",
276
- "internal_location_pid": "ilocid-1",
277
- "circulation_restriction": "NO_RESTRICTION",
278
- "medium": "NOT_SPECIFIED",
279
- "status": "CAN_CIRCULATE",
280
- "document": {}
281
- },
282
- {
283
- "pid": "itemid-73",
284
- "created_by": { "type": "script", "value": "demo" },
285
- "barcode": "123456789-73",
286
- "document_pid": "docid-17",
287
- "internal_location_pid": "ilocid-1",
288
- "circulation_restriction": "NO_RESTRICTION",
289
- "medium": "NOT_SPECIFIED",
290
- "status": "CAN_CIRCULATE",
291
- "document": {}
292
- },
293
- {
294
- "pid": "itemid-74",
295
- "created_by": { "type": "script", "value": "demo" },
296
- "barcode": "123456789-74",
297
- "document_pid": "docid-17",
298
- "internal_location_pid": "ilocid-1",
299
- "circulation_restriction": "NO_RESTRICTION",
300
- "medium": "NOT_SPECIFIED",
301
- "status": "IN_BINDING",
302
- "document": {}
303
- }
304
- ]
tests/data/loans.json DELETED
@@ -1,133 +0,0 @@
1
- [
2
- {
3
- "document_pid": "docid-1",
4
- "end_date": "2018-07-28",
5
- "item_pid": {},
6
- "patron_pid": "1",
7
- "pickup_location_pid": "locid-1",
8
- "pid": "loanid-1",
9
- "start_date": "2018-06-28",
10
- "state": "PENDING",
11
- "transaction_date": "2018-06-29T14:46:07.928230+00:00",
12
- "transaction_location_pid": "locid-1",
13
- "request_start_date": "2018-06-28",
14
- "request_expire_date": "2019-06-28",
15
- "patron": {
16
- "email": "patron1@test.ch"
17
- }
18
- },
19
- {
20
- "document_pid": "docid-1",
21
- "end_date": "2018-07-28",
22
- "item_pid": {
23
- "type": "pitmid",
24
- "value": "itemid-2"
25
- },
26
- "patron_pid": "1",
27
- "pickup_location_pid": "locid-1",
28
- "pid": "loanid-2",
29
- "start_date": "2018-06-28",
30
- "state": "PENDING",
31
- "transaction_date": "2018-06-29T14:46:07.928230+00:00",
32
- "transaction_location_pid": "locid-1",
33
- "request_start_date": "2018-06-28",
34
- "request_expire_date": "2019-06-28",
35
- "patron": {
36
- "email": "patron2@test.ch"
37
- }
38
- },
39
- {
40
- "document_pid": "docid-3",
41
- "end_date": "2018-07-28",
42
- "item_pid": {
43
- "type": "pitmid",
44
- "value": "itemid-5"
45
- },
46
- "patron_pid": "2",
47
- "pickup_location_pid": "locid-1",
48
- "pid": "loanid-3",
49
- "start_date": "2018-06-28",
50
- "state": "PENDING",
51
- "transaction_date": "2018-06-29T14:46:07.928230+00:00",
52
- "transaction_location_pid": "locid-1",
53
- "request_start_date": "2018-06-28",
54
- "request_expire_date": "2019-06-28"
55
- },
56
- {
57
- "document_pid": "docid-5",
58
- "end_date": "2018-07-28",
59
- "item_pid": {
60
- "type": "pitmid",
61
- "value": "itemid-7"
62
- },
63
- "patron_pid": "2",
64
- "pickup_location_pid": "locid-1",
65
- "pid": "loanid-4",
66
- "start_date": "2018-06-28",
67
- "state": "PENDING",
68
- "transaction_date": "2018-06-29T14:46:07.928230+00:00",
69
- "transaction_location_pid": "locid-1",
70
- "request_start_date": "2018-06-28",
71
- "request_expire_date": "2019-06-28"
72
- },
73
- {
74
- "document_pid": "docid-7",
75
- "end_date": "2018-07-28",
76
- "item_pid": {
77
- "type": "pitmid",
78
- "value": "itemid-56"
79
- },
80
- "patron_pid": "1",
81
- "pickup_location_pid": "locid-1",
82
- "pid": "loanid-5",
83
- "start_date": "2018-06-28",
84
- "state": "ITEM_ON_LOAN",
85
- "transaction_date": "2018-06-29T14:46:07.928230+00:00",
86
- "transaction_location_pid": "locid-1",
87
- "request_start_date": "2018-06-28",
88
- "request_expire_date": "2019-06-28"
89
- },
90
- {
91
- "document_pid": "docid-7",
92
- "end_date": "2018-07-28",
93
- "item_pid": {
94
- "type": "pitmid",
95
- "value": "itemid-57"
96
- },
97
- "patron_pid": "2",
98
- "pickup_location_pid": "locid-1",
99
- "pid": "loanid-6",
100
- "start_date": "2018-06-28",
101
- "state": "ITEM_ON_LOAN",
102
- "transaction_date": "2018-06-29T14:46:07.928230+00:00",
103
- "transaction_location_pid": "locid-1",
104
- "request_start_date": "2018-06-28",
105
- "request_expire_date": "2019-06-28"
106
- },
107
- {
108
- "document_pid": "docid-1",
109
- "end_date": "2018-07-28",
110
- "patron_pid": "20",
111
- "pickup_location_pid": "locid-1",
112
- "pid": "loanid-7",
113
- "start_date": "2018-06-28",
114
- "state": "PENDING",
115
- "transaction_date": "2018-06-29T14:46:07.928230+00:00",
116
- "transaction_location_pid": "locid-1",
117
- "request_start_date": "2018-06-28",
118
- "request_expire_date": "2019-06-28"
119
- },
120
- {
121
- "document_pid": "docid-1",
122
- "end_date": "2018-07-28",
123
- "patron_pid": "-2",
124
- "pickup_location_pid": "locid-1",
125
- "pid": "loanid-8",
126
- "start_date": "2018-06-28",
127
- "state": "PENDING",
128
- "transaction_date": "2018-06-29T14:46:07.928230+00:00",
129
- "transaction_location_pid": "locid-1",
130
- "request_start_date": "2018-06-28",
131
- "request_expire_date": "2019-06-28"
132
- }
133
- ]