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.
- invenio_app_ils/__init__.py +2 -2
- invenio_app_ils/acquisition/api.py +3 -1
- invenio_app_ils/acquisition/config.py +10 -21
- invenio_app_ils/acquisition/jsonresolvers/order_order_lines.py +1 -0
- invenio_app_ils/acquisition/mappings/os-v1/acq_orders/order-v1.0.0.json +364 -0
- invenio_app_ils/acquisition/mappings/os-v2/__init__.py +0 -0
- invenio_app_ils/acquisition/mappings/os-v2/acq_orders/order-v1.0.0.json +364 -0
- invenio_app_ils/acquisition/mappings/v7/acq_orders/order-v1.0.0.json +14 -0
- invenio_app_ils/acquisition/search.py +5 -15
- invenio_app_ils/assets/semantic-ui/less/theme.config +103 -0
- invenio_app_ils/assets/semantic-ui/templates/.gitkeep +0 -0
- invenio_app_ils/circulation/api.py +153 -67
- invenio_app_ils/circulation/config.py +29 -25
- invenio_app_ils/circulation/indexer.py +14 -19
- invenio_app_ils/circulation/loaders/__init__.py +2 -0
- invenio_app_ils/circulation/loaders/schemas/json/loan_checkout.py +2 -3
- invenio_app_ils/circulation/loaders/schemas/json/loan_request.py +82 -16
- invenio_app_ils/circulation/loaders/schemas/json/loan_self_checkout.py +19 -0
- invenio_app_ils/circulation/notifications/api.py +23 -19
- invenio_app_ils/circulation/notifications/messages.py +6 -6
- invenio_app_ils/circulation/notifications/tasks.py +1 -2
- invenio_app_ils/circulation/receivers.py +2 -5
- invenio_app_ils/circulation/search.py +23 -22
- invenio_app_ils/circulation/serializers/__init__.py +2 -2
- invenio_app_ils/circulation/serializers/csv.py +1 -3
- invenio_app_ils/circulation/serializers/custom_fields.py +5 -9
- invenio_app_ils/circulation/serializers/json.py +2 -6
- invenio_app_ils/circulation/serializers/response.py +12 -12
- invenio_app_ils/circulation/stats/views.py +5 -15
- invenio_app_ils/circulation/tasks.py +2 -6
- invenio_app_ils/circulation/templates/invenio_app_ils_circulation/notifications/self_checkout.html +19 -0
- invenio_app_ils/circulation/templates/invenio_app_ils_circulation/notifications/update_dates.html +19 -0
- invenio_app_ils/circulation/utils.py +23 -17
- invenio_app_ils/circulation/views.py +103 -39
- invenio_app_ils/cli.py +220 -260
- invenio_app_ils/closures/api.py +72 -7
- invenio_app_ils/closures/serializers/__init__.py +16 -0
- invenio_app_ils/closures/serializers/response.py +35 -0
- invenio_app_ils/closures/serializers/schema.py +28 -0
- invenio_app_ils/closures/tasks.py +4 -11
- invenio_app_ils/closures/views.py +66 -0
- invenio_app_ils/config.py +207 -150
- invenio_app_ils/document_requests/api.py +6 -21
- invenio_app_ils/document_requests/loaders/__init__.py +4 -12
- invenio_app_ils/document_requests/mappings/{v6 → os-v1}/__init__.py +2 -2
- invenio_app_ils/document_requests/mappings/os-v1/document_requests/document_request-v1.0.0.json +196 -0
- invenio_app_ils/document_requests/mappings/os-v2/__init__.py +8 -0
- invenio_app_ils/document_requests/mappings/os-v2/document_requests/document_request-v1.0.0.json +196 -0
- invenio_app_ils/document_requests/notifications/api.py +2 -7
- invenio_app_ils/document_requests/notifications/messages.py +3 -7
- invenio_app_ils/document_requests/search.py +2 -6
- invenio_app_ils/document_requests/views.py +4 -10
- invenio_app_ils/documents/api.py +19 -25
- invenio_app_ils/documents/indexer.py +13 -20
- invenio_app_ils/documents/jsonresolvers/document_circulation.py +11 -33
- invenio_app_ils/documents/jsonresolvers/document_eitem.py +1 -0
- invenio_app_ils/documents/jsonresolvers/document_item.py +8 -9
- invenio_app_ils/documents/jsonresolvers/document_stock.py +7 -7
- invenio_app_ils/documents/loaders/jsonschemas/document.py +3 -14
- invenio_app_ils/documents/mappings/{v6 → os-v1}/__init__.py +1 -1
- invenio_app_ils/documents/mappings/os-v1/documents/document-v1.0.0.json +932 -0
- invenio_app_ils/documents/mappings/os-v1/documents/document-v2.0.0.json +1066 -0
- invenio_app_ils/documents/mappings/os-v2/__init__.py +8 -0
- invenio_app_ils/documents/mappings/os-v2/documents/document-v1.0.0.json +932 -0
- invenio_app_ils/documents/mappings/os-v2/documents/document-v2.0.0.json +1066 -0
- invenio_app_ils/documents/mappings/v7/documents/document-v1.0.0.json +102 -11
- invenio_app_ils/documents/mappings/v7/documents/document-v2.0.0.json +1066 -0
- invenio_app_ils/documents/schemas/documents/document-v2.0.0.json +732 -0
- invenio_app_ils/eitems/api.py +41 -7
- invenio_app_ils/eitems/loaders/jsonschemas/eitems.py +6 -6
- invenio_app_ils/eitems/mappings/{v6 → os-v1}/__init__.py +1 -1
- invenio_app_ils/eitems/mappings/os-v1/eitems/eitem-v1.0.0.json +139 -0
- invenio_app_ils/eitems/mappings/os-v1/eitems/eitem-v2.0.0.json +142 -0
- invenio_app_ils/eitems/mappings/os-v1/eitems/eitem-v3.0.0.json +179 -0
- invenio_app_ils/{series/mappings/v6 → eitems/mappings/os-v2}/__init__.py +1 -1
- invenio_app_ils/eitems/mappings/os-v2/eitems/eitem-v1.0.0.json +139 -0
- invenio_app_ils/eitems/mappings/os-v2/eitems/eitem-v2.0.0.json +142 -0
- invenio_app_ils/eitems/mappings/os-v2/eitems/eitem-v3.0.0.json +179 -0
- invenio_app_ils/eitems/mappings/v7/eitems/eitem-v1.0.0.json +12 -2
- invenio_app_ils/eitems/mappings/v7/eitems/eitem-v2.0.0.json +142 -0
- invenio_app_ils/eitems/mappings/v7/eitems/eitem-v3.0.0.json +179 -0
- invenio_app_ils/eitems/schemas/eitems/eitem-v2.0.0.json +120 -0
- invenio_app_ils/eitems/schemas/eitems/eitem-v3.0.0.json +120 -0
- invenio_app_ils/eitems/search.py +3 -9
- invenio_app_ils/errors.py +119 -6
- invenio_app_ils/ext.py +15 -18
- invenio_app_ils/facets.py +13 -15
- invenio_app_ils/files/receivers.py +1 -1
- invenio_app_ils/files/views.py +1 -2
- invenio_app_ils/ill/api.py +1 -2
- invenio_app_ils/ill/config.py +10 -16
- invenio_app_ils/ill/jsonresolvers/borrowing_request_document.py +2 -3
- invenio_app_ils/ill/jsonresolvers/borrowing_request_patron.py +1 -3
- invenio_app_ils/ill/jsonresolvers/borrowing_request_provider.py +1 -3
- invenio_app_ils/ill/loaders/__init__.py +3 -9
- invenio_app_ils/ill/loaders/jsonschemas/patron_loan_actions.py +1 -8
- invenio_app_ils/ill/loaders/jsonschemas/patron_loan_extension_actions.py +3 -8
- invenio_app_ils/ill/mappings/{v6 → os-v1}/__init__.py +1 -1
- invenio_app_ils/ill/mappings/os-v1/ill_borrowing_requests/borrowing_request-v1.0.0.json +254 -0
- invenio_app_ils/{acquisition/mappings/v6 → ill/mappings/os-v2}/__init__.py +1 -1
- invenio_app_ils/ill/mappings/os-v2/ill_borrowing_requests/borrowing_request-v1.0.0.json +254 -0
- invenio_app_ils/ill/mappings/v7/ill_borrowing_requests/borrowing_request-v1.0.0.json +14 -0
- invenio_app_ils/ill/notifications/api.py +1 -4
- invenio_app_ils/ill/search.py +3 -9
- invenio_app_ils/ill/serializers/__init__.py +1 -3
- invenio_app_ils/ill/views.py +2 -4
- invenio_app_ils/internal_locations/api.py +1 -4
- invenio_app_ils/internal_locations/mappings/{v6 → os-v1}/__init__.py +1 -1
- invenio_app_ils/internal_locations/mappings/os-v1/internal_locations/internal_location-v1.0.0.json +108 -0
- invenio_app_ils/internal_locations/mappings/os-v2/__init__.py +8 -0
- invenio_app_ils/internal_locations/mappings/os-v2/internal_locations/internal_location-v1.0.0.json +108 -0
- invenio_app_ils/internal_locations/search.py +1 -3
- invenio_app_ils/items/api.py +18 -15
- invenio_app_ils/items/indexer.py +1 -3
- invenio_app_ils/items/jsonresolvers/item_document.py +1 -1
- invenio_app_ils/items/jsonresolvers/item_internal_location.py +2 -6
- invenio_app_ils/items/loaders/jsonschemas/items.py +2 -0
- {tests/api/circulation → invenio_app_ils/items/mappings/os-v1}/__init__.py +1 -1
- invenio_app_ils/items/mappings/os-v1/items/item-v1.0.0.json +285 -0
- invenio_app_ils/items/mappings/os-v1/items/item-v2.0.0.json +326 -0
- {tests/api/ill → invenio_app_ils/items/mappings/os-v2}/__init__.py +1 -1
- invenio_app_ils/items/mappings/os-v2/items/item-v1.0.0.json +285 -0
- invenio_app_ils/items/mappings/os-v2/items/item-v2.0.0.json +326 -0
- invenio_app_ils/items/mappings/v7/items/item-v1.0.0.json +11 -0
- invenio_app_ils/items/mappings/v7/items/item-v2.0.0.json +326 -0
- invenio_app_ils/items/schemas/items/item-v1.0.0.json +22 -0
- invenio_app_ils/items/schemas/items/item-v2.0.0.json +172 -0
- invenio_app_ils/items/search.py +18 -11
- invenio_app_ils/items/serializers/item.py +7 -6
- invenio_app_ils/literature/api.py +1 -3
- invenio_app_ils/literature/search.py +3 -5
- invenio_app_ils/literature/serializers/csv.py +1 -3
- invenio_app_ils/literature/serializers/json.py +1 -3
- invenio_app_ils/locations/api.py +2 -4
- invenio_app_ils/locations/indexer.py +3 -9
- invenio_app_ils/locations/loaders/__init__.py +1 -3
- invenio_app_ils/locations/loaders/jsonschemas/location.py +4 -11
- invenio_app_ils/locations/mappings/{v6 → os-v1}/__init__.py +1 -1
- invenio_app_ils/locations/mappings/os-v1/locations/location-v1.0.0.json +90 -0
- invenio_app_ils/locations/mappings/os-v2/__init__.py +8 -0
- invenio_app_ils/locations/mappings/os-v2/locations/location-v1.0.0.json +90 -0
- invenio_app_ils/notifications/messages.py +4 -3
- invenio_app_ils/notifications/tasks.py +1 -3
- invenio_app_ils/notifications/views.py +2 -2
- invenio_app_ils/patrons/anonymization.py +53 -32
- invenio_app_ils/patrons/api.py +3 -5
- invenio_app_ils/patrons/cli.py +1 -2
- invenio_app_ils/patrons/indexer.py +4 -13
- invenio_app_ils/patrons/mappings/os-v1/__init__.py +8 -0
- invenio_app_ils/patrons/mappings/os-v1/patrons/patron-v1.0.0.json +42 -0
- invenio_app_ils/patrons/mappings/os-v2/__init__.py +8 -0
- invenio_app_ils/patrons/mappings/os-v2/patrons/patron-v1.0.0.json +42 -0
- invenio_app_ils/patrons/views.py +4 -14
- invenio_app_ils/permissions.py +93 -35
- invenio_app_ils/providers/api.py +2 -6
- invenio_app_ils/providers/config.py +11 -19
- invenio_app_ils/providers/indexer.py +2 -6
- invenio_app_ils/providers/mappings/{v6 → os-v1}/__init__.py +1 -1
- invenio_app_ils/providers/mappings/os-v1/providers/provider-v1.0.0.json +57 -0
- invenio_app_ils/providers/mappings/os-v2/__init__.py +8 -0
- invenio_app_ils/providers/mappings/os-v2/providers/provider-v1.0.0.json +57 -0
- invenio_app_ils/providers/mappings/v7/__init__.py +1 -1
- invenio_app_ils/providers/proxies.py +1 -3
- invenio_app_ils/records/api.py +3 -9
- invenio_app_ils/records/loaders/schemas/changed_by.py +1 -3
- invenio_app_ils/records/loaders/schemas/identifiers.py +23 -0
- invenio_app_ils/records/metadata_extensions.py +1 -4
- invenio_app_ils/records/permissions.py +8 -2
- invenio_app_ils/records/serializers/__init__.py +1 -4
- invenio_app_ils/records/views.py +4 -7
- invenio_app_ils/records_relations/api.py +11 -34
- invenio_app_ils/records_relations/indexer.py +1 -3
- invenio_app_ils/records_relations/retriever.py +14 -9
- invenio_app_ils/records_relations/views.py +16 -50
- invenio_app_ils/relations/api.py +17 -16
- invenio_app_ils/search_permissions.py +24 -24
- invenio_app_ils/series/api.py +10 -12
- invenio_app_ils/series/loaders/jsonschemas/series.py +3 -2
- invenio_app_ils/{items/mappings/v6 → series/mappings/os-v1}/__init__.py +1 -1
- invenio_app_ils/series/mappings/os-v1/series/series-v1.0.0.json +324 -0
- invenio_app_ils/series/mappings/os-v1/series/series-v2.0.0.json +396 -0
- {tests/api/acquisition → invenio_app_ils/series/mappings/os-v2}/__init__.py +1 -1
- invenio_app_ils/series/mappings/os-v2/series/series-v1.0.0.json +324 -0
- invenio_app_ils/series/mappings/os-v2/series/series-v2.0.0.json +396 -0
- invenio_app_ils/series/mappings/v7/series/series-v1.0.0.json +35 -3
- invenio_app_ils/series/mappings/v7/series/series-v2.0.0.json +396 -0
- invenio_app_ils/series/schemas/series/series-v2.0.0.json +354 -0
- invenio_app_ils/stats/aggregations/aggr_file_download/os-v1/aggr-file-download-v1.json +60 -0
- invenio_app_ils/stats/aggregations/aggr_file_download/os-v2/__init__.py +9 -0
- invenio_app_ils/stats/aggregations/aggr_file_download/os-v2/aggr-file-download-v1.json +60 -0
- invenio_app_ils/stats/event_builders.py +73 -0
- invenio_app_ils/stats/file_download/os-v1/file-download-v1.json +72 -0
- invenio_app_ils/stats/file_download/os-v2/__init__.py +9 -0
- invenio_app_ils/stats/file_download/os-v2/file-download-v1.json +72 -0
- invenio_app_ils/stats/processors.py +30 -0
- invenio_app_ils/stats/templates/aggregations/__init__.py +8 -0
- invenio_app_ils/stats/templates/aggregations/ils_record_changes/__init__.py +8 -0
- invenio_app_ils/stats/templates/aggregations/ils_record_changes/os-v2/__init__.py +8 -0
- invenio_app_ils/stats/templates/aggregations/ils_record_changes/os-v2/aggr-ils-record-changes-v1.json +41 -0
- {tests → invenio_app_ils/stats/templates/events}/__init__.py +2 -2
- invenio_app_ils/stats/templates/events/ils_record_changes/__init__.py +8 -0
- invenio_app_ils/stats/templates/events/ils_record_changes/os-v2/__init__.py +8 -0
- invenio_app_ils/stats/templates/events/ils_record_changes/os-v2/ils-record-changes-v1.json +41 -0
- invenio_app_ils/templates/logged_out.html +12 -0
- invenio_app_ils/views.py +18 -4
- invenio_app_ils/vocabularies/api.py +1 -1
- invenio_app_ils/vocabularies/cli.py +6 -18
- invenio_app_ils/vocabularies/data/acq_order_line_payment_modes.json +5 -0
- invenio_app_ils/vocabularies/data/identifier_schemes.json +5 -0
- invenio_app_ils/vocabularies/indexer.py +1 -4
- invenio_app_ils/vocabularies/jsonresolvers/licenses.py +2 -11
- invenio_app_ils/vocabularies/mappings/os-v1/__init__.py +8 -0
- invenio_app_ils/vocabularies/mappings/os-v1/vocabularies/vocabulary-v1.0.0.json +23 -0
- invenio_app_ils/vocabularies/mappings/os-v2/__init__.py +8 -0
- invenio_app_ils/vocabularies/mappings/os-v2/vocabularies/vocabulary-v1.0.0.json +23 -0
- invenio_app_ils/vocabularies/sources/base.py +1 -3
- invenio_app_ils/webpack.py +27 -0
- invenio_app_ils-6.1.0.dist-info/METADATA +627 -0
- {invenio_app_ils-1.0.0a54.dist-info → invenio_app_ils-6.1.0.dist-info}/RECORD +227 -249
- {invenio_app_ils-1.0.0a54.dist-info → invenio_app_ils-6.1.0.dist-info}/WHEEL +1 -1
- {invenio_app_ils-1.0.0a54.dist-info → invenio_app_ils-6.1.0.dist-info}/entry_points.txt +9 -5
- {invenio_app_ils-1.0.0a54.dist-info → invenio_app_ils-6.1.0.dist-info}/top_level.txt +0 -1
- invenio_app_ils/acquisition/mappings/v6/acq_orders/order-v1.0.0.json +0 -352
- invenio_app_ils/document_requests/mappings/v6/document_requests/document_request-v1.0.0.json +0 -199
- invenio_app_ils/documents/mappings/v6/documents/document-v1.0.0.json +0 -843
- invenio_app_ils/eitems/mappings/v6/eitems/eitem-v1.0.0.json +0 -131
- invenio_app_ils/ill/mappings/v6/ill_borrowing_requests/borrowing_request-v1.0.0.json +0 -242
- invenio_app_ils/internal_locations/mappings/v6/internal_locations/internal_location-v1.0.0.json +0 -110
- invenio_app_ils/items/mappings/v6/items/item-v1.0.0.json +0 -276
- invenio_app_ils/locations/mappings/v6/locations/location-v1.0.0.json +0 -92
- invenio_app_ils/notifications/admin.py +0 -57
- invenio_app_ils/patrons/mappings/v6/__init__.py +0 -8
- invenio_app_ils/patrons/mappings/v6/patrons/patron-v1.0.0.json +0 -44
- invenio_app_ils/providers/mappings/v6/providers/provider-v1.0.0.json +0 -59
- invenio_app_ils/series/mappings/v6/series/series-v1.0.0.json +0 -298
- invenio_app_ils/stats/aggregations/aggr_file_download/v6/aggr-file-download-v1.json +0 -59
- invenio_app_ils/stats/file_download/v6/file-download-v1.json +0 -74
- invenio_app_ils/version.py +0 -14
- invenio_app_ils/vocabularies/mappings/v6/__init__.py +0 -8
- invenio_app_ils/vocabularies/mappings/v6/vocabularies/vocabulary-v1.0.0.json +0 -25
- invenio_app_ils-1.0.0a54.dist-info/METADATA +0 -95
- tests/api/__init__.py +0 -8
- tests/api/acquisition/test_acq_orders_crud.py +0 -102
- tests/api/acquisition/test_acq_orders_permissions.py +0 -104
- tests/api/acquisition/test_acq_providers_permissions.py +0 -83
- tests/api/circulation/test_expired_loans.py +0 -88
- tests/api/circulation/test_loan_checkout.py +0 -216
- tests/api/circulation/test_loan_default_durations.py +0 -57
- tests/api/circulation/test_loan_document_resolver.py +0 -18
- tests/api/circulation/test_loan_extend.py +0 -132
- tests/api/circulation/test_loan_item_permissions.py +0 -139
- tests/api/circulation/test_loan_item_resolver.py +0 -26
- tests/api/circulation/test_loan_list_permissions.py +0 -104
- tests/api/circulation/test_loan_patron_resolver.py +0 -38
- tests/api/circulation/test_loan_request.py +0 -234
- tests/api/circulation/test_loan_update.py +0 -150
- tests/api/circulation/test_notifications.py +0 -229
- tests/api/conftest.py +0 -236
- tests/api/document_requests/__init__.py +0 -8
- tests/api/document_requests/test_document_requests.py +0 -131
- tests/api/document_requests/test_document_requests_permissions.py +0 -177
- tests/api/document_requests/test_notifications_filter.py +0 -36
- tests/api/ill/test_ill_brw_crud.py +0 -84
- tests/api/ill/test_ill_brw_reqs_patron_loan_create_action.py +0 -207
- tests/api/ill/test_ill_brw_reqs_patron_loan_extension_actions.py +0 -298
- tests/api/ill/test_ill_brw_reqs_permissions.py +0 -169
- tests/api/ill/test_ill_providers_permissions.py +0 -82
- tests/api/ils/__init__.py +0 -8
- tests/api/ils/documents/__init__.py +0 -8
- tests/api/ils/documents/test_document_crud.py +0 -57
- tests/api/ils/documents/test_document_permissions.py +0 -106
- tests/api/ils/documents/test_document_resolvers.py +0 -35
- tests/api/ils/eitems/__init__.py +0 -8
- tests/api/ils/eitems/test_eitems_crud.py +0 -41
- tests/api/ils/eitems/test_eitems_permissions.py +0 -84
- tests/api/ils/eitems/test_files.py +0 -172
- tests/api/ils/items/__init__.py +0 -8
- tests/api/ils/items/test_apis.py +0 -43
- tests/api/ils/items/test_items_crud.py +0 -60
- tests/api/ils/items/test_items_permissions.py +0 -107
- tests/api/ils/items/test_items_update.py +0 -47
- tests/api/ils/records_relations/__init__.py +0 -8
- tests/api/ils/records_relations/helpers.py +0 -115
- tests/api/ils/records_relations/test_records_relations_parentchild.py +0 -560
- tests/api/ils/records_relations/test_records_relations_sequence.py +0 -302
- tests/api/ils/records_relations/test_records_relations_siblings.py +0 -678
- tests/api/ils/series/__init__.py +0 -8
- tests/api/ils/series/test_series_permissions.py +0 -95
- tests/api/ils/test_anonymization.py +0 -189
- tests/api/ils/test_apis.py +0 -76
- tests/api/ils/test_closures.py +0 -324
- tests/api/ils/test_errors.py +0 -126
- tests/api/ils/test_facets.py +0 -84
- tests/api/ils/test_internal_locations.py +0 -96
- tests/api/ils/test_loaders.py +0 -55
- tests/api/ils/test_metadata_extensions.py +0 -205
- tests/api/ils/test_notifications.py +0 -183
- tests/api/ils/test_notifications_mails.py +0 -39
- tests/api/ils/test_notifications_permissions.py +0 -55
- tests/api/ils/test_patrons.py +0 -106
- tests/api/ils/test_record_delete.py +0 -46
- tests/api/ils/test_record_permissions.py +0 -135
- tests/api/ils/test_resolvers.py +0 -207
- tests/api/ils/test_stats.py +0 -160
- tests/api/ils/test_tasks.py +0 -211
- tests/api/ils/test_vocabularies.py +0 -35
- tests/conftest.py +0 -123
- tests/data/acq_orders.json +0 -89
- tests/data/acq_providers.json +0 -12
- tests/data/document_requests.json +0 -77
- tests/data/documents.json +0 -237
- tests/data/eitems.json +0 -66
- tests/data/ill_borrowing_requests.json +0 -77
- tests/data/ill_providers.json +0 -12
- tests/data/internal_locations.json +0 -22
- tests/data/items.json +0 -271
- tests/data/loans.json +0 -133
- tests/data/loans_most_loaned.json +0 -128
- tests/data/locations.json +0 -20
- tests/data/series.json +0 -33
- tests/helpers.py +0 -104
- tests/templates/notifications/title_body.html +0 -8
- tests/templates/notifications/title_body_html.html +0 -13
- tests/templates/notifications/title_body_html_ctx.html +0 -13
- tests/templates/notifications/title_only.html +0 -3
- tests/test_version.py +0 -17
- /tests/templates/notifications/blank.html → /invenio_app_ils/acquisition/mappings/os-v1/__init__.py +0 -0
- /invenio_app_ils/stats/aggregations/aggr_file_download/{v6 → os-v1}/__init__.py +0 -0
- /invenio_app_ils/stats/file_download/{v6 → os-v1}/__init__.py +0 -0
- {invenio_app_ils-1.0.0a54.dist-info → invenio_app_ils-6.1.0.dist-info/licenses}/AUTHORS.rst +0 -0
- {invenio_app_ils-1.0.0a54.dist-info → invenio_app_ils-6.1.0.dist-info/licenses}/LICENSE +0 -0
invenio_app_ils/__init__.py
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
#
|
|
3
|
-
# Copyright (C) 2018 CERN.
|
|
3
|
+
# Copyright (C) 2018-2024 CERN.
|
|
4
4
|
#
|
|
5
5
|
# invenio-app-ils is free software; you can redistribute it and/or modify it
|
|
6
6
|
# under the terms of the MIT License; see LICENSE file for more details.
|
|
7
7
|
|
|
8
8
|
"""invenio-app-ils."""
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
__version__ = "6.1.0"
|
|
11
11
|
|
|
12
12
|
__all__ = ("__version__",)
|
|
@@ -102,7 +102,9 @@ class Order(IlsRecord):
|
|
|
102
102
|
|
|
103
103
|
_pid_type = ORDER_PID_TYPE
|
|
104
104
|
_schema = "acq_orders/order-v1.0.0.json"
|
|
105
|
-
_provider_resolver_path =
|
|
105
|
+
_provider_resolver_path = (
|
|
106
|
+
"{scheme}://{host}/api/resolver/acquisition/orders/{order_pid}/provider" # noqa
|
|
107
|
+
)
|
|
106
108
|
_order_lines_resolver_path = "{scheme}://{host}/api/resolver/acquisition/orders/{order_pid}/order-lines" # noqa
|
|
107
109
|
_validator = OrderValidator()
|
|
108
110
|
|
|
@@ -12,15 +12,14 @@ from invenio_records_rest.facets import terms_filter
|
|
|
12
12
|
from invenio_app_ils.config import RECORDS_REST_MAX_RESULT_WINDOW
|
|
13
13
|
from invenio_app_ils.permissions import (
|
|
14
14
|
backoffice_permission,
|
|
15
|
+
backoffice_read_permission,
|
|
15
16
|
superuser_permission,
|
|
16
17
|
)
|
|
17
18
|
|
|
18
19
|
from .api import ORDER_PID_FETCHER, ORDER_PID_MINTER, ORDER_PID_TYPE, Order
|
|
19
20
|
from .search import OrderSearch
|
|
20
21
|
|
|
21
|
-
_ORDER_CONVERTER = (
|
|
22
|
-
'pid(acqoid, record_class="invenio_app_ils.acquisition.api:Order")'
|
|
23
|
-
)
|
|
22
|
+
_ORDER_CONVERTER = 'pid(acqoid, record_class="invenio_app_ils.acquisition.api:Order")'
|
|
24
23
|
|
|
25
24
|
RECORDS_REST_ENDPOINTS = dict(
|
|
26
25
|
acqoid=dict(
|
|
@@ -31,34 +30,26 @@ RECORDS_REST_ENDPOINTS = dict(
|
|
|
31
30
|
record_class=Order,
|
|
32
31
|
indexer_class=RecordIndexer,
|
|
33
32
|
record_loaders={
|
|
34
|
-
"application/json":
|
|
35
|
-
"invenio_app_ils.acquisition.loaders:order_loader"
|
|
36
|
-
)
|
|
33
|
+
"application/json": "invenio_app_ils.acquisition.loaders:order_loader"
|
|
37
34
|
},
|
|
38
35
|
record_serializers={
|
|
39
|
-
"application/json":
|
|
40
|
-
"invenio_app_ils.records.serializers:json_v1_response"
|
|
41
|
-
)
|
|
36
|
+
"application/json": "invenio_app_ils.records.serializers:json_v1_response"
|
|
42
37
|
},
|
|
43
38
|
search_serializers={
|
|
44
|
-
"application/json":
|
|
45
|
-
|
|
46
|
-
),
|
|
47
|
-
"text/csv": ("invenio_app_ils.records.serializers:csv_v1_search"),
|
|
39
|
+
"application/json": "invenio_app_ils.records.serializers:json_v1_search",
|
|
40
|
+
"text/csv": "invenio_app_ils.records.serializers:csv_v1_search",
|
|
48
41
|
},
|
|
49
42
|
search_serializers_aliases={
|
|
50
43
|
"csv": "text/csv",
|
|
51
44
|
"json": "application/json",
|
|
52
45
|
},
|
|
53
46
|
list_route="/acquisition/orders/",
|
|
54
|
-
item_route="/acquisition/orders/<{0}:pid_value>".format(
|
|
55
|
-
_ORDER_CONVERTER
|
|
56
|
-
),
|
|
47
|
+
item_route="/acquisition/orders/<{0}:pid_value>".format(_ORDER_CONVERTER),
|
|
57
48
|
default_media_type="application/json",
|
|
58
49
|
max_result_window=RECORDS_REST_MAX_RESULT_WINDOW,
|
|
59
50
|
error_handlers=dict(),
|
|
60
|
-
read_permission_factory_imp=
|
|
61
|
-
list_permission_factory_imp=
|
|
51
|
+
read_permission_factory_imp=backoffice_read_permission,
|
|
52
|
+
list_permission_factory_imp=backoffice_read_permission,
|
|
62
53
|
create_permission_factory_imp=backoffice_permission,
|
|
63
54
|
update_permission_factory_imp=backoffice_permission,
|
|
64
55
|
delete_permission_factory_imp=superuser_permission,
|
|
@@ -98,9 +89,7 @@ RECORDS_REST_FACETS = dict(
|
|
|
98
89
|
aggs=dict(
|
|
99
90
|
status=dict(terms=dict(field="status")),
|
|
100
91
|
provider=dict(
|
|
101
|
-
terms=dict(
|
|
102
|
-
field="provider.name.keyword", size=FACET_PROVIDER_LIMIT
|
|
103
|
-
)
|
|
92
|
+
terms=dict(field="provider.name.keyword", size=FACET_PROVIDER_LIMIT)
|
|
104
93
|
),
|
|
105
94
|
payment_mode=dict(terms=dict(field="order_lines.payment_mode")),
|
|
106
95
|
medium=dict(terms=dict(field="order_lines.medium")),
|
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
{
|
|
2
|
+
"settings": {
|
|
3
|
+
"analysis": {
|
|
4
|
+
"analyzer": {
|
|
5
|
+
"email": {
|
|
6
|
+
"type": "custom",
|
|
7
|
+
"tokenizer": "uax_url_email"
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"mappings": {
|
|
13
|
+
"date_detection": false,
|
|
14
|
+
"numeric_detection": false,
|
|
15
|
+
"properties": {
|
|
16
|
+
"$schema": {
|
|
17
|
+
"type": "keyword"
|
|
18
|
+
},
|
|
19
|
+
"_created": {
|
|
20
|
+
"type": "date"
|
|
21
|
+
},
|
|
22
|
+
"_updated": {
|
|
23
|
+
"type": "date"
|
|
24
|
+
},
|
|
25
|
+
"cancel_reason": {
|
|
26
|
+
"type": "text"
|
|
27
|
+
},
|
|
28
|
+
"created_by": {
|
|
29
|
+
"properties": {
|
|
30
|
+
"type": {
|
|
31
|
+
"type": "keyword"
|
|
32
|
+
},
|
|
33
|
+
"value": {
|
|
34
|
+
"type": "keyword"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"type": "object"
|
|
38
|
+
},
|
|
39
|
+
"expected_delivery_date": {
|
|
40
|
+
"type": "date"
|
|
41
|
+
},
|
|
42
|
+
"funds": {
|
|
43
|
+
"type": "text"
|
|
44
|
+
},
|
|
45
|
+
"grand_total": {
|
|
46
|
+
"properties": {
|
|
47
|
+
"currency": {
|
|
48
|
+
"type": "keyword"
|
|
49
|
+
},
|
|
50
|
+
"value": {
|
|
51
|
+
"type": "float"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"type": "object"
|
|
55
|
+
},
|
|
56
|
+
"grand_total_main_currency": {
|
|
57
|
+
"properties": {
|
|
58
|
+
"currency": {
|
|
59
|
+
"type": "keyword"
|
|
60
|
+
},
|
|
61
|
+
"value": {
|
|
62
|
+
"type": "float"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"type": "object"
|
|
66
|
+
},
|
|
67
|
+
"legacy_id": {
|
|
68
|
+
"type": "keyword"
|
|
69
|
+
},
|
|
70
|
+
"notes": {
|
|
71
|
+
"type": "text"
|
|
72
|
+
},
|
|
73
|
+
"order_date": {
|
|
74
|
+
"type": "date"
|
|
75
|
+
},
|
|
76
|
+
"order_lines": {
|
|
77
|
+
"properties": {
|
|
78
|
+
"budget_code": {
|
|
79
|
+
"type": "keyword"
|
|
80
|
+
},
|
|
81
|
+
"copies_ordered": {
|
|
82
|
+
"type": "integer"
|
|
83
|
+
},
|
|
84
|
+
"copies_received": {
|
|
85
|
+
"type": "integer"
|
|
86
|
+
},
|
|
87
|
+
"document": {
|
|
88
|
+
"properties": {
|
|
89
|
+
"authors": {
|
|
90
|
+
"type": "text"
|
|
91
|
+
},
|
|
92
|
+
"cover_metadata": {
|
|
93
|
+
"properties": {},
|
|
94
|
+
"type": "object"
|
|
95
|
+
},
|
|
96
|
+
"edition": {
|
|
97
|
+
"type": "text"
|
|
98
|
+
},
|
|
99
|
+
"pid": {
|
|
100
|
+
"type": "keyword"
|
|
101
|
+
},
|
|
102
|
+
"publication_year": {
|
|
103
|
+
"type": "keyword"
|
|
104
|
+
},
|
|
105
|
+
"title": {
|
|
106
|
+
"type": "text",
|
|
107
|
+
"fields": {
|
|
108
|
+
"keyword": {
|
|
109
|
+
"type": "keyword"
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"alternative_titles": {
|
|
114
|
+
"properties": {
|
|
115
|
+
"language": {
|
|
116
|
+
"type": "keyword"
|
|
117
|
+
},
|
|
118
|
+
"type": {
|
|
119
|
+
"type": "keyword"
|
|
120
|
+
},
|
|
121
|
+
"value": {
|
|
122
|
+
"type": "text"
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"type": "object"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"type": "object"
|
|
129
|
+
},
|
|
130
|
+
"document_pid": {
|
|
131
|
+
"type": "keyword"
|
|
132
|
+
},
|
|
133
|
+
"inter_departmental_transaction_id": {
|
|
134
|
+
"type": "keyword"
|
|
135
|
+
},
|
|
136
|
+
"is_donation": {
|
|
137
|
+
"type": "boolean"
|
|
138
|
+
},
|
|
139
|
+
"is_patron_suggestion": {
|
|
140
|
+
"type": "boolean"
|
|
141
|
+
},
|
|
142
|
+
"medium": {
|
|
143
|
+
"type": "keyword"
|
|
144
|
+
},
|
|
145
|
+
"notes": {
|
|
146
|
+
"type": "text"
|
|
147
|
+
},
|
|
148
|
+
"patron": {
|
|
149
|
+
"properties": {
|
|
150
|
+
"email": {
|
|
151
|
+
"type": "text",
|
|
152
|
+
"analyzer": "email"
|
|
153
|
+
},
|
|
154
|
+
"id": {
|
|
155
|
+
"type": "keyword"
|
|
156
|
+
},
|
|
157
|
+
"name": {
|
|
158
|
+
"type": "text",
|
|
159
|
+
"fields": {
|
|
160
|
+
"keyword": {
|
|
161
|
+
"type": "keyword"
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
"type": "object"
|
|
167
|
+
},
|
|
168
|
+
"patron_pid": {
|
|
169
|
+
"type": "keyword"
|
|
170
|
+
},
|
|
171
|
+
"payment_mode": {
|
|
172
|
+
"type": "keyword"
|
|
173
|
+
},
|
|
174
|
+
"purchase_type": {
|
|
175
|
+
"type": "keyword"
|
|
176
|
+
},
|
|
177
|
+
"recipient": {
|
|
178
|
+
"type": "keyword"
|
|
179
|
+
},
|
|
180
|
+
"total_price": {
|
|
181
|
+
"properties": {
|
|
182
|
+
"currency": {
|
|
183
|
+
"type": "keyword"
|
|
184
|
+
},
|
|
185
|
+
"value": {
|
|
186
|
+
"type": "float"
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
"type": "object"
|
|
190
|
+
},
|
|
191
|
+
"unit_price": {
|
|
192
|
+
"properties": {
|
|
193
|
+
"currency": {
|
|
194
|
+
"type": "keyword"
|
|
195
|
+
},
|
|
196
|
+
"value": {
|
|
197
|
+
"type": "float"
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
"type": "object"
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
"type": "object"
|
|
204
|
+
},
|
|
205
|
+
"payment": {
|
|
206
|
+
"properties": {
|
|
207
|
+
"debit_cost": {
|
|
208
|
+
"properties": {
|
|
209
|
+
"currency": {
|
|
210
|
+
"type": "keyword"
|
|
211
|
+
},
|
|
212
|
+
"value": {
|
|
213
|
+
"type": "float"
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
"type": "object"
|
|
217
|
+
},
|
|
218
|
+
"debit_cost_main_currency": {
|
|
219
|
+
"properties": {
|
|
220
|
+
"currency": {
|
|
221
|
+
"type": "keyword"
|
|
222
|
+
},
|
|
223
|
+
"value": {
|
|
224
|
+
"type": "float"
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
"type": "object"
|
|
228
|
+
},
|
|
229
|
+
"debit_date": {
|
|
230
|
+
"type": "date"
|
|
231
|
+
},
|
|
232
|
+
"debit_note": {
|
|
233
|
+
"type": "text"
|
|
234
|
+
},
|
|
235
|
+
"internal_purchase_requisition_id": {
|
|
236
|
+
"type": "keyword"
|
|
237
|
+
},
|
|
238
|
+
"mode": {
|
|
239
|
+
"type": "keyword"
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
"type": "object"
|
|
243
|
+
},
|
|
244
|
+
"pid": {
|
|
245
|
+
"type": "keyword"
|
|
246
|
+
},
|
|
247
|
+
"received_date": {
|
|
248
|
+
"type": "date"
|
|
249
|
+
},
|
|
250
|
+
"resolved_order_lines": {
|
|
251
|
+
"properties": {
|
|
252
|
+
"budget_code": {
|
|
253
|
+
"type": "keyword"
|
|
254
|
+
},
|
|
255
|
+
"copies_ordered": {
|
|
256
|
+
"type": "integer"
|
|
257
|
+
},
|
|
258
|
+
"copies_received": {
|
|
259
|
+
"type": "integer"
|
|
260
|
+
},
|
|
261
|
+
"document_pid": {
|
|
262
|
+
"type": "keyword"
|
|
263
|
+
},
|
|
264
|
+
"inter_departmental_transaction_id": {
|
|
265
|
+
"type": "keyword"
|
|
266
|
+
},
|
|
267
|
+
"is_donation": {
|
|
268
|
+
"type": "boolean"
|
|
269
|
+
},
|
|
270
|
+
"is_patron_suggestion": {
|
|
271
|
+
"type": "boolean"
|
|
272
|
+
},
|
|
273
|
+
"medium": {
|
|
274
|
+
"type": "keyword"
|
|
275
|
+
},
|
|
276
|
+
"notes": {
|
|
277
|
+
"type": "text"
|
|
278
|
+
},
|
|
279
|
+
"patron_pid": {
|
|
280
|
+
"type": "keyword"
|
|
281
|
+
},
|
|
282
|
+
"payment_mode": {
|
|
283
|
+
"type": "keyword"
|
|
284
|
+
},
|
|
285
|
+
"purchase_type": {
|
|
286
|
+
"type": "keyword"
|
|
287
|
+
},
|
|
288
|
+
"recipient": {
|
|
289
|
+
"type": "keyword"
|
|
290
|
+
},
|
|
291
|
+
"total_price": {
|
|
292
|
+
"properties": {
|
|
293
|
+
"currency": {
|
|
294
|
+
"type": "keyword"
|
|
295
|
+
},
|
|
296
|
+
"value": {
|
|
297
|
+
"type": "float"
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
"type": "object"
|
|
301
|
+
},
|
|
302
|
+
"unit_price": {
|
|
303
|
+
"properties": {
|
|
304
|
+
"currency": {
|
|
305
|
+
"type": "keyword"
|
|
306
|
+
},
|
|
307
|
+
"value": {
|
|
308
|
+
"type": "float"
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
"type": "object"
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
"type": "object"
|
|
315
|
+
},
|
|
316
|
+
"status": {
|
|
317
|
+
"type": "keyword"
|
|
318
|
+
},
|
|
319
|
+
"updated_by": {
|
|
320
|
+
"properties": {
|
|
321
|
+
"type": {
|
|
322
|
+
"type": "keyword"
|
|
323
|
+
},
|
|
324
|
+
"value": {
|
|
325
|
+
"type": "keyword"
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
"type": "object"
|
|
329
|
+
},
|
|
330
|
+
"provider": {
|
|
331
|
+
"properties": {
|
|
332
|
+
"address": {
|
|
333
|
+
"type": "text"
|
|
334
|
+
},
|
|
335
|
+
"email": {
|
|
336
|
+
"type": "text",
|
|
337
|
+
"analyzer": "email"
|
|
338
|
+
},
|
|
339
|
+
"name": {
|
|
340
|
+
"fields": {
|
|
341
|
+
"keyword": {
|
|
342
|
+
"type": "keyword"
|
|
343
|
+
}
|
|
344
|
+
},
|
|
345
|
+
"type": "text"
|
|
346
|
+
},
|
|
347
|
+
"notes": {
|
|
348
|
+
"type": "text"
|
|
349
|
+
},
|
|
350
|
+
"phone": {
|
|
351
|
+
"type": "keyword"
|
|
352
|
+
},
|
|
353
|
+
"pid": {
|
|
354
|
+
"type": "keyword"
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
"type": "object"
|
|
358
|
+
},
|
|
359
|
+
"provider_pid": {
|
|
360
|
+
"type": "keyword"
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
}
|
|
File without changes
|