invenio-app-ils 1.0.0a54__py2.py3-none-any.whl → 6.1.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 (331) hide show
  1. invenio_app_ils/__init__.py +2 -2
  2. invenio_app_ils/acquisition/api.py +3 -1
  3. invenio_app_ils/acquisition/config.py +10 -21
  4. invenio_app_ils/acquisition/jsonresolvers/order_order_lines.py +1 -0
  5. invenio_app_ils/acquisition/mappings/os-v1/acq_orders/order-v1.0.0.json +364 -0
  6. invenio_app_ils/acquisition/mappings/os-v2/__init__.py +0 -0
  7. invenio_app_ils/acquisition/mappings/os-v2/acq_orders/order-v1.0.0.json +364 -0
  8. invenio_app_ils/acquisition/mappings/v7/acq_orders/order-v1.0.0.json +14 -0
  9. invenio_app_ils/acquisition/search.py +5 -15
  10. invenio_app_ils/assets/semantic-ui/less/theme.config +103 -0
  11. invenio_app_ils/assets/semantic-ui/templates/.gitkeep +0 -0
  12. invenio_app_ils/circulation/api.py +153 -67
  13. invenio_app_ils/circulation/config.py +29 -25
  14. invenio_app_ils/circulation/indexer.py +14 -19
  15. invenio_app_ils/circulation/loaders/__init__.py +2 -0
  16. invenio_app_ils/circulation/loaders/schemas/json/loan_checkout.py +2 -3
  17. invenio_app_ils/circulation/loaders/schemas/json/loan_request.py +82 -16
  18. invenio_app_ils/circulation/loaders/schemas/json/loan_self_checkout.py +19 -0
  19. invenio_app_ils/circulation/notifications/api.py +23 -19
  20. invenio_app_ils/circulation/notifications/messages.py +6 -6
  21. invenio_app_ils/circulation/notifications/tasks.py +1 -2
  22. invenio_app_ils/circulation/receivers.py +2 -5
  23. invenio_app_ils/circulation/search.py +23 -22
  24. invenio_app_ils/circulation/serializers/__init__.py +2 -2
  25. invenio_app_ils/circulation/serializers/csv.py +1 -3
  26. invenio_app_ils/circulation/serializers/custom_fields.py +5 -9
  27. invenio_app_ils/circulation/serializers/json.py +2 -6
  28. invenio_app_ils/circulation/serializers/response.py +12 -12
  29. invenio_app_ils/circulation/stats/views.py +5 -15
  30. invenio_app_ils/circulation/tasks.py +2 -6
  31. invenio_app_ils/circulation/templates/invenio_app_ils_circulation/notifications/self_checkout.html +19 -0
  32. invenio_app_ils/circulation/templates/invenio_app_ils_circulation/notifications/update_dates.html +19 -0
  33. invenio_app_ils/circulation/utils.py +23 -17
  34. invenio_app_ils/circulation/views.py +103 -39
  35. invenio_app_ils/cli.py +220 -260
  36. invenio_app_ils/closures/api.py +72 -7
  37. invenio_app_ils/closures/serializers/__init__.py +16 -0
  38. invenio_app_ils/closures/serializers/response.py +35 -0
  39. invenio_app_ils/closures/serializers/schema.py +28 -0
  40. invenio_app_ils/closures/tasks.py +4 -11
  41. invenio_app_ils/closures/views.py +66 -0
  42. invenio_app_ils/config.py +207 -150
  43. invenio_app_ils/document_requests/api.py +6 -21
  44. invenio_app_ils/document_requests/loaders/__init__.py +4 -12
  45. invenio_app_ils/document_requests/mappings/{v6 → os-v1}/__init__.py +2 -2
  46. invenio_app_ils/document_requests/mappings/os-v1/document_requests/document_request-v1.0.0.json +196 -0
  47. invenio_app_ils/document_requests/mappings/os-v2/__init__.py +8 -0
  48. invenio_app_ils/document_requests/mappings/os-v2/document_requests/document_request-v1.0.0.json +196 -0
  49. invenio_app_ils/document_requests/notifications/api.py +2 -7
  50. invenio_app_ils/document_requests/notifications/messages.py +3 -7
  51. invenio_app_ils/document_requests/search.py +2 -6
  52. invenio_app_ils/document_requests/views.py +4 -10
  53. invenio_app_ils/documents/api.py +19 -25
  54. invenio_app_ils/documents/indexer.py +13 -20
  55. invenio_app_ils/documents/jsonresolvers/document_circulation.py +11 -33
  56. invenio_app_ils/documents/jsonresolvers/document_eitem.py +1 -0
  57. invenio_app_ils/documents/jsonresolvers/document_item.py +8 -9
  58. invenio_app_ils/documents/jsonresolvers/document_stock.py +7 -7
  59. invenio_app_ils/documents/loaders/jsonschemas/document.py +3 -14
  60. invenio_app_ils/documents/mappings/{v6 → os-v1}/__init__.py +1 -1
  61. invenio_app_ils/documents/mappings/os-v1/documents/document-v1.0.0.json +932 -0
  62. invenio_app_ils/documents/mappings/os-v1/documents/document-v2.0.0.json +1066 -0
  63. invenio_app_ils/documents/mappings/os-v2/__init__.py +8 -0
  64. invenio_app_ils/documents/mappings/os-v2/documents/document-v1.0.0.json +932 -0
  65. invenio_app_ils/documents/mappings/os-v2/documents/document-v2.0.0.json +1066 -0
  66. invenio_app_ils/documents/mappings/v7/documents/document-v1.0.0.json +102 -11
  67. invenio_app_ils/documents/mappings/v7/documents/document-v2.0.0.json +1066 -0
  68. invenio_app_ils/documents/schemas/documents/document-v2.0.0.json +732 -0
  69. invenio_app_ils/eitems/api.py +41 -7
  70. invenio_app_ils/eitems/loaders/jsonschemas/eitems.py +6 -6
  71. invenio_app_ils/eitems/mappings/{v6 → os-v1}/__init__.py +1 -1
  72. invenio_app_ils/eitems/mappings/os-v1/eitems/eitem-v1.0.0.json +139 -0
  73. invenio_app_ils/eitems/mappings/os-v1/eitems/eitem-v2.0.0.json +142 -0
  74. invenio_app_ils/eitems/mappings/os-v1/eitems/eitem-v3.0.0.json +179 -0
  75. invenio_app_ils/{series/mappings/v6 → eitems/mappings/os-v2}/__init__.py +1 -1
  76. invenio_app_ils/eitems/mappings/os-v2/eitems/eitem-v1.0.0.json +139 -0
  77. invenio_app_ils/eitems/mappings/os-v2/eitems/eitem-v2.0.0.json +142 -0
  78. invenio_app_ils/eitems/mappings/os-v2/eitems/eitem-v3.0.0.json +179 -0
  79. invenio_app_ils/eitems/mappings/v7/eitems/eitem-v1.0.0.json +12 -2
  80. invenio_app_ils/eitems/mappings/v7/eitems/eitem-v2.0.0.json +142 -0
  81. invenio_app_ils/eitems/mappings/v7/eitems/eitem-v3.0.0.json +179 -0
  82. invenio_app_ils/eitems/schemas/eitems/eitem-v2.0.0.json +120 -0
  83. invenio_app_ils/eitems/schemas/eitems/eitem-v3.0.0.json +120 -0
  84. invenio_app_ils/eitems/search.py +3 -9
  85. invenio_app_ils/errors.py +119 -6
  86. invenio_app_ils/ext.py +15 -18
  87. invenio_app_ils/facets.py +13 -15
  88. invenio_app_ils/files/receivers.py +1 -1
  89. invenio_app_ils/files/views.py +1 -2
  90. invenio_app_ils/ill/api.py +1 -2
  91. invenio_app_ils/ill/config.py +10 -16
  92. invenio_app_ils/ill/jsonresolvers/borrowing_request_document.py +2 -3
  93. invenio_app_ils/ill/jsonresolvers/borrowing_request_patron.py +1 -3
  94. invenio_app_ils/ill/jsonresolvers/borrowing_request_provider.py +1 -3
  95. invenio_app_ils/ill/loaders/__init__.py +3 -9
  96. invenio_app_ils/ill/loaders/jsonschemas/patron_loan_actions.py +1 -8
  97. invenio_app_ils/ill/loaders/jsonschemas/patron_loan_extension_actions.py +3 -8
  98. invenio_app_ils/ill/mappings/{v6 → os-v1}/__init__.py +1 -1
  99. invenio_app_ils/ill/mappings/os-v1/ill_borrowing_requests/borrowing_request-v1.0.0.json +254 -0
  100. invenio_app_ils/{acquisition/mappings/v6 → ill/mappings/os-v2}/__init__.py +1 -1
  101. invenio_app_ils/ill/mappings/os-v2/ill_borrowing_requests/borrowing_request-v1.0.0.json +254 -0
  102. invenio_app_ils/ill/mappings/v7/ill_borrowing_requests/borrowing_request-v1.0.0.json +14 -0
  103. invenio_app_ils/ill/notifications/api.py +1 -4
  104. invenio_app_ils/ill/search.py +3 -9
  105. invenio_app_ils/ill/serializers/__init__.py +1 -3
  106. invenio_app_ils/ill/views.py +2 -4
  107. invenio_app_ils/internal_locations/api.py +1 -4
  108. invenio_app_ils/internal_locations/mappings/{v6 → os-v1}/__init__.py +1 -1
  109. invenio_app_ils/internal_locations/mappings/os-v1/internal_locations/internal_location-v1.0.0.json +108 -0
  110. invenio_app_ils/internal_locations/mappings/os-v2/__init__.py +8 -0
  111. invenio_app_ils/internal_locations/mappings/os-v2/internal_locations/internal_location-v1.0.0.json +108 -0
  112. invenio_app_ils/internal_locations/search.py +1 -3
  113. invenio_app_ils/items/api.py +18 -15
  114. invenio_app_ils/items/indexer.py +1 -3
  115. invenio_app_ils/items/jsonresolvers/item_document.py +1 -1
  116. invenio_app_ils/items/jsonresolvers/item_internal_location.py +2 -6
  117. invenio_app_ils/items/loaders/jsonschemas/items.py +2 -0
  118. {tests/api/circulation → invenio_app_ils/items/mappings/os-v1}/__init__.py +1 -1
  119. invenio_app_ils/items/mappings/os-v1/items/item-v1.0.0.json +285 -0
  120. invenio_app_ils/items/mappings/os-v1/items/item-v2.0.0.json +326 -0
  121. {tests/api/ill → invenio_app_ils/items/mappings/os-v2}/__init__.py +1 -1
  122. invenio_app_ils/items/mappings/os-v2/items/item-v1.0.0.json +285 -0
  123. invenio_app_ils/items/mappings/os-v2/items/item-v2.0.0.json +326 -0
  124. invenio_app_ils/items/mappings/v7/items/item-v1.0.0.json +11 -0
  125. invenio_app_ils/items/mappings/v7/items/item-v2.0.0.json +326 -0
  126. invenio_app_ils/items/schemas/items/item-v1.0.0.json +22 -0
  127. invenio_app_ils/items/schemas/items/item-v2.0.0.json +172 -0
  128. invenio_app_ils/items/search.py +18 -11
  129. invenio_app_ils/items/serializers/item.py +7 -6
  130. invenio_app_ils/literature/api.py +1 -3
  131. invenio_app_ils/literature/search.py +3 -5
  132. invenio_app_ils/literature/serializers/csv.py +1 -3
  133. invenio_app_ils/literature/serializers/json.py +1 -3
  134. invenio_app_ils/locations/api.py +2 -4
  135. invenio_app_ils/locations/indexer.py +3 -9
  136. invenio_app_ils/locations/loaders/__init__.py +1 -3
  137. invenio_app_ils/locations/loaders/jsonschemas/location.py +4 -11
  138. invenio_app_ils/locations/mappings/{v6 → os-v1}/__init__.py +1 -1
  139. invenio_app_ils/locations/mappings/os-v1/locations/location-v1.0.0.json +90 -0
  140. invenio_app_ils/locations/mappings/os-v2/__init__.py +8 -0
  141. invenio_app_ils/locations/mappings/os-v2/locations/location-v1.0.0.json +90 -0
  142. invenio_app_ils/notifications/messages.py +4 -3
  143. invenio_app_ils/notifications/tasks.py +1 -3
  144. invenio_app_ils/notifications/views.py +2 -2
  145. invenio_app_ils/patrons/anonymization.py +53 -32
  146. invenio_app_ils/patrons/api.py +3 -5
  147. invenio_app_ils/patrons/cli.py +1 -2
  148. invenio_app_ils/patrons/indexer.py +4 -13
  149. invenio_app_ils/patrons/mappings/os-v1/__init__.py +8 -0
  150. invenio_app_ils/patrons/mappings/os-v1/patrons/patron-v1.0.0.json +42 -0
  151. invenio_app_ils/patrons/mappings/os-v2/__init__.py +8 -0
  152. invenio_app_ils/patrons/mappings/os-v2/patrons/patron-v1.0.0.json +42 -0
  153. invenio_app_ils/patrons/views.py +4 -14
  154. invenio_app_ils/permissions.py +93 -35
  155. invenio_app_ils/providers/api.py +2 -6
  156. invenio_app_ils/providers/config.py +11 -19
  157. invenio_app_ils/providers/indexer.py +2 -6
  158. invenio_app_ils/providers/mappings/{v6 → os-v1}/__init__.py +1 -1
  159. invenio_app_ils/providers/mappings/os-v1/providers/provider-v1.0.0.json +57 -0
  160. invenio_app_ils/providers/mappings/os-v2/__init__.py +8 -0
  161. invenio_app_ils/providers/mappings/os-v2/providers/provider-v1.0.0.json +57 -0
  162. invenio_app_ils/providers/mappings/v7/__init__.py +1 -1
  163. invenio_app_ils/providers/proxies.py +1 -3
  164. invenio_app_ils/records/api.py +3 -9
  165. invenio_app_ils/records/loaders/schemas/changed_by.py +1 -3
  166. invenio_app_ils/records/loaders/schemas/identifiers.py +23 -0
  167. invenio_app_ils/records/metadata_extensions.py +1 -4
  168. invenio_app_ils/records/permissions.py +8 -2
  169. invenio_app_ils/records/serializers/__init__.py +1 -4
  170. invenio_app_ils/records/views.py +4 -7
  171. invenio_app_ils/records_relations/api.py +11 -34
  172. invenio_app_ils/records_relations/indexer.py +1 -3
  173. invenio_app_ils/records_relations/retriever.py +14 -9
  174. invenio_app_ils/records_relations/views.py +16 -50
  175. invenio_app_ils/relations/api.py +17 -16
  176. invenio_app_ils/search_permissions.py +24 -24
  177. invenio_app_ils/series/api.py +10 -12
  178. invenio_app_ils/series/loaders/jsonschemas/series.py +3 -2
  179. invenio_app_ils/{items/mappings/v6 → series/mappings/os-v1}/__init__.py +1 -1
  180. invenio_app_ils/series/mappings/os-v1/series/series-v1.0.0.json +324 -0
  181. invenio_app_ils/series/mappings/os-v1/series/series-v2.0.0.json +396 -0
  182. {tests/api/acquisition → invenio_app_ils/series/mappings/os-v2}/__init__.py +1 -1
  183. invenio_app_ils/series/mappings/os-v2/series/series-v1.0.0.json +324 -0
  184. invenio_app_ils/series/mappings/os-v2/series/series-v2.0.0.json +396 -0
  185. invenio_app_ils/series/mappings/v7/series/series-v1.0.0.json +35 -3
  186. invenio_app_ils/series/mappings/v7/series/series-v2.0.0.json +396 -0
  187. invenio_app_ils/series/schemas/series/series-v2.0.0.json +354 -0
  188. invenio_app_ils/stats/aggregations/aggr_file_download/os-v1/aggr-file-download-v1.json +60 -0
  189. invenio_app_ils/stats/aggregations/aggr_file_download/os-v2/__init__.py +9 -0
  190. invenio_app_ils/stats/aggregations/aggr_file_download/os-v2/aggr-file-download-v1.json +60 -0
  191. invenio_app_ils/stats/event_builders.py +73 -0
  192. invenio_app_ils/stats/file_download/os-v1/file-download-v1.json +72 -0
  193. invenio_app_ils/stats/file_download/os-v2/__init__.py +9 -0
  194. invenio_app_ils/stats/file_download/os-v2/file-download-v1.json +72 -0
  195. invenio_app_ils/stats/processors.py +30 -0
  196. invenio_app_ils/stats/templates/aggregations/__init__.py +8 -0
  197. invenio_app_ils/stats/templates/aggregations/ils_record_changes/__init__.py +8 -0
  198. invenio_app_ils/stats/templates/aggregations/ils_record_changes/os-v2/__init__.py +8 -0
  199. invenio_app_ils/stats/templates/aggregations/ils_record_changes/os-v2/aggr-ils-record-changes-v1.json +41 -0
  200. {tests → invenio_app_ils/stats/templates/events}/__init__.py +2 -2
  201. invenio_app_ils/stats/templates/events/ils_record_changes/__init__.py +8 -0
  202. invenio_app_ils/stats/templates/events/ils_record_changes/os-v2/__init__.py +8 -0
  203. invenio_app_ils/stats/templates/events/ils_record_changes/os-v2/ils-record-changes-v1.json +41 -0
  204. invenio_app_ils/templates/logged_out.html +12 -0
  205. invenio_app_ils/views.py +18 -4
  206. invenio_app_ils/vocabularies/api.py +1 -1
  207. invenio_app_ils/vocabularies/cli.py +6 -18
  208. invenio_app_ils/vocabularies/data/acq_order_line_payment_modes.json +5 -0
  209. invenio_app_ils/vocabularies/data/identifier_schemes.json +5 -0
  210. invenio_app_ils/vocabularies/indexer.py +1 -4
  211. invenio_app_ils/vocabularies/jsonresolvers/licenses.py +2 -11
  212. invenio_app_ils/vocabularies/mappings/os-v1/__init__.py +8 -0
  213. invenio_app_ils/vocabularies/mappings/os-v1/vocabularies/vocabulary-v1.0.0.json +23 -0
  214. invenio_app_ils/vocabularies/mappings/os-v2/__init__.py +8 -0
  215. invenio_app_ils/vocabularies/mappings/os-v2/vocabularies/vocabulary-v1.0.0.json +23 -0
  216. invenio_app_ils/vocabularies/sources/base.py +1 -3
  217. invenio_app_ils/webpack.py +27 -0
  218. invenio_app_ils-6.1.0.dist-info/METADATA +627 -0
  219. {invenio_app_ils-1.0.0a54.dist-info → invenio_app_ils-6.1.0.dist-info}/RECORD +227 -249
  220. {invenio_app_ils-1.0.0a54.dist-info → invenio_app_ils-6.1.0.dist-info}/WHEEL +1 -1
  221. {invenio_app_ils-1.0.0a54.dist-info → invenio_app_ils-6.1.0.dist-info}/entry_points.txt +9 -5
  222. {invenio_app_ils-1.0.0a54.dist-info → invenio_app_ils-6.1.0.dist-info}/top_level.txt +0 -1
  223. invenio_app_ils/acquisition/mappings/v6/acq_orders/order-v1.0.0.json +0 -352
  224. invenio_app_ils/document_requests/mappings/v6/document_requests/document_request-v1.0.0.json +0 -199
  225. invenio_app_ils/documents/mappings/v6/documents/document-v1.0.0.json +0 -843
  226. invenio_app_ils/eitems/mappings/v6/eitems/eitem-v1.0.0.json +0 -131
  227. invenio_app_ils/ill/mappings/v6/ill_borrowing_requests/borrowing_request-v1.0.0.json +0 -242
  228. invenio_app_ils/internal_locations/mappings/v6/internal_locations/internal_location-v1.0.0.json +0 -110
  229. invenio_app_ils/items/mappings/v6/items/item-v1.0.0.json +0 -276
  230. invenio_app_ils/locations/mappings/v6/locations/location-v1.0.0.json +0 -92
  231. invenio_app_ils/notifications/admin.py +0 -57
  232. invenio_app_ils/patrons/mappings/v6/__init__.py +0 -8
  233. invenio_app_ils/patrons/mappings/v6/patrons/patron-v1.0.0.json +0 -44
  234. invenio_app_ils/providers/mappings/v6/providers/provider-v1.0.0.json +0 -59
  235. invenio_app_ils/series/mappings/v6/series/series-v1.0.0.json +0 -298
  236. invenio_app_ils/stats/aggregations/aggr_file_download/v6/aggr-file-download-v1.json +0 -59
  237. invenio_app_ils/stats/file_download/v6/file-download-v1.json +0 -74
  238. invenio_app_ils/version.py +0 -14
  239. invenio_app_ils/vocabularies/mappings/v6/__init__.py +0 -8
  240. invenio_app_ils/vocabularies/mappings/v6/vocabularies/vocabulary-v1.0.0.json +0 -25
  241. invenio_app_ils-1.0.0a54.dist-info/METADATA +0 -95
  242. tests/api/__init__.py +0 -8
  243. tests/api/acquisition/test_acq_orders_crud.py +0 -102
  244. tests/api/acquisition/test_acq_orders_permissions.py +0 -104
  245. tests/api/acquisition/test_acq_providers_permissions.py +0 -83
  246. tests/api/circulation/test_expired_loans.py +0 -88
  247. tests/api/circulation/test_loan_checkout.py +0 -216
  248. tests/api/circulation/test_loan_default_durations.py +0 -57
  249. tests/api/circulation/test_loan_document_resolver.py +0 -18
  250. tests/api/circulation/test_loan_extend.py +0 -132
  251. tests/api/circulation/test_loan_item_permissions.py +0 -139
  252. tests/api/circulation/test_loan_item_resolver.py +0 -26
  253. tests/api/circulation/test_loan_list_permissions.py +0 -104
  254. tests/api/circulation/test_loan_patron_resolver.py +0 -38
  255. tests/api/circulation/test_loan_request.py +0 -234
  256. tests/api/circulation/test_loan_update.py +0 -150
  257. tests/api/circulation/test_notifications.py +0 -229
  258. tests/api/conftest.py +0 -236
  259. tests/api/document_requests/__init__.py +0 -8
  260. tests/api/document_requests/test_document_requests.py +0 -131
  261. tests/api/document_requests/test_document_requests_permissions.py +0 -177
  262. tests/api/document_requests/test_notifications_filter.py +0 -36
  263. tests/api/ill/test_ill_brw_crud.py +0 -84
  264. tests/api/ill/test_ill_brw_reqs_patron_loan_create_action.py +0 -207
  265. tests/api/ill/test_ill_brw_reqs_patron_loan_extension_actions.py +0 -298
  266. tests/api/ill/test_ill_brw_reqs_permissions.py +0 -169
  267. tests/api/ill/test_ill_providers_permissions.py +0 -82
  268. tests/api/ils/__init__.py +0 -8
  269. tests/api/ils/documents/__init__.py +0 -8
  270. tests/api/ils/documents/test_document_crud.py +0 -57
  271. tests/api/ils/documents/test_document_permissions.py +0 -106
  272. tests/api/ils/documents/test_document_resolvers.py +0 -35
  273. tests/api/ils/eitems/__init__.py +0 -8
  274. tests/api/ils/eitems/test_eitems_crud.py +0 -41
  275. tests/api/ils/eitems/test_eitems_permissions.py +0 -84
  276. tests/api/ils/eitems/test_files.py +0 -172
  277. tests/api/ils/items/__init__.py +0 -8
  278. tests/api/ils/items/test_apis.py +0 -43
  279. tests/api/ils/items/test_items_crud.py +0 -60
  280. tests/api/ils/items/test_items_permissions.py +0 -107
  281. tests/api/ils/items/test_items_update.py +0 -47
  282. tests/api/ils/records_relations/__init__.py +0 -8
  283. tests/api/ils/records_relations/helpers.py +0 -115
  284. tests/api/ils/records_relations/test_records_relations_parentchild.py +0 -560
  285. tests/api/ils/records_relations/test_records_relations_sequence.py +0 -302
  286. tests/api/ils/records_relations/test_records_relations_siblings.py +0 -678
  287. tests/api/ils/series/__init__.py +0 -8
  288. tests/api/ils/series/test_series_permissions.py +0 -95
  289. tests/api/ils/test_anonymization.py +0 -189
  290. tests/api/ils/test_apis.py +0 -76
  291. tests/api/ils/test_closures.py +0 -324
  292. tests/api/ils/test_errors.py +0 -126
  293. tests/api/ils/test_facets.py +0 -84
  294. tests/api/ils/test_internal_locations.py +0 -96
  295. tests/api/ils/test_loaders.py +0 -55
  296. tests/api/ils/test_metadata_extensions.py +0 -205
  297. tests/api/ils/test_notifications.py +0 -183
  298. tests/api/ils/test_notifications_mails.py +0 -39
  299. tests/api/ils/test_notifications_permissions.py +0 -55
  300. tests/api/ils/test_patrons.py +0 -106
  301. tests/api/ils/test_record_delete.py +0 -46
  302. tests/api/ils/test_record_permissions.py +0 -135
  303. tests/api/ils/test_resolvers.py +0 -207
  304. tests/api/ils/test_stats.py +0 -160
  305. tests/api/ils/test_tasks.py +0 -211
  306. tests/api/ils/test_vocabularies.py +0 -35
  307. tests/conftest.py +0 -123
  308. tests/data/acq_orders.json +0 -89
  309. tests/data/acq_providers.json +0 -12
  310. tests/data/document_requests.json +0 -77
  311. tests/data/documents.json +0 -237
  312. tests/data/eitems.json +0 -66
  313. tests/data/ill_borrowing_requests.json +0 -77
  314. tests/data/ill_providers.json +0 -12
  315. tests/data/internal_locations.json +0 -22
  316. tests/data/items.json +0 -271
  317. tests/data/loans.json +0 -133
  318. tests/data/loans_most_loaned.json +0 -128
  319. tests/data/locations.json +0 -20
  320. tests/data/series.json +0 -33
  321. tests/helpers.py +0 -104
  322. tests/templates/notifications/title_body.html +0 -8
  323. tests/templates/notifications/title_body_html.html +0 -13
  324. tests/templates/notifications/title_body_html_ctx.html +0 -13
  325. tests/templates/notifications/title_only.html +0 -3
  326. tests/test_version.py +0 -17
  327. /tests/templates/notifications/blank.html → /invenio_app_ils/acquisition/mappings/os-v1/__init__.py +0 -0
  328. /invenio_app_ils/stats/aggregations/aggr_file_download/{v6 → os-v1}/__init__.py +0 -0
  329. /invenio_app_ils/stats/file_download/{v6 → os-v1}/__init__.py +0 -0
  330. {invenio_app_ils-1.0.0a54.dist-info → invenio_app_ils-6.1.0.dist-info/licenses}/AUTHORS.rst +0 -0
  331. {invenio_app_ils-1.0.0a54.dist-info → invenio_app_ils-6.1.0.dist-info/licenses}/LICENSE +0 -0
