eric.plugin¶
Attributes¶
Classes¶
This class represents the Education Resources Information Center (ERIC) plugin. |
Module Contents¶
- class eric.plugin.EricPlugin¶
Bases:
server.plugins.ome_plugin.OMEPlugin
This class represents the Education Resources Information Center (ERIC) plugin. It provides functionality to create metadata cards from URLs or JSON payloads.
- mimetypes: tuple[str] = ('application/vnd.eric.eric+json',)¶
- newsgroups: dict[str, str]¶
- make_metadata_card(doc: server.plugins.eric.eric_models.ModelItem) server.plugins.ome_plugin.EducationResource ¶
- make_metadata_card_from_dict(doc_dict: dict) server.plugins.ome_plugin.EducationResource ¶
This method creates a metadata card from a dict of ERIC doc data.
- make_metadata_card_from_json(json_payload: str) server.plugins.ome_plugin.EducationResource ¶
This method creates a metadata card from a given JSON payload.
- 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.
- eric.plugin.plugin¶