Giter Club home page Giter Club logo

invenio-records-marc21's Introduction

Invenio-Records-Marc21

Marc21 datamodel

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

Development

Install

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

pipenv run pip install -e .[all]
pipenv run pip install invenio-search[elasticsearch7]
pipenv run pip install invenio-db[postgresql,versioning]

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)

Tests

pipenv run ./run-tests.sh

invenio-records-marc21's People

Contributors

martinobersteiner avatar philippgualdi avatar utnapischtim avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.