plugin

Attributes

json_path

Classes

OERCommonsPlugin

This class represents the OERCommons plugin, which is a subclass of OMEPlugin.

Module Contents

class plugin.OERCommonsPlugin

Bases: server.plugins.ome_plugin.OMEPlugin

This class represents the OERCommons plugin, which is a subclass of OMEPlugin. It provides functionality to create metadata cards from URLs or JSON payloads.

mimetypes: tuple[str] = ('application/vnd.oercommons.oer-commons+json',)
newsgroups: dict[str, str]
site_name: str = 'OERCommons'
librarian_contact: str = 'info@iskme.org'
make_metadata_card_from_url(url: str) server.plugins.ome_plugin.EducationResource

This method creates a metadata card from a given URL. It currently does not implement any functionality.

make_metadata_card_from_json(json_payload: str) server.plugins.ome_plugin.EducationResource

This method creates a metadata card from a given JSON payload. It currently does not implement any functionality.

plugin.json_path