Changeset 37411 for main


Ignore:
Timestamp:
2023-03-05T21:54:50+13:00 (14 months ago)
Author:
davidb
Message:

New param for googlemaps api key introduced so it can be controlled here with the Other Google ids/keys rather than needing to know the exact spot in an XSL file to change some Javascript syntax.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/WEB-INF/servlets.xml

    r36987 r37411  
    5757    </init-param>
    5858        <!-- if you want to use a non standard greenstone cookie path (by default it will use greenstone.context in build.properties), then set the value of it here. If you are mapping to an address without this part (eg my-site.org/library) then cookie path will be / -->
    59 <!--
     59    <!--
    6060        <init-param>
    6161          <param-name>cookie_path</param-name>
    6262          <param-value>/greenstone3</param-value>
    6363        </init-param>
    64 -->
     64    -->
     65
     66    <!-- ***** -->
     67        <!-- Google related keys and id credentials -->
     68    <!-- ***** -->
     69
    6570    <!--
    6671    <init-param>
     
    6974    </init-param>   
    7075    -->
     76   
    7177    <!-- For Google Authenticated Signin, need to specify the client-id (*not* the secret one)
    7278    <init-param>
     
    7480          <param-value>?????.....?????.apps.googleusercontent.com</param-value>
    7581        </init-param>
    76     -->
     82    -->
     83
     84    <!-- For details on how to set up a Google API key to use with Google Maps, see:
     85               https://developers.google.com/maps/documentation/javascript/get-api-key
     86        -->
     87        <!-- TLDR:
     88               1. On the Credentials page, create an API key (copy the displayed value)
     89               2. Then restrict it to your website
     90               3. Further restrict calls to just Google Maps API
     91               4. Give the key a name you will remember
     92               5. Press Save
     93               6. Paste the key into the <param-value> below
     94        -->
     95    <!--
     96        <init-param>
     97          <param-name>googlemaps_api_key</param-name>
     98          <param-value>?????.....?????</param-value>
     99        </init-param>
     100    -->
    77101</servlet>
    78102
Note: See TracChangeset for help on using the changeset viewer.