oapen_books.plugin¶
Attributes¶
Classes¶
Plugin for the OAPEN Library (https://library.oapen.org). |
Module Contents¶
- class oapen_books.plugin.OapenBooksPlugin¶
Bases:
server.plugins.ome_plugin.OMEPluginPlugin for the OAPEN Library (https://library.oapen.org).
The OAPEN (Open Access Publishing in European Networks) Library hosts peer-reviewed open access books and book chapters, primarily from European academic publishers. This plugin uses the public OAPEN DSpace REST API to translate book metadata into OME EducationResource cards.
API docs: https://library.oapen.org/rest/
- mimetypes: tuple[str, Ellipsis] = ('application/vnd.oapen.book+json',)¶
- newsgroups: dict[str, str]¶
- site_name: str = 'OAPEN Library'¶
- librarian_contact: str = 'info@iskme.org'¶
- logo: str = 'https://oapen.org/img/oapen-logo.jpg'¶
- make_metadata_card(item: server.plugins.oapen_books.oapen_models.OapenItem) server.plugins.ome_plugin.EducationResource¶
Translate an OapenItem into an OME EducationResource.
- make_metadata_card_from_dict(doc_dict: dict) server.plugins.ome_plugin.EducationResource¶
Create an EducationResource from a dict of OAPEN item 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¶
Create a metadata card from a book URL.
Direct URL lookup is not currently supported. Use bulk_import.py to fetch books from the OAPEN REST API.
- oapen_books.plugin.plugin¶