mit_opencourseware.plugin ========================= .. py:module:: mit_opencourseware.plugin Attributes ---------- .. autoapisummary:: mit_opencourseware.plugin.plugin Classes ------- .. autoapisummary:: mit_opencourseware.plugin.MITOpenCourseWarePlugin Module Contents --------------- .. py:class:: MITOpenCourseWarePlugin Bases: :py:obj:`server.plugins.ome_plugin.OMEPlugin` Translate MIT OpenCourseWare course metadata into OME cards. .. py:attribute:: mimetypes :type: tuple[str, Ellipsis] :value: ('application/vnd.mit.opencourseware.course+json',) .. py:attribute:: newsgroups :type: dict[str, str] .. py:attribute:: site_name :type: str :value: 'MIT OpenCourseWare' .. py:attribute:: librarian_contact :type: str :value: 'info@iskme.org' .. py:attribute:: logo :type: str :value: 'https://ocw.mit.edu/favicon.ico' .. py:method:: make_metadata_card(course: server.plugins.mit_opencourseware.mit_opencourseware_models.MITOCWCourse) -> server.plugins.ome_plugin.EducationResource .. py:method:: make_metadata_card_from_dict(doc_dict: dict) -> server.plugins.ome_plugin.EducationResource Create an OME card from a normalized MIT OCW course dict. .. py:method:: make_metadata_card_from_json(json_payload: str) -> server.plugins.ome_plugin.EducationResource Create an OME card from a normalized MIT OCW course JSON payload. .. py:method:: make_metadata_card_from_url(url: str) -> server.plugins.ome_plugin.EducationResource Direct URL lookup is not supported for this plugin. .. py:data:: plugin