open_education_network.plugin

Attributes

OEN_LICENSE_TO_SPDX

plugin

Classes

OpenEducationNetworkPlugin

Plugin for the Open Education Network (OEN) open textbook library.

Module Contents

open_education_network.plugin.OEN_LICENSE_TO_SPDX: types.MappingProxyType[str, str]
class open_education_network.plugin.OpenEducationNetworkPlugin

Bases: server.plugins.ome_plugin.OMEPlugin

Plugin for the Open Education Network (OEN) open textbook library.

Translates OEN API textbook records into OME EducationResource cards using the public JSON API at:

mimetypes: tuple[str, Ellipsis] = ('application/vnd.open-education-network.textbook+json',)
newsgroups: dict[str, str]
site_name: str = 'Open Education Network'
librarian_contact: str = 'info@iskme.org'
_spdx_license(abbreviation: str) str

Translate an OEN license abbreviation to an SPDX expression.

make_metadata_card(book: server.plugins.open_education_network.open_education_network_models.OENTextbook) server.plugins.ome_plugin.EducationResource

Translate an OENTextbook record into an OME EducationResource.

make_metadata_card_from_dict(doc_dict: dict) server.plugins.ome_plugin.EducationResource

Create an EducationResource from a dict of OEN textbook data.

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

Create an EducationResource from a raw JSON string.

make_metadata_card_from_url(url: str) server.plugins.ome_plugin.EducationResource

Direct URL lookup is not supported for this plugin.

Use bulk_import.py to fetch textbooks from the OEN API.

open_education_network.plugin.plugin