Skip to content

rdmorganiser/rdmo-plugins

Repository files navigation

rdmo-plugins

Python Versions Django Versions License
pre-commit Ruff CI Workflow Status

  1. Synopsis
  2. Setup
  3. Other plugins
    1. RDMO Sensor AWI optionset plugin

Synopsis

Import and export plugins for RDMO. Included are plugins for maDMP, DataCite (Kernel 4.3), and the Radar metadata schema.

Since the RDMO questionnaires and the domain does not contain all information needed for maDMP, DataCite, or Radar, the exports will not produce valid files. We will fix this in the future.

Please visit the RDMO documentation for detailed information.

Please note that the re3data plugin was moved to a separate repository.

Setup

Install the plugins in your RDMO virtual environment using pip (directly from GitHub):

python -m pip install git+https://github.com/rdmorganiser/rdmo-plugins

Add the rdmo_plugins to the INSTALLED_APPS in config/settings/local.py:

from . import INSTALLED_APPS
INSTALLED_APPS = ["rdmo_plugins", *INSTALLED_APPS]

Add the export plugins to the PROJECT_EXPORTS in config/settings/local.py:

from django.utils.translation import gettext_lazy as _
from . import PROJECT_EXPORTS

PROJECT_EXPORTS += [
    ('madmp', _('as maDMP JSON'), 'rdmo_plugins.exports.madmp.MaDMPExport'),
    ('datacite-xml', _('as DataCite XML'), 'rdmo_plugins.exports.datacite.DataCiteExport'),
    ('radar-xml', _('as RADAR XML'), 'rdmo_plugins.exports.radar.RadarExport'),
    ('radar', _('directly to RADAR'), 'rdmo_plugins.exports.radar.RadarExportProvider'),
    ('zenodo', _('directly to Zenodo'), 'rdmo_plugins.exports.zenodo.ZenodoExportProvider')
]

Add the import plugins to the PROJECT_IMPORTS in config/settings/local.py:

from django.utils.translation import gettext_lazy as _
from . import PROJECT_IMPORTS

PROJECT_IMPORTS += [
    ('madmp', _('from maDMP'), 'rdmo_plugins.imports.madmp.MaDMPImport'),
    ('datacite', _('from DataCite XML'), 'rdmo_plugins.imports.datacite.DataCiteImport'),
    ('radar', _('from RADAR XML'), 'rdmo_plugins.imports.radar.RadarImport'),
]

After restarting RDMO, the exports/imports should be usable for all projects.

Other plugins

RDMO Sensor AWI optionset plugin

https://github.com/hafu/rdmo-sensor-awi

Queries the Sensor Information System of the Alfred-Wegener-Institut, Helmholtz-Zentrum für Polar- und Meeresforschung (AWI).

This is an example optionset plugin, to show how to gather information from other systems.

About

Import and export plugins for RDMO.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •