ARCHIVED. Code merged into new library.gwu.edu repo, and tickets transferred there. Old description: Drupal 7 theme for GW Libraries. Based on earlier Libsite7 theme.
To add the cookie notice and make it look nice, do the following:
Add theme changes from this branch (includes a new CSS file and its import from an already incorporated CSS file). Refs #168.
Install the EU Cookie Compliance Drupal module. From the Drupal site root:
Temporarily open permissions: sudo chmod 775 sites/all/modules/
Enable the module: drush en eu_cookie_compliance. Probably have to click y and y to proceed.
Reset permissions (this assumes fix-permissions.sh is one directory up): sudo bash ../fix-permissions.sh --drupal_path=/FULL/PATH/TO/DRUPAL/SITE/ROOT --drupal_user=www-data
drush cc all to clear cache
Change the module's configuration (differences from default below):
In the browser go to /admin/config/system/eu-cookie-compliance
Uncheck all roles except for anonymous user
Select the "Consent by default. Don't provide any option to opt out." radio button
For the "Cookie information banner message" field
change the Text Format to "Full HTML".
click the "Source" button and paste in: <p>GW uses cookies and other technology on our websites to improve your website experience and to better understand how you use our websites. Visit GW’s <a href="https://www.gwu.edu/privacy-notice" target="_blank">Website Privacy Notice</a> to learn more about how GW uses cookies and, if you should choose, how to disable them. I understand that by clicking <strong>“I consent”</strong> and continuing to use this website, I agree to GW’s use of cookies.</p>
In the "Agree button label" field, enter I consent.
Uncheck the 'Show "Cookie policy" and "More info" buttons' checkbox.
In the "Thank you banner message" field, also change the Text Format to "Full HTML" and paste in <p>Thank you for accepting cookies. You can now hide this message.</p> in the Source, but do NOT check the 'Enable "Thank you" banner ' checkbox.
In the "Privacy policy link" field enter https://www.gwu.edu/privacy-notice
In the "Background color" field enter 0073aa
Click "Advanced".
Check "Let screen readers see the banner before other links on the page."
In the "Domain" field (not the "Domain list" field), enter gwu.edu (or wrlc.org if testing locally)
To add the cookie notice and make it look nice, do the following:
sudo chmod 775 sites/all/modules/
drush en eu_cookie_compliance
. Probably have to clicky
andy
to proceed.fix-permissions.sh
is one directory up):sudo bash ../fix-permissions.sh --drupal_path=/FULL/PATH/TO/DRUPAL/SITE/ROOT --drupal_user=www-data
drush cc all
to clear cache/admin/config/system/eu-cookie-compliance
anonymous user
<p>GW uses cookies and other technology on our websites to improve your website experience and to better understand how you use our websites. Visit GW’s <a href="https://www.gwu.edu/privacy-notice" target="_blank">Website Privacy Notice</a> to learn more about how GW uses cookies and, if you should choose, how to disable them. I understand that by clicking <strong>“I consent”</strong> and continuing to use this website, I agree to GW’s use of cookies.</p>
I consent.
<p>Thank you for accepting cookies. You can now hide this message.</p>
in the Source, but do NOT check the 'Enable "Thank you" banner ' checkbox.https://www.gwu.edu/privacy-notice
0073aa