# -*- coding: utf-8 -*- # # Copyright (C) 2020 CERN. # # invenio-app-ils is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """ILS internal locations loaders.""" from invenio_app_ils.internal_locations.loaders.jsonschemas.internal_location import ( # noqa InternalLocationSchemaV1, ) from invenio_app_ils.records.loaders import ils_marshmallow_loader internal_location_loader = ils_marshmallow_loader(InternalLocationSchemaV1)
# -*- coding: utf-8 -*- # # Copyright (C) 2020 CERN. # # invenio-app-ils is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """ILS document requests loaders.""" from invenio_app_ils.records.loaders import ils_marshmallow_loader from .jsonschemas.document_request import DocumentRequestSchemaV1 from .jsonschemas.document_request_document import \ DocumentRequestDocumentSchemaV1 from .jsonschemas.document_request_provider import \ DocumentRequestProviderSchemaV1 from .jsonschemas.document_request_reject import DocumentRequestRejectSchemaV1 document_request_loader = ils_marshmallow_loader(DocumentRequestSchemaV1) document_request_document_loader = ils_marshmallow_loader( DocumentRequestDocumentSchemaV1) document_request_provider_loader = ils_marshmallow_loader( DocumentRequestProviderSchemaV1) document_request_reject_loader = ils_marshmallow_loader( DocumentRequestRejectSchemaV1)
# -*- coding: utf-8 -*- # # Copyright (C) 2019-2020 CERN. # # invenio-app-ils is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Invenio App ILS ILL loaders.""" from invenio_app_ils.records.loaders import ils_marshmallow_loader from .jsonschemas.borrowing_request import BorrowingRequestSchemaV1 from .jsonschemas.library import LibrarySchemaV1 borrowing_request_loader = ils_marshmallow_loader(BorrowingRequestSchemaV1) library_loader = ils_marshmallow_loader(LibrarySchemaV1)
# -*- coding: utf-8 -*- # # Copyright (C) 2019-2020 CERN. # # invenio-app-ils is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Invenio App ILS acquisition loaders.""" from invenio_app_ils.records.loaders import ils_marshmallow_loader from .jsonschemas.order import OrderSchemaV1 order_loader = ils_marshmallow_loader(OrderSchemaV1)
# -*- coding: utf-8 -*- # # Copyright (C) 2020 CERN. # # invenio-app-ils is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """ILS series loaders.""" from invenio_app_ils.records.loaders import ils_marshmallow_loader from .jsonschemas.series import SeriesSchemaV1 series_loader = ils_marshmallow_loader(SeriesSchemaV1)
# -*- coding: utf-8 -*- # # Copyright (C) 2019-2020 CERN. # # invenio-app-ils is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Invenio App ILS ILL loaders.""" from invenio_app_ils.records.loaders import ils_marshmallow_loader from .jsonschemas.borrowing_request import BorrowingRequestSchemaV1 from .jsonschemas.patron_loan_actions import CreateLoanSchemaV1 from .jsonschemas.patron_loan_extension_actions import ( AcceptExtensionSchemaV1, DeclineExtensionSchemaV1, RequestExtensionSchemaV1, ) borrowing_request_loader = ils_marshmallow_loader(BorrowingRequestSchemaV1) patron_loan_create_action_loader = ils_marshmallow_loader(CreateLoanSchemaV1) patron_loan_extension_request_loader = ils_marshmallow_loader( RequestExtensionSchemaV1) patron_loan_extension_accept_loader = ils_marshmallow_loader( AcceptExtensionSchemaV1) patron_loan_extension_decline_loader = ils_marshmallow_loader( DeclineExtensionSchemaV1)
# -*- coding: utf-8 -*- # # Copyright (C) 2019 CERN. # # invenio-app-ils is free software; you can redistribute it and/or modify # it under the terms of the MIT License; see LICENSE file for more details. """Invenio App ILS circulation loaders.""" from invenio_app_ils.records.loaders import ils_marshmallow_loader from .schemas.json.loan_checkout import LoanCheckoutSchemaV1 from .schemas.json.loan_request import LoanRequestSchemaV1 loan_request_loader = ils_marshmallow_loader(LoanRequestSchemaV1) loan_checkout_loader = ils_marshmallow_loader(LoanCheckoutSchemaV1)
# -*- coding: utf-8 -*- # # Copyright (C) 2020 CERN. # # invenio-app-ils is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """ILS items loaders.""" from invenio_app_ils.items.loaders.jsonschemas.items import ItemSchemaV1 from invenio_app_ils.records.loaders import ils_marshmallow_loader item_loader = ils_marshmallow_loader(ItemSchemaV1)
# -*- coding: utf-8 -*- # # Copyright (C) 2019-2020 CERN. # # invenio-app-ils is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Invenio App ILS acquisition loaders.""" from invenio_app_ils.records.loaders import ils_marshmallow_loader from .jsonschemas.order import OrderSchemaV1 from .jsonschemas.vendor import VendorSchemaV1 order_loader = ils_marshmallow_loader(OrderSchemaV1) vendor_loader = ils_marshmallow_loader(VendorSchemaV1)
# -*- coding: utf-8 -*- # # Copyright (C) 2019-2021 CERN. # # invenio-app-ils is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Invenio App Provider loaders.""" from invenio_app_ils.records.loaders import ils_marshmallow_loader from .jsonschemas.provider import ProviderSchemaV1 provider_loader = ils_marshmallow_loader(ProviderSchemaV1)
# -*- coding: utf-8 -*- # # Copyright (C) 2020 CERN. # # invenio-app-ils is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """ILS Locations loaders.""" from invenio_app_ils.locations.loaders.jsonschemas.location import \ LocationSchemaV1 from invenio_app_ils.records.loaders import ils_marshmallow_loader location_loader = ils_marshmallow_loader(LocationSchemaV1)
# -*- coding: utf-8 -*- # # Copyright (C) 2020 CERN. # # invenio-app-ils is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """ILS document requests loaders.""" from invenio_app_ils.records.loaders import ils_marshmallow_loader from .jsonschemas.document_request import DocumentRequestSchemaV1 from .jsonschemas.document_request_accept import DocumentRequestAcceptSchemaV1 from .jsonschemas.document_request_pending import \ DocumentRequestPendingSchemaV1 from .jsonschemas.document_request_reject import DocumentRequestRejectSchemaV1 document_request_loader = ils_marshmallow_loader(DocumentRequestSchemaV1) document_request_accept_loader = ils_marshmallow_loader( DocumentRequestAcceptSchemaV1) document_request_pending_loader = ils_marshmallow_loader( DocumentRequestPendingSchemaV1) document_request_reject_loader = ils_marshmallow_loader( DocumentRequestRejectSchemaV1)
# -*- coding: utf-8 -*- # # Copyright (C) 2020 CERN. # # invenio-app-ils is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """ILS document requests loaders.""" from invenio_app_ils.records.loaders import ils_marshmallow_loader from .jsonschemas.document_request import DocumentRequestSchemaV1 from .jsonschemas.document_request_decline import ( DocumentRequestDeclineSchemaV1, ) from .jsonschemas.document_request_document import ( DocumentRequestDocumentSchemaV1, ) from .jsonschemas.document_request_provider import ( DocumentRequestProviderSchemaV1, ) document_request_loader = ils_marshmallow_loader(DocumentRequestSchemaV1) document_request_document_loader = ils_marshmallow_loader( DocumentRequestDocumentSchemaV1) document_request_provider_loader = ils_marshmallow_loader( DocumentRequestProviderSchemaV1) document_request_decline_loader = ils_marshmallow_loader( DocumentRequestDeclineSchemaV1)
# -*- coding: utf-8 -*- # # Copyright (C) 2020 CERN. # # invenio-app-ils is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """ILS document loaders.""" from invenio_app_ils.records.loaders import ils_marshmallow_loader from .jsonschemas.document import DocumentSchemaV1 document_loader = ils_marshmallow_loader(DocumentSchemaV1)
# -*- coding: utf-8 -*- # # Copyright (C) 2019-2020 CERN. # # invenio-app-ils is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Invenio App ILS ILL loaders.""" from invenio_app_ils.records.loaders import ils_marshmallow_loader from .jsonschemas.borrowing_request import BorrowingRequestSchemaV1 from .jsonschemas.create_loan import CreateLoanSchemaV1 from .jsonschemas.library import LibrarySchemaV1 borrowing_request_loader = ils_marshmallow_loader(BorrowingRequestSchemaV1) create_loan_loader = ils_marshmallow_loader(CreateLoanSchemaV1) library_loader = ils_marshmallow_loader(LibrarySchemaV1)
# -*- coding: utf-8 -*- # # Copyright (C) 2019 CERN. # # invenio-app-ils is free software; you can redistribute it and/or modify # it under the terms of the MIT License; see LICENSE file for more details. """Invenio App ILS circulation loaders.""" from invenio_app_ils.records.loaders import ils_marshmallow_loader from .schemas.json.loan_checkout import LoanCheckoutSchemaV1 from .schemas.json.loan_request import LoanRequestSchemaV1 from .schemas.json.loan_update_dates import LoanUpdateDatesSchemaV1 loan_request_loader = ils_marshmallow_loader(LoanRequestSchemaV1) loan_checkout_loader = ils_marshmallow_loader(LoanCheckoutSchemaV1) loan_update_dates_loader = ils_marshmallow_loader(LoanUpdateDatesSchemaV1)