Issue 10187

image for source popout does not load because context path is bad on localhost

10187
Reporter: kbraak
Assignee: kbraak
Type: Bug
Summary: image for source popout does not load because context path is bad on localhost
Priority: Minor
Resolution: Fixed
Status: Closed
Created: 2011-11-10 16:03:56.006
Updated: 2013-08-29 14:44:43.037
Resolved: 2012-11-21 10:44:27.962
        
Description: Running the portal locally, with context path "/, the resulting image URL for the source popup on http://localhost:8080/species/100000006/typespecimens becomes: http://img/icons/questionmark.png (see screenshot) The real path that resolves the image is: http://localhost:8080/img/icons/questionmark.png

I can change default.ftl section

cfg.context="<@s.url value="/"/>";

to

cfg.context="<@s.url value=""/>";

to fix the problem, however, it breaks the staging portal resulting in no context all the time. ]]>
    

Attachment Screen Shot 2011-11-10 at 2.47.34 PM.png



Author: mdoering@gbif.org
Comment: Is that still an issue, Kyle?
Created: 2012-09-06 16:57:36.531
Updated: 2012-09-06 16:57:36.531


Author: kbraak@gbif.org
Created: 2012-11-15 18:02:01.251
Updated: 2012-11-16 11:39:14.429
        
Question back [~mdoering@gbif.org]: if you click on the image on http://staging.gbif.org:8080/portal-web-dynamic/species/116883073#images you get that its real address is: http://upload.wikimedia.org/wikipedia/commons/2/2e/CMM_MountainLion.jpg

Were we not showing the source at some point?
    


Author: mdoering@gbif.org
Comment: Yes we do, but in this case its not a nub but a wikipedia page, so the source is the actual dataset of that page. Confusing?
Created: 2012-11-16 12:21:29.018
Updated: 2012-11-16 12:21:29.018


Author: kbraak@gbif.org
Created: 2012-11-16 14:57:07.005
Updated: 2012-11-16 15:00:00.085
        
Ok, I get it now.

[~mdoering@gbif.org]: What about the publisher or creator? For this type of wikipedia page, can we not populate those fields? It is just that when I look at this image, it's not obvious where this came from, who publishes it/creates it..
    


Author: mdoering@gbif.org
Comment: apparently not: http://staging.gbif.org:8080/checklistbank-ws/name_usage/116883073/images
Created: 2012-11-16 15:20:30.532
Updated: 2012-11-16 15:20:30.532


Author: kbraak@gbif.org
Comment: Follow up question [~mdoering@gbif.org]: In such cases where there is no publisher then, is it worth specifying a default publisher=source, ie publisher= Wikipedia Species Pages - German ?
Created: 2012-11-16 15:28:48.549
Updated: 2012-11-20 15:28:51.902


Author: mdoering@gbif.org
Comment: Kyle, if you think its important to show the source again here please open a new issue for that. If the context path on localhost is correct and there is no issue anymore, please close this
Created: 2012-11-21 10:08:30.751
Updated: 2012-11-21 10:08:30.751


Author: kbraak@gbif.org
Comment: The context path on localhost is correct and there is no issue anymore so I am closing this issue. 
Created: 2012-11-21 10:44:27.988
Updated: 2012-11-21 10:44:27.988