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
-
Import Required Configurations:
Before updating the configuration values, ensure that you import the necessary settings from both the
invenio_records_marc21module and theinvenio_app_rdmmodule. Add the following lines to yourinvenio.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.35.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| invenio_records_marc21-0.35.0.tar.gz | 146.1 kB | With provenance | Details for invenio_records_marc21-0.35.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| invenio_records_marc21-0.35.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for invenio_records_marc21-0.35.0-py2.py3-none-any.whl |
Total release size: 391.4 kB
Release files / invenio_records_marc21-0.35.0.tar.gz
| Download URL | invenio_records_marc21-0.35.0.tar.gz |
|---|---|
| Size | 146.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0a11f41fc6223792ef3a4b6901e314099781b04bca66709dba58ba68f4af49dc
|
|
BLAKE2b-256 checksum How to use checksums |
752f850565ded11683914fda74fdf010853d76e2abaaac244f608af7c72f1d84
|
| 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 3, 2026.
Transparency logRelease files / invenio_records_marc21-0.35.0-py2.py3-none-any.whl
| Download URL | invenio_records_marc21-0.35.0-py2.py3-none-any.whl |
|---|---|
| Size | 245.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
96d32730765038b6790b5fd54d5447184f7197cbde8660cf27500ead56fa91af
|
|
BLAKE2b-256 checksum How to use checksums |
5b7708c04e62cb715785838b2a96c551543970dc603fc0efdd1ae0c485f261e1
|
| 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 3, 2026.
Transparency logSecurity for invenio-records-marc21 0.35.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.
Attestation for invenio_records_marc21-0.35.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 3, 2026.
Transparency logA 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.