Changeset 36002
- Timestamp:
- 2022-01-14T11:01:06+13:00 (2 years ago)
- Location:
- main/trunk/greenstone3/web/interfaces/default_wip
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default_wip/js/cookieconsent-init.js
r35999 r36002 1 1 // @ts-nocheck 2 // See https://github.com/orestbida/cookieconsent for customisation options 2 3 /** 4 * Initialisation for the cookieconsent.js script, version 2.7.2. 5 * See https://github.com/orestbida/cookieconsent for customisation options. 6 * The translation strings that are referenced in this document via 'gs.text.ccm.XXX' 7 * can be found in the 'interface_default<_LANG>.properties' files, under 'WEB-INF/classes'. 8 */ 3 9 4 10 // obtain plugin … … 8 14 cc.run({ 9 15 current_lang: 'en', 10 autoclear_cookies: true, // default: false 11 // theme_css: '../style/cookieconsent.css', // ðš replace with a valid path 16 autoclear_cookies: false, // default: false 12 17 page_scripts: true, // default: false 13 cookie_path: '/greenstone3', 18 cookie_path: '/greenstone3', // default: root ( / ) 14 19 gui_options: { 15 20 consent_modal: { 16 layout: 'cloud', // box/cloud/bar17 position: 'bottom left', // bottom/middle/top + left/right/center18 transition: 'slide', // zoom/slide19 swap_buttons: false // enable to invert buttons21 layout: 'cloud', // box/cloud/bar 22 position: 'bottom left', // bottom/middle/top + left/right/center 23 transition: 'slide', // zoom/slide 24 swap_buttons: false // enable to invert buttons 20 25 }, 21 26 settings_modal: { 22 layout: 'box', // box/bar23 // position: 'left', // left/right - only valid with 'bar' layout24 transition: 'slide' // zoom/slide27 layout: 'box', // box/bar 28 // position: 'left', // left/right - only valid with 'bar' layout 29 transition: 'slide' // zoom/slide 25 30 } 26 31 }, … … 70 75 settings_modal: { 71 76 title: gs.text.ccm.Manager_Title, 72 save_settings_btn: 'Close',73 accept_all_btn: 'Accept All',74 // reject_all_btn: 'Reject All',75 close_btn_label: 'Close',77 save_settings_btn: gs.text.ccm.Manager_SaveSettingsButton, 78 accept_all_btn: gs.text.ccm.Manager_AcceptAllButton, 79 // reject_all_btn: ccm.Manager_AcceptNecessaryButton, 80 close_btn_label: gs.text.ccm.Manager_CloseButton, 76 81 cookie_table_headers: [ 77 { col1: 'Name'},78 { col2: 'Domain'},79 { col3: 'Expiration'},80 { col4: 'Description'}82 { name: gs.text.ccm.Manager.CookieTableHeaders_Name }, 83 { provider: gs.text.ccm.Manager.CookieTableHeaders_Provider }, 84 { expiration: gs.text.ccm.Manager.CookieTableHeaders_Expiration }, 85 { description: gs.text.ccm.Manager.CookieTableHeaders_Description } 81 86 ], 82 87 blocks: [ 83 88 { 84 title: 'Cookie Usage', 85 description: 'Greenstone uses cookies to ensure the basic functionalities of the website. You can view this cookie manager later by visiting the preferences page.' 89 description: gs.text.ccm.Manager_Description 86 90 }, 87 91 { 88 title: 'Required Cookies',89 description: 'These cookies are essential to ensuring that Greenstone operates properly',92 title: gs.text.ccm.Manager.RequiredCookies_Title, 93 description: gs.text.ccm.Manager.RequiredCookies_Description, 90 94 toggle: { 91 value: 'required', 95 value: 'required', // The cookie collection to toggle 92 96 enabled: true, 93 97 readonly: true 94 98 }, 95 cookie_table: [ // list of all expected cookies99 cookie_table: [ 96 100 { 97 col1: 'JSESSIONID',98 col2: window.location.hostname,99 col3: 'End of session',100 col4: 'Allows Greenstone to maintain your login status, chosen language, site settings and favourites basket',101 name: 'JSESSIONID', 102 provider: window.location.hostname, 103 expiration: gs.text.ccm.Manager.CookieTable_EndOfSessionExpiration, 104 description: gs.text.ccm.Manager.RequiredCookies.JSESSIONID_Description, 101 105 }, 102 106 { 103 col1: 'supportsXSLT',104 col2: window.location.hostname,105 col3: 'End of session',106 col4: 'Allows Greenstone to tell whether or not your browser supports client-side XSLT transformations.'107 name: 'supportsXSLT', 108 provider: window.location.hostname, 109 expiration: gs.text.ccm.Manager.CookieTable_EndOfSessionExpiration, 110 description: gs.text.ccm.Manager.RequiredCookies.supportsXSLT_Description 107 111 } 108 112 ] -
main/trunk/greenstone3/web/interfaces/default_wip/transform/layouts/header.xsl
r35999 r36002 11 11 <xsl:include href="../shared-templates.xsl"/> 12 12 <xsl:include href="../javascript-global-setup.xsl"/> 13 14 <xsl:param name="cookie_consent"/> 13 15 14 16 <!-- If the c parameter is empty then use the p.c parameter for the collection name--> … … 123 125 <script type="text/javascript" src="interfaces/{$interface_name}/js/ace/ace.js"><xsl:text> </xsl:text></script> 124 126 125 <link rel="stylesheet" href="interfaces/{$interface_name}/style/cookieconsent.css" type="text/css"/> 126 <gslib:langfrag name="ccm" /> 127 <script defer="true" type="text/javascript" src="interfaces/{$interface_name}/js/cookieconsent.js"><xsl:text> </xsl:text></script> 128 <script defer="true" type="text/javascript" src="interfaces/{$interface_name}/js/cookieconsent-init.js"><xsl:text> </xsl:text></script> 127 <!-- Cookie Consent Manager --> 128 <xsl:choose> 129 <xsl:when test="$cookie_consent"> 130 <link rel="stylesheet" href="interfaces/{$interface_name}/style/cookieconsent.css" type="text/css"/> 131 <gslib:langfrag name="ccm" /> 132 <script defer="true" type="text/javascript" src="interfaces/{$interface_name}/js/cookieconsent.js"><xsl:text> </xsl:text></script> 133 <script defer="true" type="text/javascript" src="interfaces/{$interface_name}/js/cookieconsent-init.js"><xsl:text> </xsl:text></script> 134 </xsl:when> 135 </xsl:choose> 129 136 130 137 <script type="text/javascript" src="interfaces/{$interface_name}/js/zoomer.js"><xsl:text> </xsl:text></script>
Note:
See TracChangeset
for help on using the changeset viewer.