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,932 @@
1
+ {
2
+ "settings": {
3
+ "analysis": {
4
+ "normalizer": {
5
+ "lowercase_normalizer": {
6
+ "type": "custom",
7
+ "char_filter": [],
8
+ "filter": [
9
+ "lowercase"
10
+ ]
11
+ }
12
+ },
13
+ "analyzer": {
14
+ "min_length_2": {
15
+ "tokenizer": "standard",
16
+ "filter": [ "min_length_2" ]
17
+ }
18
+ },
19
+ "filter": {
20
+ "min_length_2": {
21
+ "type": "length",
22
+ "min": 2
23
+ }
24
+ }
25
+ }
26
+ },
27
+ "mappings": {
28
+ "date_detection": false,
29
+ "numeric_detection": false,
30
+ "properties": {
31
+ "$schema": {
32
+ "type": "keyword"
33
+ },
34
+ "_access": {
35
+ "properties": {
36
+ "read": {
37
+ "type": "keyword"
38
+ }
39
+ },
40
+ "type": "object"
41
+ },
42
+ "_created": {
43
+ "type": "date"
44
+ },
45
+ "_updated": {
46
+ "type": "date"
47
+ },
48
+ "abstract": {
49
+ "type": "text"
50
+ },
51
+ "alternative_abstracts": {
52
+ "type": "text"
53
+ },
54
+ "alternative_identifiers": {
55
+ "properties": {
56
+ "material": {
57
+ "type": "keyword"
58
+ },
59
+ "scheme": {
60
+ "type": "keyword"
61
+ },
62
+ "value": {
63
+ "type": "keyword"
64
+ }
65
+ },
66
+ "type": "object"
67
+ },
68
+ "alternative_titles": {
69
+ "properties": {
70
+ "language": {
71
+ "type": "keyword"
72
+ },
73
+ "type": {
74
+ "type": "keyword"
75
+ },
76
+ "value": {
77
+ "type": "text"
78
+ }
79
+ },
80
+ "type": "object"
81
+ },
82
+ "authors": {
83
+ "properties": {
84
+ "affiliations": {
85
+ "properties": {
86
+ "identifiers": {
87
+ "properties": {
88
+ "scheme": {
89
+ "type": "keyword"
90
+ },
91
+ "value": {
92
+ "type": "keyword"
93
+ }
94
+ },
95
+ "type": "object"
96
+ },
97
+ "name": {
98
+ "type": "text",
99
+ "fields": {
100
+ "keyword": {
101
+ "type": "keyword"
102
+ }
103
+ }
104
+ }
105
+ },
106
+ "type": "object"
107
+ },
108
+ "alternative_names": {
109
+ "type": "text",
110
+ "fields": {
111
+ "keyword": {
112
+ "type": "keyword"
113
+ }
114
+ }
115
+ },
116
+ "full_name": {
117
+ "type": "text",
118
+ "fields": {
119
+ "keyword": {
120
+ "type": "keyword"
121
+ },
122
+ "full_words": {
123
+ "type": "text",
124
+ "analyzer": "min_length_2",
125
+ "search_analyzer": "min_length_2"
126
+ }
127
+ }
128
+ },
129
+ "identifiers": {
130
+ "properties": {
131
+ "material": {
132
+ "type": "keyword"
133
+ },
134
+ "scheme": {
135
+ "type": "keyword"
136
+ },
137
+ "value": {
138
+ "type": "keyword"
139
+ }
140
+ },
141
+ "type": "object"
142
+ },
143
+ "roles": {
144
+ "type": "keyword"
145
+ },
146
+ "type": {
147
+ "type": "keyword"
148
+ }
149
+ },
150
+ "type": "object"
151
+ },
152
+ "circulation": {
153
+ "properties": {
154
+ "active_loans_count": {
155
+ "type": "integer"
156
+ },
157
+ "can_circulate_items_count": {
158
+ "type": "integer"
159
+ },
160
+ "available_items_for_loan_count": {
161
+ "type": "integer"
162
+ },
163
+ "has_items_on_site": {
164
+ "type": "integer"
165
+ },
166
+ "next_available_date": {
167
+ "type": "date"
168
+ },
169
+ "overbooked": {
170
+ "type": "boolean"
171
+ },
172
+ "overdue_loans_count": {
173
+ "type": "integer"
174
+ },
175
+ "past_loans_count": {
176
+ "type": "integer"
177
+ },
178
+ "pending_loans_count": {
179
+ "type": "integer"
180
+ }
181
+ },
182
+ "type": "object"
183
+ },
184
+ "cover_metadata": {
185
+ "properties": {},
186
+ "type": "object"
187
+ },
188
+ "created_by": {
189
+ "properties": {
190
+ "type": {
191
+ "type": "keyword"
192
+ },
193
+ "value": {
194
+ "type": "keyword"
195
+ }
196
+ },
197
+ "type": "object"
198
+ },
199
+ "curated": {
200
+ "type": "boolean"
201
+ },
202
+ "document_type": {
203
+ "type": "keyword"
204
+ },
205
+ "edition": {
206
+ "type": "text"
207
+ },
208
+ "eitems": {
209
+ "properties": {
210
+ "hits": {
211
+ "properties": {
212
+ "bucket_id": {
213
+ "type": "keyword"
214
+ },
215
+ "description": {
216
+ "type": "text"
217
+ },
218
+ "files": {
219
+ "properties": {
220
+ "bucket": {
221
+ "type": "keyword"
222
+ },
223
+ "checksum": {
224
+ "type": "keyword"
225
+ },
226
+ "file_id": {
227
+ "type": "keyword"
228
+ },
229
+ "key": {
230
+ "type": "keyword"
231
+ },
232
+ "size": {
233
+ "type": "keyword"
234
+ },
235
+ "version_id": {
236
+ "type": "keyword"
237
+ }
238
+ },
239
+ "type": "object"
240
+ },
241
+ "identifiers": {
242
+ "properties": {
243
+ "material": {
244
+ "type": "keyword"
245
+ },
246
+ "scheme": {
247
+ "type": "keyword"
248
+ },
249
+ "value": {
250
+ "type": "keyword"
251
+ }
252
+ },
253
+ "type": "object"
254
+ },
255
+ "internal_notes": {
256
+ "type": "text"
257
+ },
258
+ "open_access": {
259
+ "type": "boolean"
260
+ },
261
+ "pid": {
262
+ "type": "keyword"
263
+ },
264
+ "urls": {
265
+ "properties": {
266
+ "description": {
267
+ "type": "text"
268
+ },
269
+ "value": {
270
+ "type": "keyword"
271
+ },
272
+ "login_required": {
273
+ "type": "boolean"
274
+ }
275
+ },
276
+ "type": "object"
277
+ }
278
+ },
279
+ "type": "object"
280
+ },
281
+ "total": {
282
+ "type": "integer"
283
+ }
284
+ },
285
+ "type": "object"
286
+ },
287
+ "extensions": {
288
+ "type": "object"
289
+ },
290
+ "extensions_keywords": {
291
+ "type": "object",
292
+ "properties": {
293
+ "key": { "type": "keyword" },
294
+ "value": { "type": "keyword" }
295
+ }
296
+ },
297
+ "extensions_texts": {
298
+ "type": "object",
299
+ "properties": {
300
+ "key": { "type": "keyword" },
301
+ "value": { "type": "text" }
302
+ }
303
+ },
304
+ "extensions_longs": {
305
+ "type": "object",
306
+ "properties": {
307
+ "key": { "type": "keyword" },
308
+ "value": { "type": "long" }
309
+ }
310
+ },
311
+ "extensions_dates": {
312
+ "type": "object",
313
+ "properties": {
314
+ "key": { "type": "keyword" },
315
+ "value": { "type": "date" }
316
+ }
317
+ },
318
+ "extensions_booleans": {
319
+ "type": "object",
320
+ "properties": {
321
+ "key": { "type": "keyword" },
322
+ "value": { "type": "boolean" }
323
+ }
324
+ },
325
+ "identifiers": {
326
+ "properties": {
327
+ "material": {
328
+ "type": "keyword"
329
+ },
330
+ "scheme": {
331
+ "type": "keyword"
332
+ },
333
+ "value": {
334
+ "type": "keyword",
335
+ "fields": {
336
+ "text": {
337
+ "type": "text"
338
+ }
339
+ }
340
+ }
341
+ },
342
+ "type": "object"
343
+ },
344
+ "imprint": {
345
+ "properties": {
346
+ "date": {
347
+ "type": "text"
348
+ },
349
+ "place": {
350
+ "type": "keyword"
351
+ },
352
+ "publisher": {
353
+ "type": "keyword",
354
+ "fields": {
355
+ "text": {
356
+ "type": "text"
357
+ }
358
+ }
359
+ },
360
+ "reprint": {
361
+ "type": "text"
362
+ }
363
+ },
364
+ "type": "object"
365
+ },
366
+ "internal_notes": {
367
+ "properties": {
368
+ "field": {
369
+ "type": "keyword"
370
+ },
371
+ "user": {
372
+ "type": "keyword"
373
+ },
374
+ "value": {
375
+ "type": "keyword",
376
+ "fields": {
377
+ "text": {
378
+ "type": "text"
379
+ }
380
+ }
381
+ }
382
+ },
383
+ "type": "object"
384
+ },
385
+ "items": {
386
+ "properties": {
387
+ "hits": {
388
+ "properties": {
389
+ "barcode": {
390
+ "type": "keyword"
391
+ },
392
+ "circulation_restriction": {
393
+ "type": "keyword"
394
+ },
395
+ "description": {
396
+ "type": "text"
397
+ },
398
+ "internal_location": {
399
+ "properties": {
400
+ "location": {
401
+ "properties": {
402
+ "name": {
403
+ "type": "keyword"
404
+ }
405
+ },
406
+ "type": "object"
407
+ },
408
+ "name": {
409
+ "type": "keyword"
410
+ }
411
+ },
412
+ "type": "object"
413
+ },
414
+ "internal_location_pid": {
415
+ "type": "keyword"
416
+ },
417
+ "isbn": {
418
+ "properties": {
419
+ "description": {
420
+ "type": "text"
421
+ },
422
+ "value": {
423
+ "type": "keyword"
424
+ }
425
+ },
426
+ "type": "object"
427
+ },
428
+ "medium": {
429
+ "type": "keyword"
430
+ },
431
+ "pid": {
432
+ "type": "keyword"
433
+ },
434
+ "shelf": {
435
+ "type": "keyword"
436
+ },
437
+ "identifiers": {
438
+ "properties": {
439
+ "scheme": {
440
+ "type": "text"
441
+ },
442
+ "value": {
443
+ "type": "keyword"
444
+ }
445
+ },
446
+ "type": "object"
447
+ },
448
+ "status": {
449
+ "type": "keyword"
450
+ }
451
+ },
452
+ "type": "object"
453
+ },
454
+ "total": {
455
+ "type": "integer"
456
+ }
457
+ },
458
+ "type": "object"
459
+ },
460
+ "keywords": {
461
+ "properties": {
462
+ "source": {
463
+ "type": "text"
464
+ },
465
+ "value": {
466
+ "type": "text",
467
+ "fields": {
468
+ "keyword": {
469
+ "type": "keyword"
470
+ }
471
+ }
472
+ }
473
+ },
474
+ "type": "object"
475
+ },
476
+ "languages": {
477
+ "type": "keyword"
478
+ },
479
+ "licenses": {
480
+ "properties": {
481
+ "internal_notes": {
482
+ "type": "text"
483
+ },
484
+ "license": {
485
+ "properties": {
486
+ "id": {
487
+ "type": "keyword"
488
+ },
489
+ "maintainer": {
490
+ "type": "keyword"
491
+ },
492
+ "status": {
493
+ "type": "keyword"
494
+ },
495
+ "title": {
496
+ "type": "keyword"
497
+ },
498
+ "url": {
499
+ "type": "keyword"
500
+ }
501
+ },
502
+ "type": "object"
503
+ },
504
+ "material": {
505
+ "type": "keyword"
506
+ }
507
+ },
508
+ "type": "object"
509
+ },
510
+ "note": {
511
+ "type": "text"
512
+ },
513
+ "number_of_pages": {
514
+ "type": "keyword",
515
+ "fields": {
516
+ "text": {
517
+ "type": "text"
518
+ }
519
+ }
520
+ },
521
+ "other_authors": {
522
+ "type": "boolean"
523
+ },
524
+ "pid": {
525
+ "type": "keyword"
526
+ },
527
+ "publication_info": {
528
+ "properties": {
529
+ "artid": {
530
+ "type": "keyword"
531
+ },
532
+ "journal_issue": {
533
+ "type": "keyword"
534
+ },
535
+ "journal_title": {
536
+ "type": "keyword",
537
+ "fields": {
538
+ "text": {
539
+ "type": "text"
540
+ }
541
+ }
542
+ },
543
+ "journal_volume": {
544
+ "type": "keyword"
545
+ },
546
+ "note": {
547
+ "type": "keyword",
548
+ "fields": {
549
+ "text": {
550
+ "type": "text"
551
+ }
552
+ }
553
+ },
554
+ "pages": {
555
+ "type": "keyword"
556
+ },
557
+ "year": {
558
+ "type": "keyword"
559
+ }
560
+ },
561
+ "type": "object"
562
+ },
563
+ "publication_year": {
564
+ "type": "keyword"
565
+ },
566
+ "relation_types": {
567
+ "type": "keyword"
568
+ },
569
+ "relations": {
570
+ "properties": {
571
+ "next": {
572
+ "properties": {
573
+ "pid": {
574
+ "type": "keyword"
575
+ },
576
+ "pid_type": {
577
+ "type": "keyword"
578
+ },
579
+ "relation_type": {
580
+ "copy_to": "relation_types",
581
+ "type": "keyword"
582
+ },
583
+ "title": {
584
+ "type": "text"
585
+ }
586
+ },
587
+ "type": "object"
588
+ },
589
+ "previous": {
590
+ "properties": {
591
+ "pid": {
592
+ "type": "keyword"
593
+ },
594
+ "pid_type": {
595
+ "type": "keyword"
596
+ },
597
+ "relation_type": {
598
+ "copy_to": "relation_types",
599
+ "type": "keyword"
600
+ },
601
+ "title": {
602
+ "type": "text"
603
+ }
604
+ },
605
+ "type": "object"
606
+ },
607
+ "edition": {
608
+ "properties": {
609
+ "pid": {
610
+ "type": "keyword"
611
+ },
612
+ "pid_type": {
613
+ "type": "keyword"
614
+ },
615
+ "relation_type": {
616
+ "copy_to": "relation_types",
617
+ "type": "keyword"
618
+ },
619
+ "title": {
620
+ "type": "text"
621
+ }
622
+ },
623
+ "type": "object"
624
+ },
625
+ "language": {
626
+ "properties": {
627
+ "language": {
628
+ "type": "keyword"
629
+ },
630
+ "pid": {
631
+ "type": "keyword"
632
+ },
633
+ "pid_type": {
634
+ "type": "keyword"
635
+ },
636
+ "relation_type": {
637
+ "copy_to": "relation_types",
638
+ "type": "keyword"
639
+ },
640
+ "title": {
641
+ "type": "text"
642
+ }
643
+ },
644
+ "type": "object"
645
+ },
646
+ "multipart_monograph": {
647
+ "properties": {
648
+ "pid": {
649
+ "type": "keyword"
650
+ },
651
+ "pid_type": {
652
+ "type": "keyword"
653
+ },
654
+ "relation_type": {
655
+ "copy_to": "relation_types",
656
+ "type": "keyword"
657
+ },
658
+ "title": {
659
+ "type": "text"
660
+ },
661
+ "volume": {
662
+ "type": "keyword",
663
+ "copy_to": "volume"
664
+ }
665
+ },
666
+ "type": "object"
667
+ },
668
+ "other": {
669
+ "properties": {
670
+ "note": {
671
+ "type": "keyword"
672
+ },
673
+ "pid": {
674
+ "type": "keyword"
675
+ },
676
+ "pid_type": {
677
+ "type": "keyword"
678
+ },
679
+ "relation_type": {
680
+ "copy_to": "relation_types",
681
+ "type": "keyword"
682
+ },
683
+ "title": {
684
+ "type": "text"
685
+ }
686
+ },
687
+ "type": "object"
688
+ },
689
+ "serial": {
690
+ "properties": {
691
+ "pid": {
692
+ "type": "keyword"
693
+ },
694
+ "pid_type": {
695
+ "type": "keyword"
696
+ },
697
+ "relation_type": {
698
+ "copy_to": "relation_types",
699
+ "type": "keyword"
700
+ },
701
+ "title": {
702
+ "type": "text"
703
+ },
704
+ "volume": {
705
+ "type": "keyword",
706
+ "copy_to": "volume"
707
+ }
708
+ },
709
+ "type": "object"
710
+ }
711
+ },
712
+ "type": "object"
713
+ },
714
+ "relations_metadata": {
715
+ "properties": {
716
+ "edition": {
717
+ "properties": {
718
+ "note": {
719
+ "type": "keyword"
720
+ },
721
+ "pid": {
722
+ "type": "keyword"
723
+ },
724
+ "pid_type": {
725
+ "type": "keyword"
726
+ }
727
+ },
728
+ "type": "object"
729
+ },
730
+ "language": {
731
+ "properties": {
732
+ "note": {
733
+ "type": "keyword"
734
+ },
735
+ "pid": {
736
+ "type": "keyword"
737
+ },
738
+ "pid_type": {
739
+ "type": "keyword"
740
+ }
741
+ },
742
+ "type": "object"
743
+ },
744
+ "multipart_monograph": {
745
+ "properties": {
746
+ "pid": {
747
+ "type": "keyword"
748
+ },
749
+ "pid_type": {
750
+ "type": "keyword"
751
+ },
752
+ "volume": {
753
+ "type": "keyword"
754
+ }
755
+ },
756
+ "type": "object"
757
+ },
758
+ "other": {
759
+ "properties": {
760
+ "note": {
761
+ "type": "keyword"
762
+ },
763
+ "pid": {
764
+ "type": "keyword"
765
+ },
766
+ "pid_type": {
767
+ "type": "keyword"
768
+ }
769
+ },
770
+ "type": "object"
771
+ },
772
+ "serial": {
773
+ "properties": {
774
+ "pid": {
775
+ "type": "keyword"
776
+ },
777
+ "pid_type": {
778
+ "type": "keyword"
779
+ },
780
+ "volume": {
781
+ "type": "keyword"
782
+ }
783
+ },
784
+ "type": "object"
785
+ }
786
+ },
787
+ "type": "object"
788
+ },
789
+ "restricted": {
790
+ "type": "boolean"
791
+ },
792
+ "source": {
793
+ "type": "keyword",
794
+ "fields": {
795
+ "text": {
796
+ "type": "text"
797
+ }
798
+ }
799
+ },
800
+ "stock": {
801
+ "properties": {
802
+ "mediums": {
803
+ "type": "keyword"
804
+ }
805
+ },
806
+ "type": "object"
807
+ },
808
+ "subjects": {
809
+ "properties": {
810
+ "scheme": {
811
+ "type": "keyword"
812
+ },
813
+ "value": {
814
+ "type": "keyword"
815
+ }
816
+ },
817
+ "type": "object"
818
+ },
819
+ "table_of_content": {
820
+ "type": "text"
821
+ },
822
+ "tags": {
823
+ "type": "keyword"
824
+ },
825
+ "title": {
826
+ "type": "text",
827
+ "fields": {
828
+ "keyword": {
829
+ "type": "keyword"
830
+ },
831
+ "normalized_keyword": {
832
+ "type": "keyword",
833
+ "normalizer": "lowercase_normalizer"
834
+ }
835
+ }
836
+ },
837
+ "updated_by": {
838
+ "properties": {
839
+ "type": {
840
+ "type": "keyword"
841
+ },
842
+ "value": {
843
+ "type": "keyword"
844
+ }
845
+ },
846
+ "type": "object"
847
+ },
848
+ "urls": {
849
+ "properties": {
850
+ "description": {
851
+ "type": "keyword"
852
+ },
853
+ "value": {
854
+ "type": "keyword"
855
+ },
856
+ "meta": {
857
+ "type": "text"
858
+ }
859
+ },
860
+ "type": "object"
861
+ },
862
+ "volume": {
863
+ "type": "text",
864
+ "fields": {
865
+ "keyword": {
866
+ "type": "keyword"
867
+ }
868
+ }
869
+ },
870
+ "conference_info": {
871
+ "properties": {
872
+ "acronym": {
873
+ "type": "keyword"
874
+ },
875
+ "country": {
876
+ "type": "keyword"
877
+ },
878
+ "dates": {
879
+ "type": "text"
880
+ },
881
+ "identifiers": {
882
+ "properties": {
883
+ "scheme": {
884
+ "type": "keyword"
885
+ },
886
+ "value": {
887
+ "type": "keyword",
888
+ "fields": {
889
+ "text": {
890
+ "type": "text"
891
+ }
892
+ }
893
+ }
894
+ },
895
+ "type": "object"
896
+ },
897
+ "place": {
898
+ "type": "keyword",
899
+ "fields": {
900
+ "text": {
901
+ "type": "text"
902
+ }
903
+ }
904
+ },
905
+ "series": {
906
+ "type": "text",
907
+ "fields": {
908
+ "keyword": {
909
+ "type": "keyword"
910
+ }
911
+ }
912
+ },
913
+ "title": {
914
+ "type": "text",
915
+ "fields": {
916
+ "keyword": {
917
+ "type": "keyword"
918
+ }
919
+ }
920
+ },
921
+ "year": {
922
+ "type": "keyword"
923
+ }
924
+ },
925
+ "type": "object"
926
+ },
927
+ "physical_description": {
928
+ "type": "text"
929
+ }
930
+ }
931
+ }
932
+ }