Changeset 776


Ignore:
Timestamp:
Apr 20, 2006, 5:06:21 PM (16 years ago)
Author:
Dominic Hargreaves
Message:

Add licence variables (closes #56)

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Changes

    r775 r776  
    1313        #54 Fix RSS redirection for backwards compatibility.
    1414        #79 Partial fix to help combat HTML spam
     15        #56 Add licence config variables
    1516
    16170.52    5 March 2006
  • trunk/INSTALL

    r736 r776  
    252252If you want to use a UTM ellipsoid, WGS-84 is the best choice, as it
    253253will allow you to use the Google Maps support with the minimum of fuss.
     254
     255  "What licence will you use for the guide?"
     256
     257We strongly recommend that you think at the outset about the licence your
     258guide will use, for maximum usefulness. In particular for a guide that will
     259be on the OpenGuides network, we recommend the
     260"Creative Commons Attribution-ShareAlike 2.5" licence.
     261
     262  "What is the URL to your licence?"
     263
     264If you used our recommendation above the URL you will want here is:
     265http://creativecommons.org/licenses/by-sa/2.5/
     266
     267  "What is the URL to your local page about your licensing policy?"
     268
     269You should probably include a page on your wiki about your local licensing
     270policy, but you can leave this blank for now if you don't have one yet.
    254271
    255272* Dependency errors
  • trunk/lib/OpenGuides/Config.pm

    r736 r776  
    1313   custom_template_path geo_handler ellipsoid gmaps_api_key centre_long
    1414   centre_lat default_gmaps_zoom default_gmaps_search_zoom force_wgs84
     15   licence_name licence_url licence_info_url
    1516);
    1617my @questions = map { $_ . "__qu" } @variables;
     
    8384                     default_gmaps_zoom => 5,
    8485                     default_gmaps_search_zoom => 3,
    85                      force_wgs84 => 0
     86                     force_wgs84 => 0,
     87                     licence_name => "",
     88                     licence_url => "",
     89                     licence_info_url => ""
    8690                   );
    8791
     
    146150        default_gmaps_zoom => "What default zoom level shall we use for Google Maps? (This question can be ignored if you aren't using Google Maps)",
    147151        default_gmaps_search_zoom => "What default zoom level shall we use for Google Maps in the search results? (This question can be ignored if you aren't using Google Maps)",
    148         force_wgs84 => "Forcibly treat stored lat/long data as if they used the WGS84 ellipsoid?"
     152        force_wgs84 => "Forcibly treat stored lat/long data as if they used the WGS84 ellipsoid?",
     153        licence_name => "What licence will you use for the guide?",
     154        licence_url => "What is the URL to your licence?",
     155        licence_info_url => "What is the URL to your local page about your licensing policy?"
    149156    );
    150157
     
    247254=item * force_wgs84
    248255
     256=item * licence_name
     257
     258=item * licence_url
     259
     260=item * licence_info_url
     261
    249262=back
    250263
  • trunk/lib/OpenGuides/Template.pm

    r775 r776  
    8888
    8989=item * C<gmaps_api_key>
     90
     91=item * C<licence_name>
     92
     93=item * C<licence_url>
     94
     95=item * C<licence_info_url>
    9096
    9197=back
     
    156162        language              => $config->default_language,
    157163        default_city          => $default_city,
    158         gmaps_api_key         => $config->gmaps_api_key
     164        gmaps_api_key         => $config->gmaps_api_key,
     165        licence_name          => $config->licence_name,
     166        licence_url           => $config->licence_url,
     167        licence_info_url      => $config->licence_info_url
    159168    };
    160169
  • trunk/templates/footer.tt

    r758 r776  
    2424      Powered by <a href="[% full_cgi_url%]?action=about">OpenGuides [% openguides_version %]</a>.
    2525    </p>
     26    <p>
     27      [% IF licence_name %]
     28        This work is licensed under the
     29        [% IF licence_url %]
     30           <a href="[% licence_url %]">
     31        [% END %]
     32        [% licence_name %]
     33        [% IF licence_url %]
     34           </a>
     35        [% END %]
     36        licence
     37        [% IF licence_info_url %]
     38           (<a href="[% licence_info_url %]">more info</a>)
     39        [% END %]
     40      [% END %]
    2641  [% END %]
    2742
Note: See TracChangeset for help on using the changeset viewer.