Skip to main content

Invenio-Records-Marc21

Marc21 datamodel

Further documentation is available on https://invenio-records-marc21.readthedocs.io/

Install

Choose a version of elasticsearch and a DB, then run:

uv run pip install -e .[all]

Setting Up Statistics

To enable and configure the statistics feature using MARC21 records in Invenio, you need to update your invenio.cfg file with specific configurations that integrate MARC21 statistics with Invenio's standard statistics modules.

Configuration Steps

  1. Import Required Configurations:

    Before updating the configuration values, ensure that you import the necessary settings from both the invenio_records_marc21 module and the invenio_app_rdm module. Add the following lines to your invenio.cfg:

from invenio_records_marc21.config import MARC21_STATS_CELERY_TASKS, MARC21_STATS_EVENTS, MARC21_STATS_AGGREGATIONS, MARC21_STATS_QUERIES
from invenio_app_rdm.config import CELERY_BEAT_SCHEDULE, STATS_EVENTS, STATS_AGGREGATIONS, STATS_QUERIES

Update Celery Beat Schedule:

Integrate MARC21-specific scheduled tasks with Invenio's scheduler:

CELERY_BEAT_SCHEDULE.update(MARC21_STATS_CELERY_TASKS)

Update Events, Aggregations, and Queries:

Merge MARC21 statistics configurations with the global statistics settings:

STATS_EVENTS.update(MARC21_STATS_EVENTS)
STATS_AGGREGATIONS.update(MARC21_STATS_AGGREGATIONS)
STATS_QUERIES.update(MARC21_STATS_QUERIES)

Features

custom doi over 024 field in metadata

add the field 024 like 024.7.. $$2 doi $$a 10.0356/894-849-056 $$q tugraz-publisher. the important part is the $$q tugraz-publisher which indicates that there is a special doi which overrides the normal DOI.

the doi will be created on the publish, so the 856 field will show up after publishing the record.

Tests

uv run ./run-tests.sh

Metadata

Release files for invenio-records-marc21 0.37.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for invenio-records-marc21 0.37.0
File Size Uploaded Provenance Actions
invenio_records_marc21-0.37.0.tar.gz 147.6 kB With provenance Details for invenio_records_marc21-0.37.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for invenio-records-marc21 0.37.0
File Interpreter ABI Platform Actions
invenio_records_marc21-0.37.0-py2.py3-none-any.whl Python 2, Python 3 none any Details for invenio_records_marc21-0.37.0-py2.py3-none-any.whl

Total release size: 395.7 kB

Release files / invenio_records_marc21-0.37.0.tar.gz

Download URL invenio_records_marc21-0.37.0.tar.gz
Size 147.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9bfab0d65c6b60b8d42a3ad07d43f0dee56ead8d55aa30118a6cada3c304e512
BLAKE2b-256 checksum
How to use checksums
01153bb8c1ea9d3fa9d6e6cdad178bbb646210f811455a1d437180a6e6a3f33c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / invenio_records_marc21-0.37.0-py2.py3-none-any.whl

Download URL invenio_records_marc21-0.37.0-py2.py3-none-any.whl
Size 248.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
6c7426bb4ea20a6a97daca1a3e9016e3a970a8833641092dfb92b11a7ab610eb
BLAKE2b-256 checksum
How to use checksums
b25d4566fecfe00046a1a6865bb10a40dbdc3ac08bfcc09853053024af46632c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Security for invenio-records-marc21 0.37.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for invenio_records_marc21-0.37.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.37.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page