collage_photos.plugin ===================== .. py:module:: collage_photos.plugin Attributes ---------- .. autoapisummary:: collage_photos.plugin.plugin Classes ------- .. autoapisummary:: collage_photos.plugin.CollagePhotosPlugin Module Contents --------------- .. py:class:: CollagePhotosPlugin Bases: :py:obj:`server.plugins.ome_plugin.OMEPlugin` Plugin for Collage Photos metadata integration. Translates photo/image resource metadata into standardised OME EducationResource cards. .. py:attribute:: mimetypes :type: tuple[str, Ellipsis] :value: ('application/vnd.collage.photos+json',) .. py:attribute:: newsgroups :type: dict[str, str] .. py:attribute:: site_name :type: str :value: 'Collage Photos' .. py:attribute:: librarian_contact :type: str :value: 'info@iskme.org' .. py:attribute:: logo :type: str :value: 'https://oercommons.org/static/newdesign/images/header/oerc-logo.png' .. py:method:: _make_metadata_card(item: server.plugins.collage_photos.collage_photos_models.CollagePhotosItem) -> server.plugins.ome_plugin.EducationResource .. py:method:: make_metadata_card_from_dict(doc_dict: dict) -> server.plugins.ome_plugin.EducationResource Create an EducationResource from a Python dict. .. py:method:: make_metadata_card_from_json(json_payload: str) -> server.plugins.ome_plugin.EducationResource Create an EducationResource from a raw JSON string. .. py:method:: 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. .. py:data:: plugin