OARepo Citations
A citation management extension for OARepo that provides comprehensive citation functionality for academic records. This package enables users to generate and export citations in multiple academic formats directly from record detail pages.
Installation
Install the package using pip:
pip install oarepo-citations
Usage
Basic Integration
Once installed, the citation functionality is automatically available on record detail pages. The package provides:
- Citation Dropdown Component: A compact dropdown selector for citation styles
- Citation Modal Component: An expanded modal view for detailed citation information
Configuration & Integration
To customize the citation styles and default style, update the configuration settings in your invenio.cfg or equivalent configuration file:
CITATION_STYLES = [
{ "style": "iso690-author-date-cs", "label": _("ČSN ISO 690") },
{ "style": "bibtex", "label": _("BibTeX") }
]
CITATION_STYLES_DEFAULT = "iso690-author-date-cs"
Include citations in your record JinjaX templates:
<RecordCitations record={record} styles={config.get("CITATION_STYLES")} defaultStyle={config.get("CITATION_STYLES_DEFAULT")} />
Supported Citation Styles
The package supports various citation styles, including but not limited to:
{ "style": "iso690-author-date-cs", "label": "ČSN ISO 690" }{ "style": "apa", "label": "APA" }{ "style": "harvard-cite-them-right", "label": "Harvard" }{ "style": "modern-language-association", "label": "MLA" }{ "style": "vancouver", "label": "Vancouver" }{ "style": "chicago-fullnote-bibliography", "label": "Chicago" }{ "style": "ieee", "label": "IEEE" }{ "style": "bibtex", "label": "BibTeX" }
JavaScript Components
The package exports React components that can be used in custom implementations:
import { RecordCitationsDropdown, RecordCitationsModal } from '@js/record_citations';
License
This project is part of the OARepo ecosystem developed by CESNET.
Support
For issues and questions, please use the project's issue tracker or contact the development team at CESNET.
Metadata
Release files for oarepo-citations 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| oarepo_citations-1.0.2.tar.gz | 15.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| oarepo_citations-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 41.1 kB
Release files / oarepo_citations-1.0.2.tar.gz
| Download URL | oarepo_citations-1.0.2.tar.gz |
|---|---|
| Size | 15.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e9d4bf1eb4aec181b028d9a0c1d597dd7831f05adce9d367a1d200602b313ba6
|
|
BLAKE2b-256 checksum How to use checksums |
58af95658a0e4ff4e7e472d68aa78dbde07eebc2c5a616807792c39bca6dd881
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / oarepo_citations-1.0.2-py3-none-any.whl
| Download URL | oarepo_citations-1.0.2-py3-none-any.whl |
|---|---|
| Size | 25.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f10d35f8081356139071c3fcd058ec0c1af2bd9158bd54f872968a1556cbd7ee
|
|
BLAKE2b-256 checksum How to use checksums |
748cc39ba5cdd7efb39f7164725233b55f02e7eebf005f6f1d000f5c4f302080
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|