Issue 13960

Images are hotlinking to external sites.

13960
Reporter: trobertson
Type: Improvement
Summary: Images are hotlinking to external sites.
Priority: Critical
Resolution: Duplicate
Status: Closed
Created: 2013-09-18 14:59:34.512
Updated: 2017-10-06 15:37:26.505
Resolved: 2017-10-06 15:37:26.485
        
        
Description: The second image is coming from wikipedia, and does not load.
This whole behavior needs revisited so:

i) the images should only show if available (e.g. it shows 2, but only 1 is only)
ii) it should not come from wikipedia directly
iii) it should link to the container page, not the image itself when linking out.  Wikipedia for example is not doing this

[~mdoering]]]>
    


Author: mdoering@gbif.org
Created: 2015-03-05 13:05:39.365
Updated: 2015-03-05 13:05:39.365
        
http://api.gbif.org/v1/species/3134959/media
shows 2 images:


{
type: "StillImage"
format: "image/jpeg"
identifier: "http://upload.wikimedia.org/wikipedia/commons/5/50/hieracium_murorum_2006.06.19_09.36.35-p6190020.jpg"
references: "http://commons.wikimedia.org/wiki/File:hieracium_murorum_2006.06.19_09.36.35-p6190020.jpg"
title: "Wald-Habichtskraut"
description: "Hieracium murorum im Ahrtal."
creator: "Michael Becker"
license: "Creative Commons Attribution Share Alike 3.0 Migrated"
sourceTaxonKey: 125793792
}
-{
type: "StillImage"
format: "image/jpeg"
identifier: "http://upload.wikimedia.org/wikipedia/commons/c/c9/Hieracium_murorum_blatt.jpeg"
references: "http://commons.wikimedia.org/wiki/File:Hieracium_murorum_blatt.jpeg"
description: "Wald-Habichtskraut Hieracium murorum, Müritz-Gebiet"
source: "photographed by myself"
creator: "Kristian Peters -- Fabelfroh 07:57, 20 October 2006 (UTC)"
publisher: "Wikimedia Commons"
license: "GNU Free Documentation License"
sourceTaxonKey: 125730532
}
    


Author: mdoering@gbif.org
Comment: The second image is fine, the referecens link in the first works, but the image URL (identifier) gives a 404. 
Created: 2015-03-05 13:08:41.641
Updated: 2015-03-05 13:08:41.641


Author: hoefft
Comment: most places we now hide images when not resolving. other than that see https://github.com/gbif/portal16/issues/592
Created: 2017-10-06 15:37:26.502
Updated: 2017-10-06 15:37:26.502