Issue 12918

Make stats on GBIF Home links to respective data section

12918
Reporter: mdoering
Assignee: cvizitiu
Type: Improvement
Summary: Make stats on GBIF Home links to respective data section
Description: The stats are the most prominent notion of portal data so we should make then clickable links that lead to the respective sections just as the data menu items
Priority: Major
Resolution: Fixed
Status: Closed
Created: 2013-03-05 13:56:40.887
Updated: 2013-09-02 13:46:36.306
Resolved: 2013-06-24 13:09:00.449


Author: cvizitiu@gbif.org
Comment: A link which should exist even for non-JavaScript browsers or the text is made a link by the update script?
Created: 2013-03-05 13:59:22.3
Updated: 2013-03-05 13:59:22.3


Author: mdoering@gbif.org
Comment: The link would not need to change, so just a regular anchor
Created: 2013-03-05 14:15:27.173
Updated: 2013-03-05 14:15:27.173


Author: cvizitiu@gbif.org
Comment: Only one missing is the link towards publishers. What is the href target for that?
Created: 2013-06-20 13:38:36.376
Updated: 2013-06-20 13:38:36.376


Author: mdoering@gbif.org
Created: 2013-06-20 15:54:10.291
Updated: 2013-06-20 15:54:10.291
        
that does not exist yet I am afraid. We also need to populate the count correctly and not use any dummy figures.
Please use ? as the default instead of real numbers and then use this url to retrieve the current count:

http://api.gbif.org/organization?limit=1

PS: right now this is still an old service that does not return a count. It will look like this when we deploy to UAT again:
http://staging.gbif.org:8080/registry2-ws/organization?limit=1


    


Author: cvizitiu@gbif.org
Comment: I've changed numbers to "?" but due to the cross-domain security issue (I think...), the script still doesn't work. 
Created: 2013-06-21 17:57:26.67
Updated: 2013-06-21 17:57:26.67


Author: mdoering@gbif.org
Comment: In jquery crossdomain calls are easy using JSONP which our webservices support. Where is the script?
Created: 2013-06-21 22:39:43.778
Updated: 2013-06-21 22:39:43.778


Author: cvizitiu@gbif.org
Comment: I've added everything that I could find on portal side but still no move. 
Created: 2013-06-22 19:16:15.725
Updated: 2013-06-22 19:16:15.725


Author: mdoering@gbif.org
Created: 2013-06-24 12:08:41.038
Updated: 2013-06-24 12:08:41.038
        
On staging I find this javascript:



It is lacking the callback jsonp parameter for cross domain calls. Also there are only 2 queries and 2 are missing.
Simply copy the javascript from the staging java portal homepage which reads like this: