For more information about this repository, visit the project page at https://www.drupal.org/project/media_attribution
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Alexander O'Neill c0a17036dc Update README. 4 years ago
config/optional Add module explicit dependencies. 6 years ago
images Add default licenses and icons. 6 years ago
src Only copy a file if it's not in the Drupal web root. 5 years ago
templates Add templates for license_attribution view mode. 4 years ago
LICENSE.txt Add license and update readme. 6 years ago
README.md Update README. 4 years ago
composer.json Add Drush command to bulk load licenses. 5 years ago
drush.services.yml Add Drush command to bulk load licenses. 5 years ago
media_attribution.default.licenses.yml Add Drush command to bulk load licenses. 5 years ago
media_attribution.info.yml Drupal 9 compatibility fixes. 4 years ago
media_attribution.module Drupal 9 compatibility fixes. 4 years ago

README.md

Installation

Install as you normally would. This module creates the following entity types:

  • Taxonomy vocabulary
    • Licences (media_attribution_licenses) - Includes License Link and License Icon fields
  • Paragraphs type
    • License Attribution (license_attribution)
    • This field is automatically added to the Image media type on install.

Use

The installation script automatically adds the attribution paragraphs field to the Image media type if it exists. Otherwise adding attribution can be done at Admin -> Structure -> Media Types.

The attribution paragraph field has the following components

Source Work link, including a title and URL. This title is usually the title of the original work.

Original Author link, including name and URL of the author's home page.

License type - optional, the license under which the linked work is released.

Free-form attribution text - optional, arbitrary text to clarify attribution. If no license is selected, this text can be used to identify copyrighted works with e.g., "All rights reserved, used with permisssion."

To add an attribution to a media object, you will need to edit the media entity directly since the text editor embed form no longer uses the entity form display settings.

Go to Admin -> Content -> Media to find and edit the media and add attribution info.

This source and author info will be rendered below an embedded media object when showing the node, following the format preferred by Creative Commons, outlined at Best Practices for Attribution:

https://wiki.creativecommons.org/wiki/best_practices_for_attribution

Licenses

Installing the module creates License taxonomy term entries for all of the use variations of the international Creative Commons licenses. These can be edited, and other licenses can be added as needed.

Bulk-loading Licenses via Drush

Run drush help media_attribution:load_licenses for how to load license data from a YAML file.

Authors

Alexander O'Neill (alxp)

Sponsoring Organization

University of Prince Edward Island Robertson Library