collage_photos.plugin

Attributes

plugin

Classes

CollagePhotosPlugin

Plugin for Collage Photos metadata integration.

Module Contents

class collage_photos.plugin.CollagePhotosPlugin

Bases: server.plugins.ome_plugin.OMEPlugin

Plugin for Collage Photos metadata integration.

Translates photo/image resource metadata into standardised OME EducationResource cards.

mimetypes: tuple[str, Ellipsis] = ('application/vnd.collage.photos+json',)
newsgroups: dict[str, str]
site_name: str = 'Collage Photos'
librarian_contact: str = 'info@iskme.org'
_make_metadata_card(item: server.plugins.collage_photos.collage_photos_models.CollagePhotosItem) server.plugins.ome_plugin.EducationResource
make_metadata_card_from_dict(doc_dict: dict) server.plugins.ome_plugin.EducationResource

Create an EducationResource from a Python dict.

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

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

collage_photos.plugin.plugin