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
tests/data/ill_providers.json
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"pid": "ilocid-1",
|
|
4
|
-
"location_pid": "locid-1",
|
|
5
|
-
"name": "Internal Library 1"
|
|
6
|
-
},
|
|
7
|
-
{
|
|
8
|
-
"pid": "ilocid-2",
|
|
9
|
-
"location_pid": "locid-1",
|
|
10
|
-
"name": "Internal Library 2"
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
"pid": "ilocid-3",
|
|
14
|
-
"location_pid": "locid-1",
|
|
15
|
-
"name": "Unused Internal Library"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"pid": "ilocid-4",
|
|
19
|
-
"location_pid": "locid-2",
|
|
20
|
-
"name": "Another unused library"
|
|
21
|
-
}
|
|
22
|
-
]
|
tests/data/items.json
DELETED
|
@@ -1,271 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"pid": "itemid-1",
|
|
4
|
-
"created_by": {"type": "script", "value": "demo"},
|
|
5
|
-
"barcode": "123456789-1",
|
|
6
|
-
"document_pid": "docid-1",
|
|
7
|
-
"internal_location_pid": "ilocid-1",
|
|
8
|
-
"circulation_restriction": "NO_RESTRICTION",
|
|
9
|
-
"medium": "NOT_SPECIFIED",
|
|
10
|
-
"status": "MISSING",
|
|
11
|
-
"document": {}
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
"pid": "itemid-2",
|
|
15
|
-
"created_by": {"type": "script", "value": "demo"},
|
|
16
|
-
"barcode": "123456789-2",
|
|
17
|
-
"document_pid": "docid-1",
|
|
18
|
-
"internal_location_pid": "ilocid-2",
|
|
19
|
-
"circulation_restriction": "ONE_WEEK",
|
|
20
|
-
"medium": "NOT_SPECIFIED",
|
|
21
|
-
"status": "CAN_CIRCULATE",
|
|
22
|
-
"document": {}
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"pid": "itemid-3",
|
|
26
|
-
"created_by": {"type": "script", "value": "demo"},
|
|
27
|
-
"barcode": "123456789-3",
|
|
28
|
-
"document_pid": "docid-2",
|
|
29
|
-
"internal_location_pid": "ilocid-1",
|
|
30
|
-
"circulation_restriction": "TWO_WEEKS",
|
|
31
|
-
"medium": "NOT_SPECIFIED",
|
|
32
|
-
"status": "CAN_CIRCULATE",
|
|
33
|
-
"document": {}
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"pid": "itemid-4",
|
|
37
|
-
"created_by": {"type": "script", "value": "demo"},
|
|
38
|
-
"barcode": "123456789-4",
|
|
39
|
-
"document_pid": "docid-3",
|
|
40
|
-
"internal_location_pid": "ilocid-2",
|
|
41
|
-
"circulation_restriction": "THREE_WEEKS",
|
|
42
|
-
"medium": "NOT_SPECIFIED",
|
|
43
|
-
"status": "CAN_CIRCULATE",
|
|
44
|
-
"document": {}
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"pid": "itemid-5",
|
|
48
|
-
"created_by": {"type": "script", "value": "demo"},
|
|
49
|
-
"barcode": "123456789-5",
|
|
50
|
-
"document_pid": "docid-3",
|
|
51
|
-
"internal_location_pid": "ilocid-1",
|
|
52
|
-
"circulation_restriction": "ONE_WEEK",
|
|
53
|
-
"medium": "NOT_SPECIFIED",
|
|
54
|
-
"status": "CAN_CIRCULATE",
|
|
55
|
-
"document": {}
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"pid": "itemid-6",
|
|
59
|
-
"created_by": {"type": "script", "value": "demo"},
|
|
60
|
-
"barcode": "123456789-6",
|
|
61
|
-
"document_pid": "docid-3",
|
|
62
|
-
"internal_location_pid": "ilocid-1",
|
|
63
|
-
"circulation_restriction": "NO_RESTRICTION",
|
|
64
|
-
"medium": "NOT_SPECIFIED",
|
|
65
|
-
"status": "CAN_CIRCULATE",
|
|
66
|
-
"document": {}
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"pid": "itemid-7",
|
|
70
|
-
"created_by": {"type": "script", "value": "demo"},
|
|
71
|
-
"barcode": "123456789-7",
|
|
72
|
-
"document_pid": "docid-5",
|
|
73
|
-
"internal_location_pid": "ilocid-2",
|
|
74
|
-
"circulation_restriction": "NO_RESTRICTION",
|
|
75
|
-
"medium": "NOT_SPECIFIED",
|
|
76
|
-
"status": "IN_BINDING",
|
|
77
|
-
"document": {}
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
"pid": "itemid-8",
|
|
81
|
-
"created_by": {"type": "script", "value": "demo"},
|
|
82
|
-
"barcode": "123456789-8",
|
|
83
|
-
"document_pid": "docid-5",
|
|
84
|
-
"internal_location_pid": "ilocid-1",
|
|
85
|
-
"circulation_restriction": "NO_RESTRICTION",
|
|
86
|
-
"medium": "NOT_SPECIFIED",
|
|
87
|
-
"status": "MISSING",
|
|
88
|
-
"document": {}
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
"pid": "itemid-9",
|
|
92
|
-
"created_by": {"type": "script", "value": "demo"},
|
|
93
|
-
"barcode": "123456789-9",
|
|
94
|
-
"document_pid": "docid-5",
|
|
95
|
-
"internal_location_pid": "ilocid-1",
|
|
96
|
-
"circulation_restriction": "NO_RESTRICTION",
|
|
97
|
-
"medium": "NOT_SPECIFIED",
|
|
98
|
-
"status": "CAN_CIRCULATE",
|
|
99
|
-
"document": {}
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
"pid": "itemid-10",
|
|
103
|
-
"created_by": {"type": "script", "value": "demo"},
|
|
104
|
-
"barcode": "123456789-10",
|
|
105
|
-
"document_pid": "docid-5",
|
|
106
|
-
"internal_location_pid": "ilocid-1",
|
|
107
|
-
"circulation_restriction": "NO_RESTRICTION",
|
|
108
|
-
"medium": "NOT_SPECIFIED",
|
|
109
|
-
"status": "CAN_CIRCULATE",
|
|
110
|
-
"document": {}
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
"pid": "itemid-50",
|
|
114
|
-
"created_by": {"type": "script", "value": "demo"},
|
|
115
|
-
"barcode": "123456789-50",
|
|
116
|
-
"document_pid": "docid-5",
|
|
117
|
-
"internal_location_pid": "ilocid-1",
|
|
118
|
-
"circulation_restriction": "NO_RESTRICTION",
|
|
119
|
-
"medium": "NOT_SPECIFIED",
|
|
120
|
-
"status": "CAN_CIRCULATE",
|
|
121
|
-
"_access": { "update": [1] },
|
|
122
|
-
"document": {}
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"pid": "itemid-51",
|
|
126
|
-
"created_by": {"type": "script", "value": "demo"},
|
|
127
|
-
"barcode": "123456789-51",
|
|
128
|
-
"document_pid": "docid-5",
|
|
129
|
-
"internal_location_pid": "ilocid-2",
|
|
130
|
-
"circulation_restriction": "NO_RESTRICTION",
|
|
131
|
-
"medium": "NOT_SPECIFIED",
|
|
132
|
-
"status": "CAN_CIRCULATE",
|
|
133
|
-
"_access": { "delete": ["librarian"] },
|
|
134
|
-
"document": {}
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
"pid": "itemid-52",
|
|
138
|
-
"created_by": {"type": "script", "value": "demo"},
|
|
139
|
-
"barcode": "123456789-52",
|
|
140
|
-
"document_pid": "docid-5",
|
|
141
|
-
"internal_location_pid": "ilocid-1",
|
|
142
|
-
"circulation_restriction": "NO_RESTRICTION",
|
|
143
|
-
"medium": "NOT_SPECIFIED",
|
|
144
|
-
"status": "CAN_CIRCULATE",
|
|
145
|
-
"_access": { "delete": ["1"] },
|
|
146
|
-
"document": {}
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
"pid": "itemid-53",
|
|
150
|
-
"created_by": {"type": "script", "value": "demo"},
|
|
151
|
-
"barcode": "123456789-53",
|
|
152
|
-
"document_pid": "docid-5",
|
|
153
|
-
"internal_location_pid": "ilocid-1",
|
|
154
|
-
"circulation_restriction": "NO_RESTRICTION",
|
|
155
|
-
"medium": "NOT_SPECIFIED",
|
|
156
|
-
"status": "CAN_CIRCULATE",
|
|
157
|
-
"_access": { "update": ["1"] },
|
|
158
|
-
"document": {}
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
"pid": "itemid-54",
|
|
162
|
-
"created_by": {"type": "script", "value": "demo"},
|
|
163
|
-
"barcode": "123456789-54",
|
|
164
|
-
"document_pid": "docid-5",
|
|
165
|
-
"internal_location_pid": "ilocid-1",
|
|
166
|
-
"circulation_restriction": "NO_RESTRICTION",
|
|
167
|
-
"medium": "NOT_SPECIFIED",
|
|
168
|
-
"status": "CAN_CIRCULATE",
|
|
169
|
-
"_access": { "read": ["1"] },
|
|
170
|
-
"document": {}
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
"pid": "itemid-55",
|
|
174
|
-
"created_by": {"type": "script", "value": "demo"},
|
|
175
|
-
"barcode": "123456789-55",
|
|
176
|
-
"document_pid": "docid-1",
|
|
177
|
-
"internal_location_pid": "ilocid-1",
|
|
178
|
-
"circulation_restriction": "NO_RESTRICTION",
|
|
179
|
-
"medium": "NOT_SPECIFIED",
|
|
180
|
-
"status": "MISSING",
|
|
181
|
-
"document": {}
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
"pid": "itemid-56",
|
|
185
|
-
"created_by": {"type": "script", "value": "demo"},
|
|
186
|
-
"barcode": "123456789-54",
|
|
187
|
-
"document_pid": "docid-5",
|
|
188
|
-
"internal_location_pid": "ilocid-1",
|
|
189
|
-
"circulation_restriction": "NO_RESTRICTION",
|
|
190
|
-
"medium": "NOT_SPECIFIED",
|
|
191
|
-
"status": "CAN_CIRCULATE",
|
|
192
|
-
"document": {}
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
"pid": "itemid-57",
|
|
196
|
-
"created_by": {"type": "script", "value": "demo"},
|
|
197
|
-
"barcode": "123456789-55",
|
|
198
|
-
"document_pid": "docid-1",
|
|
199
|
-
"internal_location_pid": "ilocid-1",
|
|
200
|
-
"circulation_restriction": "NO_RESTRICTION",
|
|
201
|
-
"medium": "NOT_SPECIFIED",
|
|
202
|
-
"status": "CAN_CIRCULATE",
|
|
203
|
-
"document": {}
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
"pid": "itemid-MISSING",
|
|
207
|
-
"created_by": {"type": "script", "value": "demo"},
|
|
208
|
-
"barcode": "123456789-55",
|
|
209
|
-
"document_pid": "docid-1",
|
|
210
|
-
"internal_location_pid": "ilocid-1",
|
|
211
|
-
"circulation_restriction": "NO_RESTRICTION",
|
|
212
|
-
"medium": "NOT_SPECIFIED",
|
|
213
|
-
"status": "MISSING",
|
|
214
|
-
"document": {}
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
"pid": "itemid-60",
|
|
218
|
-
"created_by": {"type": "script", "value": "demo"},
|
|
219
|
-
"barcode": "123456789-55",
|
|
220
|
-
"document_pid": "docid-1",
|
|
221
|
-
"internal_location_pid": "ilocid-1",
|
|
222
|
-
"circulation_restriction": "NO_RESTRICTION",
|
|
223
|
-
"medium": "NOT_SPECIFIED",
|
|
224
|
-
"status": "CAN_CIRCULATE",
|
|
225
|
-
"document": {}
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
"pid": "itemid-61",
|
|
229
|
-
"created_by": {"type": "script", "value": "demo"},
|
|
230
|
-
"barcode": "123456789-55",
|
|
231
|
-
"document_pid": "docid-1",
|
|
232
|
-
"internal_location_pid": "ilocid-1",
|
|
233
|
-
"circulation_restriction": "NO_RESTRICTION",
|
|
234
|
-
"medium": "NOT_SPECIFIED",
|
|
235
|
-
"status": "CAN_CIRCULATE",
|
|
236
|
-
"document": {}
|
|
237
|
-
},
|
|
238
|
-
{
|
|
239
|
-
"pid": "itemid-62",
|
|
240
|
-
"created_by": {"type": "script", "value": "demo"},
|
|
241
|
-
"barcode": "123456789-55",
|
|
242
|
-
"document_pid": "docid-1",
|
|
243
|
-
"internal_location_pid": "ilocid-1",
|
|
244
|
-
"circulation_restriction": "NO_RESTRICTION",
|
|
245
|
-
"medium": "NOT_SPECIFIED",
|
|
246
|
-
"status": "CAN_CIRCULATE",
|
|
247
|
-
"document": {}
|
|
248
|
-
},
|
|
249
|
-
{
|
|
250
|
-
"pid": "itemid-63",
|
|
251
|
-
"created_by": {"type": "script", "value": "demo"},
|
|
252
|
-
"barcode": "123456789-55",
|
|
253
|
-
"document_pid": "docid-1",
|
|
254
|
-
"internal_location_pid": "ilocid-1",
|
|
255
|
-
"circulation_restriction": "NO_RESTRICTION",
|
|
256
|
-
"medium": "NOT_SPECIFIED",
|
|
257
|
-
"status": "CAN_CIRCULATE",
|
|
258
|
-
"document": {}
|
|
259
|
-
},
|
|
260
|
-
{
|
|
261
|
-
"pid": "itemid-71",
|
|
262
|
-
"created_by": {"type": "script", "value": "demo"},
|
|
263
|
-
"barcode": "123456789-55",
|
|
264
|
-
"document_pid": "docid-17",
|
|
265
|
-
"internal_location_pid": "ilocid-4",
|
|
266
|
-
"circulation_restriction": "NO_RESTRICTION",
|
|
267
|
-
"medium": "NOT_SPECIFIED",
|
|
268
|
-
"status": "CAN_CIRCULATE",
|
|
269
|
-
"document": {}
|
|
270
|
-
}
|
|
271
|
-
]
|
tests/data/loans.json
DELETED
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"document_pid": "docid-1",
|
|
4
|
-
"end_date": "2018-07-28",
|
|
5
|
-
"item_pid": {},
|
|
6
|
-
"patron_pid": "1",
|
|
7
|
-
"pickup_location_pid": "locid-1",
|
|
8
|
-
"pid": "loanid-1",
|
|
9
|
-
"start_date": "2018-06-28",
|
|
10
|
-
"state": "PENDING",
|
|
11
|
-
"transaction_date": "2018-06-29T14:46:07.928230+00:00",
|
|
12
|
-
"transaction_location_pid": "locid-1",
|
|
13
|
-
"request_start_date": "2018-06-28",
|
|
14
|
-
"request_expire_date": "2019-06-28",
|
|
15
|
-
"patron": {
|
|
16
|
-
"email": "patron1@test.ch"
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
"document_pid": "docid-1",
|
|
21
|
-
"end_date": "2018-07-28",
|
|
22
|
-
"item_pid": {
|
|
23
|
-
"type": "pitmid",
|
|
24
|
-
"value": "itemid-2"
|
|
25
|
-
},
|
|
26
|
-
"patron_pid": "1",
|
|
27
|
-
"pickup_location_pid": "locid-1",
|
|
28
|
-
"pid": "loanid-2",
|
|
29
|
-
"start_date": "2018-06-28",
|
|
30
|
-
"state": "PENDING",
|
|
31
|
-
"transaction_date": "2018-06-29T14:46:07.928230+00:00",
|
|
32
|
-
"transaction_location_pid": "locid-1",
|
|
33
|
-
"request_start_date": "2018-06-28",
|
|
34
|
-
"request_expire_date": "2019-06-28",
|
|
35
|
-
"patron": {
|
|
36
|
-
"email": "patron2@test.ch"
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"document_pid": "docid-3",
|
|
41
|
-
"end_date": "2018-07-28",
|
|
42
|
-
"item_pid": {
|
|
43
|
-
"type": "pitmid",
|
|
44
|
-
"value": "itemid-5"
|
|
45
|
-
},
|
|
46
|
-
"patron_pid": "2",
|
|
47
|
-
"pickup_location_pid": "locid-1",
|
|
48
|
-
"pid": "loanid-3",
|
|
49
|
-
"start_date": "2018-06-28",
|
|
50
|
-
"state": "PENDING",
|
|
51
|
-
"transaction_date": "2018-06-29T14:46:07.928230+00:00",
|
|
52
|
-
"transaction_location_pid": "locid-1",
|
|
53
|
-
"request_start_date": "2018-06-28",
|
|
54
|
-
"request_expire_date": "2019-06-28"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"document_pid": "docid-5",
|
|
58
|
-
"end_date": "2018-07-28",
|
|
59
|
-
"item_pid": {
|
|
60
|
-
"type": "pitmid",
|
|
61
|
-
"value": "itemid-7"
|
|
62
|
-
},
|
|
63
|
-
"patron_pid": "2",
|
|
64
|
-
"pickup_location_pid": "locid-1",
|
|
65
|
-
"pid": "loanid-4",
|
|
66
|
-
"start_date": "2018-06-28",
|
|
67
|
-
"state": "PENDING",
|
|
68
|
-
"transaction_date": "2018-06-29T14:46:07.928230+00:00",
|
|
69
|
-
"transaction_location_pid": "locid-1",
|
|
70
|
-
"request_start_date": "2018-06-28",
|
|
71
|
-
"request_expire_date": "2019-06-28"
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
"document_pid": "docid-7",
|
|
75
|
-
"end_date": "2018-07-28",
|
|
76
|
-
"item_pid": {
|
|
77
|
-
"type": "pitmid",
|
|
78
|
-
"value": "itemid-56"
|
|
79
|
-
},
|
|
80
|
-
"patron_pid": "1",
|
|
81
|
-
"pickup_location_pid": "locid-1",
|
|
82
|
-
"pid": "loanid-5",
|
|
83
|
-
"start_date": "2018-06-28",
|
|
84
|
-
"state": "ITEM_ON_LOAN",
|
|
85
|
-
"transaction_date": "2018-06-29T14:46:07.928230+00:00",
|
|
86
|
-
"transaction_location_pid": "locid-1",
|
|
87
|
-
"request_start_date": "2018-06-28",
|
|
88
|
-
"request_expire_date": "2019-06-28"
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
"document_pid": "docid-7",
|
|
92
|
-
"end_date": "2018-07-28",
|
|
93
|
-
"item_pid": {
|
|
94
|
-
"type": "pitmid",
|
|
95
|
-
"value": "itemid-57"
|
|
96
|
-
},
|
|
97
|
-
"patron_pid": "2",
|
|
98
|
-
"pickup_location_pid": "locid-1",
|
|
99
|
-
"pid": "loanid-6",
|
|
100
|
-
"start_date": "2018-06-28",
|
|
101
|
-
"state": "ITEM_ON_LOAN",
|
|
102
|
-
"transaction_date": "2018-06-29T14:46:07.928230+00:00",
|
|
103
|
-
"transaction_location_pid": "locid-1",
|
|
104
|
-
"request_start_date": "2018-06-28",
|
|
105
|
-
"request_expire_date": "2019-06-28"
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
"document_pid": "docid-1",
|
|
109
|
-
"end_date": "2018-07-28",
|
|
110
|
-
"patron_pid": "20",
|
|
111
|
-
"pickup_location_pid": "locid-1",
|
|
112
|
-
"pid": "loanid-7",
|
|
113
|
-
"start_date": "2018-06-28",
|
|
114
|
-
"state": "PENDING",
|
|
115
|
-
"transaction_date": "2018-06-29T14:46:07.928230+00:00",
|
|
116
|
-
"transaction_location_pid": "locid-1",
|
|
117
|
-
"request_start_date": "2018-06-28",
|
|
118
|
-
"request_expire_date": "2019-06-28"
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
"document_pid": "docid-1",
|
|
122
|
-
"end_date": "2018-07-28",
|
|
123
|
-
"patron_pid": "-2",
|
|
124
|
-
"pickup_location_pid": "locid-1",
|
|
125
|
-
"pid": "loanid-8",
|
|
126
|
-
"start_date": "2018-06-28",
|
|
127
|
-
"state": "PENDING",
|
|
128
|
-
"transaction_date": "2018-06-29T14:46:07.928230+00:00",
|
|
129
|
-
"transaction_location_pid": "locid-1",
|
|
130
|
-
"request_start_date": "2018-06-28",
|
|
131
|
-
"request_expire_date": "2019-06-28"
|
|
132
|
-
}
|
|
133
|
-
]
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"pid": "mostloaned-1",
|
|
4
|
-
"document_pid": "docid-1",
|
|
5
|
-
"item_pid": {
|
|
6
|
-
"type": "pitmid",
|
|
7
|
-
"value": "itemid-2"
|
|
8
|
-
},
|
|
9
|
-
"patron_pid": "1",
|
|
10
|
-
"state": "ITEM_RETURNED",
|
|
11
|
-
"start_date": "2019-01-02",
|
|
12
|
-
"end_date": "2019-02-02",
|
|
13
|
-
"transaction_date": "2019-01-02",
|
|
14
|
-
"extension_count": 0
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"pid": "mostloaned-2",
|
|
18
|
-
"document_pid": "docid-1",
|
|
19
|
-
"item_pid": {
|
|
20
|
-
"type": "pitmid",
|
|
21
|
-
"value": "itemid-2"
|
|
22
|
-
},
|
|
23
|
-
"patron_pid": "1",
|
|
24
|
-
"state": "ITEM_RETURNED",
|
|
25
|
-
"start_date": "2019-02-02",
|
|
26
|
-
"end_date": "2019-03-02",
|
|
27
|
-
"transaction_date": "2019-02-02",
|
|
28
|
-
"transaction_location_pid": "1",
|
|
29
|
-
"pickup_location_pid": "1",
|
|
30
|
-
"extension_count": 0
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"pid": "mostloaned-3",
|
|
34
|
-
"document_pid": "docid-1",
|
|
35
|
-
"item_pid": {
|
|
36
|
-
"type": "pitmid",
|
|
37
|
-
"value": "itemid-2"
|
|
38
|
-
},
|
|
39
|
-
"patron_pid": "1",
|
|
40
|
-
"state": "ITEM_RETURNED",
|
|
41
|
-
"start_date": "2019-03-02",
|
|
42
|
-
"end_date": "2019-04-02",
|
|
43
|
-
"transaction_date": "2019-03-02",
|
|
44
|
-
"transaction_location_pid": "1",
|
|
45
|
-
"pickup_location_pid": "1",
|
|
46
|
-
"extension_count": 0
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"pid": "mostloaned-4",
|
|
50
|
-
"document_pid": "docid-2",
|
|
51
|
-
"item_pid": {
|
|
52
|
-
"type": "pitmid",
|
|
53
|
-
"value": "itemid-3"
|
|
54
|
-
},
|
|
55
|
-
"patron_pid": "1",
|
|
56
|
-
"state": "ITEM_RETURNED",
|
|
57
|
-
"start_date": "2019-02-10",
|
|
58
|
-
"end_date": "2019-03-10",
|
|
59
|
-
"transaction_date": "2019-02-10",
|
|
60
|
-
"transaction_location_pid": "1",
|
|
61
|
-
"pickup_location_pid": "1",
|
|
62
|
-
"extension_count": 1
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
"pid": "mostloaned-5",
|
|
66
|
-
"document_pid": "docid-2",
|
|
67
|
-
"item_pid": {
|
|
68
|
-
"type": "pitmid",
|
|
69
|
-
"value": "itemid-3"
|
|
70
|
-
},
|
|
71
|
-
"patron_pid": "1",
|
|
72
|
-
"state": "PENDING",
|
|
73
|
-
"start_date": "2019-04-10",
|
|
74
|
-
"end_date": "2019-05-10",
|
|
75
|
-
"transaction_date": "2019-04-10",
|
|
76
|
-
"transaction_location_pid": "1",
|
|
77
|
-
"pickup_location_pid": "1",
|
|
78
|
-
"extension_count": 1
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"pid": "mostloaned-6",
|
|
82
|
-
"document_pid": "docid-3",
|
|
83
|
-
"item_pid": {
|
|
84
|
-
"type": "pitmid",
|
|
85
|
-
"value": "itemid-4"
|
|
86
|
-
},
|
|
87
|
-
"patron_pid": "1",
|
|
88
|
-
"state": "ITEM_RETURNED",
|
|
89
|
-
"start_date": "2019-02-20",
|
|
90
|
-
"end_date": "2019-03-20",
|
|
91
|
-
"transaction_date": "2019-02-20",
|
|
92
|
-
"transaction_location_pid": "1",
|
|
93
|
-
"pickup_location_pid": "1",
|
|
94
|
-
"extension_count": 3
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
"pid": "mostloaned-7",
|
|
98
|
-
"document_pid": "docid-3",
|
|
99
|
-
"item_pid": {
|
|
100
|
-
"type": "pitmid",
|
|
101
|
-
"value": "itemid-4"
|
|
102
|
-
},
|
|
103
|
-
"patron_pid": "1",
|
|
104
|
-
"state": "ITEM_ON_LOAN",
|
|
105
|
-
"start_date": "2019-05-20",
|
|
106
|
-
"end_date": "2019-06-20",
|
|
107
|
-
"transaction_date": "2019-05-20",
|
|
108
|
-
"transaction_location_pid": "1",
|
|
109
|
-
"pickup_location_pid": "1",
|
|
110
|
-
"extension_count": 3
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
"pid": "mostloaned-8",
|
|
114
|
-
"document_pid": "docid-5",
|
|
115
|
-
"item_pid": {
|
|
116
|
-
"type": "pitmid",
|
|
117
|
-
"value": "itemid-9"
|
|
118
|
-
},
|
|
119
|
-
"patron_pid": "1",
|
|
120
|
-
"state": "ITEM_RETURNED",
|
|
121
|
-
"start_date": "2019-03-07",
|
|
122
|
-
"end_date": "2019-04-07",
|
|
123
|
-
"transaction_date": "2019-03-07",
|
|
124
|
-
"transaction_location_pid": "1",
|
|
125
|
-
"pickup_location_pid": "1",
|
|
126
|
-
"extension_count": 0
|
|
127
|
-
}
|
|
128
|
-
]
|
tests/data/locations.json
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"pid": "locid-1",
|
|
4
|
-
"name": "Main Library",
|
|
5
|
-
"opening_weekdays": [{"weekday": "monday", "is_open": true}, {"weekday": "tuesday", "is_open": true}, {"weekday": "wednesday", "is_open": true}, {"weekday": "thursday", "is_open": true}, {"weekday": "friday", "is_open": true}, {"weekday": "saturday", "is_open": true}, {"weekday": "sunday", "is_open": true}],
|
|
6
|
-
"opening_exceptions": []
|
|
7
|
-
},
|
|
8
|
-
{
|
|
9
|
-
"pid": "locid-2",
|
|
10
|
-
"name": "Library of Alexandria",
|
|
11
|
-
"opening_weekdays": [{"weekday": "monday", "is_open": true}, {"weekday": "tuesday", "is_open": true}, {"weekday": "wednesday", "is_open": true}, {"weekday": "thursday", "is_open": true}, {"weekday": "friday", "is_open": true}, {"weekday": "saturday", "is_open": true}, {"weekday": "sunday", "is_open": true}],
|
|
12
|
-
"opening_exceptions": []
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"pid": "locid-3",
|
|
16
|
-
"name": "Library of Alexandria",
|
|
17
|
-
"opening_weekdays": [{"weekday": "monday", "is_open": true}, {"weekday": "tuesday", "is_open": true}, {"weekday": "wednesday", "is_open": true}, {"weekday": "thursday", "is_open": true}, {"weekday": "friday", "is_open": true}, {"weekday": "saturday", "is_open": true}, {"weekday": "sunday", "is_open": true}],
|
|
18
|
-
"opening_exceptions": []
|
|
19
|
-
}
|
|
20
|
-
]
|
tests/data/series.json
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"$schema": "https://127.0.0.1:5000/schemas/series/series-v1.0.0.json",
|
|
4
|
-
"pid": "serid-1",
|
|
5
|
-
"title": "The Gulf: The Making of An American Sea",
|
|
6
|
-
"authors": ["Einstein, Albert", "Stachel, John J et al."],
|
|
7
|
-
"abstract": "This is a multipart monograph",
|
|
8
|
-
"mode_of_issuance": "MULTIPART_MONOGRAPH"
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
"$schema": "https://127.0.0.1:5000/schemas/series/series-v1.0.0.json",
|
|
12
|
-
"pid": "serid-2",
|
|
13
|
-
"title": "The Gulf: The Making of An American Sea",
|
|
14
|
-
"authors": ["Banek, Cora", "Banek, Georg"],
|
|
15
|
-
"abstract": "This is a multipart monograph",
|
|
16
|
-
"mode_of_issuance": "MULTIPART_MONOGRAPH"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"$schema": "https://127.0.0.1:5000/schemas/series/series-v1.0.0.json",
|
|
20
|
-
"pid": "serid-3",
|
|
21
|
-
"title": "Springer tracts in modern physics",
|
|
22
|
-
"abstract": "This is serial",
|
|
23
|
-
"mode_of_issuance": "SERIAL"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"$schema": "https://127.0.0.1:5000/schemas/series/series-v1.0.0.json",
|
|
27
|
-
"pid": "serid-4",
|
|
28
|
-
"title": "Dispersion Forces",
|
|
29
|
-
"authors": ["Buhmann, Stefan Yoshi"],
|
|
30
|
-
"abstract": "This is a multipart monograph",
|
|
31
|
-
"mode_of_issuance": "MULTIPART_MONOGRAPH"
|
|
32
|
-
}
|
|
33
|
-
]
|