@@ -0,0 +1,732 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-04/schema#",
3
+ "title": "Document",
4
+ "type": "object",
5
+ "required": [
6
+ "$schema",
7
+ "pid",
8
+ "title",
9
+ "authors",
10
+ "publication_year",
11
+ "document_type",
12
+ "created_by"
13
+ ],
14
+ "properties": {
15
+ "$schema": {
16
+ "type": "string"
17
+ },
18
+ "abstract": {
19
+ "title": "Abstract of the document.",
20
+ "type": "string"
21
+ },
22
+ "alternative_abstracts": {
23
+ "items": {
24
+ "type": "string"
25
+ },
26
+ "title": "List of supplementary abstracts",
27
+ "type": "array",
28
+ "uniqueItems": true
29
+ },
30
+ "alternative_identifiers": {
31
+ "items": {
32
+ "properties": {
33
+ "scheme": {
34
+ "title": "Scheme of the identifier (Vocabulary)",
35
+ "type": "string"
36
+ },
37
+ "value": {
38
+ "title": "Value of the identifier",
39
+ "type": "string"
40
+ }
41
+ }
42
+ },
43
+ "required": ["value", "scheme"],
44
+ "title": "List of internal identifiers of the record",
45
+ "type": "array"
46
+ },
47
+ "alternative_titles": {
48
+ "description": "Alternative titles of the document",
49
+ "items": {
50
+ "additionalProperties": false,
51
+ "properties": {
52
+ "language": {
53
+ "maxLength": 3,
54
+ "minLength": 3,
55
+ "title": "ISO 639-3 language code (Vocabulary)",
56
+ "type": "string"
57
+ },
58
+ "type": {
59
+ "title": "Type of alternative title (Vocabulary)",
60
+ "type": "string"
61
+ },
62
+ "value": {
63
+ "minLength": 1,
64
+ "type": "string"
65
+ }
66
+ },
67
+ "required": ["value"],
68
+ "type": "object"
69
+ },
70
+ "minItems": 1,
71
+ "type": "array",
72
+ "uniqueItems": true
73
+ },
74
+ "authors": {
75
+ "items": {
76
+ "additionalProperties": false,
77
+ "properties": {
78
+ "affiliations": {
79
+ "items": {
80
+ "additionalProperties": false,
81
+ "properties": {
82
+ "identifiers": {
83
+ "items": {
84
+ "properties": {
85
+ "scheme": {
86
+ "title": "Affiliation identifier scheme",
87
+ "type": "string"
88
+ },
89
+ "value": {
90
+ "title": "Affiliation identifier value",
91
+ "type": "string"
92
+ }
93
+ },
94
+ "required": ["value", "scheme"],
95
+ "title": "Identifiers affiliation",
96
+ "type": "object"
97
+ },
98
+ "title": "Affiliations identifiers list",
99
+ "type": "array"
100
+ },
101
+ "name": {
102
+ "title": "Affiliation name",
103
+ "type": "string"
104
+ }
105
+ },
106
+ "required": ["name"],
107
+ "type": "object"
108
+ },
109
+ "minItems": 1,
110
+ "type": "array",
111
+ "uniqueItems": true
112
+ },
113
+ "alternative_names": {
114
+ "items": {
115
+ "minLength": 1,
116
+ "type": "string"
117
+ },
118
+ "minItems": 1,
119
+ "type": "array",
120
+ "uniqueItems": true
121
+ },
122
+ "full_name": {
123
+ "minLength": 1,
124
+ "title": "Author name",
125
+ "type": "string"
126
+ },
127
+ "identifiers": {
128
+ "items": {
129
+ "additionalProperties": false,
130
+ "description": "It is mainly used to uniquely identify the authors of their articles.",
131
+ "properties": {
132
+ "scheme": {
133
+ "minLength": 1,
134
+ "title": "Author identifier scheme (Vocabulary)",
135
+ "type": "string"
136
+ },
137
+ "value": {
138
+ "minLength": 1,
139
+ "type": "string"
140
+ }
141
+ },
142
+ "required": ["scheme", "value"],
143
+ "title": "Author identifier",
144
+ "type": "object"
145
+ },
146
+ "minItems": 1,
147
+ "title": "Identifiers of the author",
148
+ "type": "array",
149
+ "uniqueItems": true
150
+ },
151
+ "roles": {
152
+ "items": {
153
+ "minLength": 1,
154
+ "type": "string"
155
+ },
156
+ "minItems": 1,
157
+ "title": "List of author roles (Vocabulary)",
158
+ "type": "array",
159
+ "uniqueItems": true
160
+ },
161
+ "type": {
162
+ "description": "Determines if the author is an institution or a person",
163
+ "title": "Type of the author (Vocabulary)",
164
+ "type": "string"
165
+ }
166
+ },
167
+ "required": ["full_name"],
168
+ "type": "object"
169
+ },
170
+ "minItems": 1,
171
+ "title": "Authors",
172
+ "type": "array",
173
+ "uniqueItems": false
174
+ },
175
+ "circulation": {
176
+ "properties": {
177
+ "$ref": {
178
+ "type": "string"
179
+ }
180
+ },
181
+ "type": "object"
182
+ },
183
+ "conference_info": {
184
+ "items": {
185
+ "additionalProperties": false,
186
+ "properties": {
187
+ "acronym": {
188
+ "minLength": 1,
189
+ "type": "string"
190
+ },
191
+ "country": {
192
+ "minLength": 1,
193
+ "title": "ISO Country (Vocabulary)",
194
+ "type": "string"
195
+ },
196
+ "dates": {
197
+ "minLength": 1,
198
+ "title": "Conference dates.",
199
+ "type": "string"
200
+ },
201
+ "identifiers": {
202
+ "description": "Conference identifiers",
203
+ "items": {
204
+ "scheme": {
205
+ "type": "string"
206
+ },
207
+ "value": {
208
+ "type": "string"
209
+ }
210
+ },
211
+ "minLength": 1,
212
+ "required": ["scheme", "value"],
213
+ "type": "array"
214
+ },
215
+ "place": {
216
+ "minLength": 1,
217
+ "type": "string"
218
+ },
219
+ "series": {
220
+ "minLength": 1,
221
+ "title": "Conference series.",
222
+ "type": "string"
223
+ },
224
+ "title": {
225
+ "minLength": 1,
226
+ "type": "string"
227
+ },
228
+ "year": {
229
+ "minLength": 1,
230
+ "type": "integer"
231
+ }
232
+ },
233
+ "required": ["place", "title"],
234
+ "type": "object"
235
+ },
236
+ "title": "List of conference info",
237
+ "type": "array"
238
+ },
239
+ "copyrights": {
240
+ "items": {
241
+ "additionalProperties": false,
242
+ "properties": {
243
+ "holder": {
244
+ "minLength": 1,
245
+ "title": "Copyright holder",
246
+ "type": "string"
247
+ },
248
+ "material": {
249
+ "minLength": 1,
250
+ "title": "Material to which the copyright refers",
251
+ "type": "string"
252
+ },
253
+ "statement": {
254
+ "minLength": 1,
255
+ "title": "Copyright notice",
256
+ "type": "string"
257
+ },
258
+ "url": {
259
+ "format": "uri",
260
+ "minLength": 1,
261
+ "title": "Copyright notice URL",
262
+ "type": "string"
263
+ },
264
+ "year": {
265
+ "minimum": 1900,
266
+ "type": "integer"
267
+ }
268
+ },
269
+ "type": "object"
270
+ },
271
+ "minItems": 1,
272
+ "title": "List of copyrights to documents in this record",
273
+ "type": "array",
274
+ "uniqueItems": true
275
+ },
276
+ "cover_metadata": {
277
+ "type": "object"
278
+ },
279
+ "created_by": {
280
+ "additionalProperties": false,
281
+ "properties": {
282
+ "type": {
283
+ "type": "string"
284
+ },
285
+ "value": {
286
+ "type": "string"
287
+ }
288
+ },
289
+ "type": "object"
290
+ },
291
+ "curated": {
292
+ "type": "boolean"
293
+ },
294
+ "document_type": {
295
+ "title": "Document type",
296
+ "type": "string"
297
+ },
298
+ "edition": {
299
+ "minLength": 1,
300
+ "title": "Book edition indicator",
301
+ "type": "string"
302
+ },
303
+ "eitems": {
304
+ "properties": {
305
+ "$ref": {
306
+ "type": "string"
307
+ }
308
+ },
309
+ "type": "object"
310
+ },
311
+ "extensions": {
312
+ "additionalProperties": {
313
+ "anyOf": [
314
+ {
315
+ "type": "array",
316
+ "items": {
317
+ "type": ["boolean", "number", "string"]
318
+ }
319
+ },
320
+ { "type": "boolean" },
321
+ { "type": "number" },
322
+ { "type": "string" }
323
+ ]
324
+ },
325
+ "description": "Configured additional metadata",
326
+ "type": "object"
327
+ },
328
+ "identifiers": {
329
+ "items": {
330
+ "properties": {
331
+ "material": {
332
+ "title": "Material to which the identifiers refers to.",
333
+ "type": "string"
334
+ },
335
+ "scheme": {
336
+ "title": "Scheme of the identifier (Vocabulary)",
337
+ "type": "string"
338
+ },
339
+ "value": {
340
+ "title": "Value of the identifier",
341
+ "type": "string"
342
+ }
343
+ },
344
+ "required": ["value", "scheme"]
345
+ },
346
+ "title": "List of Identifiers of the record",
347
+ "type": "array"
348
+ },
349
+ "imprint": {
350
+ "additionalProperties": false,
351
+ "properties": {
352
+ "date": {
353
+ "minLength": 1,
354
+ "title": "Date of publication",
355
+ "type": "string"
356
+ },
357
+ "place": {
358
+ "minLength": 1,
359
+ "title": "Place of publication",
360
+ "type": "string"
361
+ },
362
+ "publisher": {
363
+ "minLength": 1,
364
+ "type": "string"
365
+ },
366
+ "reprint": {
367
+ "minLength": 1,
368
+ "title": "Reprint identifier",
369
+ "type": "string"
370
+ }
371
+ },
372
+ "title": "Imprint",
373
+ "type": "object"
374
+ },
375
+ "internal_notes": {
376
+ "items": {
377
+ "additionalProperties": false,
378
+ "description": "Visible only for Librarians",
379
+ "properties": {
380
+ "field": {
381
+ "title": "Field to which the note refers to",
382
+ "type": "string"
383
+ },
384
+ "user": {
385
+ "title": "User who has composed the note.",
386
+ "type": "string"
387
+ },
388
+ "value": {
389
+ "title": "Note",
390
+ "type": "string"
391
+ }
392
+ },
393
+ "required": ["value"]
394
+ },
395
+ "minItems": 1,
396
+ "title": "List of internal notes",
397
+ "type": "array",
398
+ "uniqueItems": true
399
+ },
400
+ "items": {
401
+ "properties": {
402
+ "$ref": {
403
+ "type": "string"
404
+ }
405
+ },
406
+ "type": "object"
407
+ },
408
+ "keywords": {
409
+ "items": {
410
+ "additionalProperties": false,
411
+ "properties": {
412
+ "source": {
413
+ "type": "string"
414
+ },
415
+ "value": {
416
+ "type": "string"
417
+ }
418
+ }
419
+ },
420
+ "title": "Keywords of the document",
421
+ "type": "array"
422
+ },
423
+ "languages": {
424
+ "items": {
425
+ "maxLength": 3,
426
+ "minLength": 3,
427
+ "title": "ISO 639-3 language code",
428
+ "type": "string"
429
+ },
430
+ "minItems": 1,
431
+ "title": "List of languages of the document",
432
+ "type": "array",
433
+ "uniqueItems": true
434
+ },
435
+ "licenses": {
436
+ "items": {
437
+ "properties": {
438
+ "internal_notes": {
439
+ "title": "Any extra information for this license reserved for library usage",
440
+ "type": "string"
441
+ },
442
+ "license": {
443
+ "properties": {
444
+ "id": {
445
+ "type": "string"
446
+ },
447
+ "$ref": {
448
+ "type": "string"
449
+ }
450
+ },
451
+ "required": ["id"],
452
+ "title": "Open-definition license",
453
+ "type": "object"
454
+ },
455
+ "material": {
456
+ "title": "Material to which the license refers to",
457
+ "type": "string"
458
+ }
459
+ },
460
+ "required": ["license"],
461
+ "type": "object"
462
+ },
463
+ "minItems": 1,
464
+ "title": "List of licenses of the document (Vocabulary)",
465
+ "type": "array",
466
+ "uniqueItems": true
467
+ },
468
+ "note": {
469
+ "title": "Notes of the record",
470
+ "type": "string"
471
+ },
472
+ "number_of_pages": {
473
+ "minLength": 1,
474
+ "title": "Number of pages of the physical items",
475
+ "type": "string"
476
+ },
477
+ "restricted": {
478
+ "default": false,
479
+ "title": "Indicate if the access to this Document is open or not",
480
+ "type": "boolean"
481
+ },
482
+ "other_authors": {
483
+ "title": "Indicates that there are other not listed authors.",
484
+ "type": "boolean"
485
+ },
486
+ "pid": {
487
+ "title": "Document ID",
488
+ "type": "string"
489
+ },
490
+ "physical_description": {
491
+ "title": "Physical description of a document",
492
+ "type": "string"
493
+ },
494
+ "publication_info": {
495
+ "items": {
496
+ "additionalProperties": false,
497
+ "properties": {
498
+ "artid": {
499
+ "minLength": 1,
500
+ "title": "Article ID",
501
+ "type": "string"
502
+ },
503
+ "journal_issue": {
504
+ "minLength": 1,
505
+ "type": "string"
506
+ },
507
+ "journal_title": {
508
+ "minLength": 1,
509
+ "type": "string"
510
+ },
511
+ "journal_volume": {
512
+ "minLength": 1,
513
+ "type": "string"
514
+ },
515
+ "note": {
516
+ "minLength": 1,
517
+ "type": "string"
518
+ },
519
+ "pages": {
520
+ "minLength": 1,
521
+ "title": "Page range of the document",
522
+ "type": "string"
523
+ },
524
+ "year": {
525
+ "minimum": 1000,
526
+ "title": "Publication year",
527
+ "type": "integer"
528
+ }
529
+ },
530
+ "type": "object"
531
+ },
532
+ "minItems": 1,
533
+ "title": "List of information on publication",
534
+ "type": "array",
535
+ "uniqueItems": true
536
+ },
537
+ "publication_year": {
538
+ "minLength": 1,
539
+ "title": "Year of the publication of the record",
540
+ "type": "string"
541
+ },
542
+ "relations": {
543
+ "properties": {
544
+ "$ref": {
545
+ "type": "string"
546
+ }
547
+ },
548
+ "type": "object"
549
+ },
550
+ "relations_metadata": {
551
+ "properties": {
552
+ "edition": {
553
+ "type": "array",
554
+ "items": {
555
+ "type": "object",
556
+ "properties": {
557
+ "pid_value": {
558
+ "type": "string"
559
+ },
560
+ "pid_type": {
561
+ "type": "string"
562
+ },
563
+ "note": {
564
+ "type": "string"
565
+ }
566
+ }
567
+ }
568
+ },
569
+ "language": {
570
+ "type": "array",
571
+ "items": {
572
+ "type": "object",
573
+ "properties": {
574
+ "pid_value": {
575
+ "type": "string"
576
+ },
577
+ "pid_type": {
578
+ "type": "string"
579
+ },
580
+ "note": {
581
+ "type": "string"
582
+ }
583
+ }
584
+ }
585
+ },
586
+ "multipart_monograph": {
587
+ "properties": {
588
+ "pid": {
589
+ "type": "string"
590
+ },
591
+ "pid_type": {
592
+ "type": "string"
593
+ },
594
+ "volume": {
595
+ "type": "string"
596
+ }
597
+ },
598
+ "type": "object"
599
+ },
600
+ "other": {
601
+ "items": {
602
+ "properties": {
603
+ "note": {
604
+ "type": "string"
605
+ },
606
+ "pid": {
607
+ "type": "string"
608
+ },
609
+ "pid_type": {
610
+ "type": "string"
611
+ }
612
+ },
613
+ "type": "object"
614
+ },
615
+ "type": "array"
616
+ },
617
+ "serial": {
618
+ "items": {
619
+ "properties": {
620
+ "pid": {
621
+ "type": "string"
622
+ },
623
+ "pid_type": {
624
+ "type": "string"
625
+ },
626
+ "volume": {
627
+ "type": "string"
628
+ }
629
+ },
630
+ "type": "object"
631
+ },
632
+ "type": "array"
633
+ }
634
+ },
635
+ "title": "Metadata to describe relations",
636
+ "type": "object"
637
+ },
638
+ "source": {
639
+ "title": "Source of the metadata",
640
+ "type": "string"
641
+ },
642
+ "stock": {
643
+ "properties": {
644
+ "$ref": {
645
+ "type": "string"
646
+ }
647
+ },
648
+ "type": "object"
649
+ },
650
+ "subjects": {
651
+ "items": {
652
+ "additionalProperties": false,
653
+ "properties": {
654
+ "scheme": {
655
+ "title": "Scheme of subject classification.",
656
+ "type": "string"
657
+ },
658
+ "value": {
659
+ "title": "Subject classification",
660
+ "type": "string"
661
+ }
662
+ },
663
+ "required": ["value", "scheme"],
664
+ "title": "List of subjects of the document.",
665
+ "type": "object"
666
+ },
667
+ "minItems": 1,
668
+ "title": "List of subjects",
669
+ "type": "array",
670
+ "uniqueItems": true
671
+ },
672
+ "table_of_content": {
673
+ "description": "List of chapters",
674
+ "items": {
675
+ "type": "string"
676
+ },
677
+ "minItems": 1,
678
+ "type": "array"
679
+ },
680
+ "tags": {
681
+ "items": {
682
+ "title": "Tag name",
683
+ "type": "string"
684
+ },
685
+ "title": "List of tags of the document (Vocabulary)",
686
+ "type": "array",
687
+ "uniqueItems": true
688
+ },
689
+ "title": {
690
+ "title": "Title of the document",
691
+ "type": "string"
692
+ },
693
+ "updated_by": {
694
+ "properties": {
695
+ "type": {
696
+ "type": "string"
697
+ },
698
+ "value": {
699
+ "type": "string"
700
+ }
701
+ },
702
+ "title": "Last update entity information",
703
+ "type": "object"
704
+ },
705
+ "urls": {
706
+ "items": {
707
+ "additionalProperties": false,
708
+ "properties": {
709
+ "description": {
710
+ "minLength": 1,
711
+ "type": "string"
712
+ },
713
+ "value": {
714
+ "format": "uri",
715
+ "minLength": 1,
716
+ "type": "string"
717
+ },
718
+ "meta": {
719
+ "type": "string",
720
+ "description": "System information about the url."
721
+ }
722
+ },
723
+ "required": ["value"],
724
+ "title": "URL of external resource",
725
+ "type": "object"
726
+ },
727
+ "minItems": 1,
728
+ "type": "array",
729
+ "uniqueItems": true
730
+ }
731
+ }
732
+ }