[4.x] Add "Licence / Source" field to relevant media entities

Created on 25 July 2022, over 2 years ago
Updated 8 May 2024, 8 months ago

Problem/Motivation

Especially Media entities quite often have the requirement to display license / source information. While technically you could also use the caption-field, this isn't a good technical solution for such an important information.

"License"-details are relevant and dangerous for legal reasons. So we should ensure they're receiving such an importance in handling and display (for example if caption is not shown in some cases but licence information has to).

So I'd suggest adding it as a separate field to make this important information distinct from regular descriptive text

For the following media types it makes most sense:

  • audio
  • image
  • slide
  • vector_image
  • video (only local)

Steps to reproduce

Proposed resolution

  1. Add link field with optional label and optional link for all (relevant) media types
  2. Do not show the field by default
  3. Add a view or token to list the copyrights for the imprint

Remaining tasks

[x] Create configuration in Vorlage and as ymls in 📌 [Meta] 4.x config changes Active (Major)
[ ] Create an update hook to import the settings for the 3.x to 4.x update (minor). Note: The changes were made in our Vorlage (D11) already, so the update hook shouldn't break anything and ensure the transition from 3.x to 4.x will work for existing projects.

User interface changes

API changes

Data model changes

✨ Feature request
Status

Needs work

Version

4.0

Component

Code

Created by

🇩🇪Germany Anybody Porta Westfalica

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • We should defenetly do this, for all projects. We also should have the Imprint view as suggested in #3 by default.

    I think a simple Link field should do the job. If the media fields are locked (so we're not able to remove the copyright information by simply removing the new field from content), we probably need a further Checkbox "Show Copyright information right under the image".

  • Assigned to Anybody
  • 🇩🇪Germany Anybody Porta Westfalica

    Ok, I added the following tasks:

    1. Add link field with optional label and optional link for all (relevant) media types
    2. Do not show the field by default
    3. Add a view or token to list the copyrights for the imprint

    and assigned this to me to implement this in an update.

  • 🇩🇪Germany Anybody Porta Westfalica

    What we could do here, is use an autocomplete field, so it would be easier to prevent duplicates, if the image is used several times and we could maybe use distinct in the imprint?

  • 🇩🇪Germany Anybody Porta Westfalica
  • What we could do here, is use an autocomplete field, so it would be easier to prevent duplicates, if the image is used several times and we could maybe use distinct in the imprint?

    To be honest, I can't think of a single time when this has been an issue. Also, link fields with autocomplete doesn't sound like a core feature, so it needs another contrib module?

    Much more problematic are the same images in different variations. This would lead to duplicate licence entries. I think views are a better place to prevent this, but with a simple link field we have no reliable way to detect this. So at minimum, we'd need a separate field for the stock photo provider's image ID. So things are getting too complicated.

    Conclusion: Ignore duplicates. Nobody cares. They don't cause legal problems.

  • Added the link field to:
    - media_slide
    - media_video (only local)
    - media_image
    - media_vector_image
    - media_audio

  • Status changed to Needs work 8 months ago
  • Assigned to thomas.frobieter
  • Status changed to Needs review 8 months ago
  • 🇩🇪Germany Anybody Porta Westfalica

    @thomas.frobieter: Config was now added in the parent issue. Can this be set FIXED or are styling tasks remaining for you?

  • 🇩🇪Germany Anybody Porta Westfalica
  • Status changed to Fixed 8 months ago
  • @thomas.frobieter: Config was now added in the parent issue. Can this be set FIXED or are styling tasks remaining for you?

    Hopefully not, the View which prints the copyright values should be a simple HTML list, so.. this should be fine.

  • 🇩🇪Germany Anybody Porta Westfalica
  • Status changed to Needs work 8 months ago
  • 🇩🇪Germany Anybody Porta Westfalica

    Back to NW for the 3.x to 4.x update hooks.

  • 🇩🇪Germany Anybody Porta Westfalica
  • Assigned to Grevil
  • 🇩🇪Germany Anybody Porta Westfalica
Production build 0.71.5 2024