Issue 13402

Add beta image with disclaimer JS and jira JS to all drupal pages

13402
Reporter: mdoering
Assignee: cvizitiu
Type: NewFeature
Summary: Add beta image with disclaimer JS and jira JS to all drupal pages
Priority: Major
Resolution: Fixed
Status: Closed
Created: 2013-06-20 12:15:29.287
Updated: 2013-09-02 13:46:33.0
Resolved: 2013-06-24 13:09:15.157
        
Description: We need to add 3 things to all drupal pages to be consistent with the java version:

1) a beta image which becomes a toggle link for the disclaimer JS (see 2)
2) add the disclaimer JS widget
3) add the two jira feedback buttons JS

See http://staging.gbif.org:8080/portal/ for implementation details]]>
    


Author: mdoering@gbif.org
Created: 2013-06-20 12:16:34.396
Updated: 2013-06-20 12:16:34.396
        
1) the beta image should be like this (just before the 


Author: cvizitiu@gbif.org
Created: 2013-06-20 13:11:36.122
Updated: 2013-06-20 13:11:36.122
        
As requested, on staging:

		
    


Author: mdoering@gbif.org
Created: 2013-06-20 15:24:21.525
Updated: 2013-06-20 15:24:21.525
        
if you look at the javascript console you'll see various errors that break the page:

1) Failed to load resource: the server responded with a status of 404 (Not Found) http://uat.gbif.org/js/vendor/jquery.cookie.js
=> not yet deployed on UAT, use staging for now (there should be a single config value pointing to the java app base url)

2) Uncaught ReferenceError: cfg is not defined app.js:89
all our javascript needs a cfg var as seen on every java page.
I will try to separate that out into a single javascript file with its own URL that you can then include in the drupal as just another JS reference.

The following are not relevant to this issue but are about the homepage metrics (they should use JSONP with callback=?)
3) XMLHttpRequest cannot load http://uat.gbif.org/metrics-ws/occurrence/count. Origin http://staging.gbif.org is not allowed by Access-Control-Allow-Origin. staging.gbif.org/:1
4) XMLHttpRequest cannot load http://uat.gbif.org/checklistbank-search-ws/search?dataset_key=d7dddbf4-2cf0-4f39-9b2a-bb099caae36c&limit=1&rank=species&status=accepted. Origin http://staging.gbif.org is not allowed by Access-Control-Allow-Origin. staging.gbif.org/:1



    


Author: mdoering@gbif.org
Created: 2013-06-20 16:12:44.556
Updated: 2013-06-20 16:13:08.516
        
I have just committed a portal change that exposes the cfg javascript object in a separate url that we can use in drupal. On staging this should come online in a few minutes when the build has finished here: http://staging.gbif.org:8080/portal/cfg

Just include it in all drupal pages as usual: