Project

General

Profile

Actions

feature request #9067

closed

[DISCUSS] Allow media to support external links not being files

Added by Andreas Müller almost 4 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
New
Category:
cdm
Target version:
-
Start date:
Due date:
% Done:

100%

Estimated time:
Severity:
normal

Description

The current handling of media expects that links stored in Media(RepresentationPart) are media files or can be opened in Universal Viewer.

Often links to Media can only be stored as links to Websites (e.g. html). Websites can not be displayed in Universal Viewer usually (correct?).

If this is the case we need to decide how we want to store such data.

Possible solutions are:

  1. keep everything as it is, the link will be stored in MediaRepresentationPart and MimeType will be set to "HTML" or "unknown" (TODO check correct MIME types), an application needs to decide what to do if we have this MIME type;
    • Pro: nothing to change in model,
    • Con: we have to change the handling for unknown MIME type, currently it is handled as xxx
  2. Use Media.links to store URLs which are not files
    • Pro: nothing to change in model
    • Con: not intuitive, unexpected usage of IdentifiableEntity.links
  3. Add Media.link of class ExternalLink to distinguish file based representations from Websites
    • Pro: it is possible to distinguis from the datastructure if Media should be represented as link or as Image/Movie/Sound
    • Con: new field, semantic overlap with MIME type, need to disallow to fill both fields "links" and "representations"
  4. Same as 3. but having a common base class MediaBase and 2 subclasses Media and LinkedMedia
    • Pro: possible to distinguish from class what reprentation is required; easy to develop specialised TaxEditor UIs; further attributes can be removed from LinkedMedia; MediaKey and PhylogeneticKey could be handled as spearate subclasses of MediaBase, currently it is a subclass of Media
    • Con: new field; semantic overlap with MIME type; switching from one type to the other is bit more difficult; need to adapt existing code to use Media or MediaBase depending on context

Related issues

Related to EDIT - feature request #9090: Implement external links for identifiable entities in TaxEditorNewKatja Luther

Actions
Related to EDIT - feature request #9545: Remove "External Link type" completelyClosedKatja Luther

Actions
Related to EDIT - feature request #9546: [DISCUSS] Merge ExternalLink and MediaRepresentationNewAndreas Müller

Actions
Related to EDIT - feature request #9548: Handle links to websites, webapps or similar in image galleries (simple and UV)NewAndreas Kohlbecker

Actions
Related to EDIT - feature request #9064: Add ExternalLinks to IdentifiableEntitiesClosedAndreas Müller

Actions
Related to EDIT - bug #9775: Open issues for web app media in the image galleryNewAndreas Müller

Actions
Related to EDIT - feature request #8028: Better representation of web app media in the image galleryClosedAndreas Kohlbecker

Actions
Related to EDIT - feature request #3630: Taxeditor should add mimetype of mediaRepresentations automaticallyNewKatja Luther

Actions
Copied to EDIT - feature request #9547: Show warning in TaxEditor if a MediaRepresentation can not be shown in a ViewerNewKatja Luther

Actions
Actions

Also available in: Atom PDF