local_context_int
Introduction
This Drupal module integrates the Local Contexts Hub with Islandora repositories, enabling the display of Traditional Knowledge Labels. By fetching and rendering data from the Local Contexts API, it provides contextual information to viewers, enhancing understanding and respect for Indigenous rights and interests.
Features
API Integration: Fetches data from the Local Contexts Hub using a Project ID stored in a Drupal field.
Dynamic Display: Renders JSON data into an image, alt text, and collapsible detail text.
Configurable Field: Allows site admins to specify which Drupal field stores the Local Contexts Project ID.
Caching: Implements Drupal caching to minimize API requests and improve performance.
User-Friendly: Displays contextual information directly on repository item pages, improving accessibility and awareness.
Post-Installation
After installing the module, navigate to the configuration page to set the API key and specify the Drupal field containing the Local Contexts Project ID. The module will automatically fetch and display the relevant data on repository item pages where the field is populated. No new content types or text formats are required.
Additional Requirements
Drupal 10: The module is built for Drupal 10.
Local Contexts API Key: A valid API key from the Local Contexts Hub is necessary for fetching data.