From 383e2f423399714a168ad5c76e30a6b73e0d0b8b Mon Sep 17 00:00:00 2001 From: j2blake Date: Wed, 9 Oct 2013 16:38:35 -0400 Subject: [PATCH] VIVO-333 External-auth login button should be language-sensitive. Don't specify the text in the runtime.properties. Instead, get it from all.properties. Show the button if externalAuth.netIdHeaderName is specified. --- doc/install.html | 28 ++++++++++++++-------------- doc/upgrade-1.6.html | 6 ++++++ example.runtime.properties | 8 +++----- 3 files changed, 23 insertions(+), 19 deletions(-) diff --git a/doc/install.html b/doc/install.html index c91ac292..b94cfe7d 100644 --- a/doc/install.html +++ b/doc/install.html @@ -363,7 +363,7 @@ External authentication: If you want to use an external authentication system like Shibboleth or CUWebAuth, you will need to - set additional properties in this file. See the step below + set an additional property in this file. See the step below entitled Using an External Authentication System with VIVO.

@@ -615,21 +615,16 @@ If an external authentication system like Shibboleth or CUWebAuth is to be - used, these properties say how the login button should be labeled, and which - HTTP header will contain the user ID from the authentication system. If such - a system is not to be used, leave these commented out. Consult the installation - instructions for more details. + used, this property says which HTTP header will contain the user ID from + the authentication system. If such a system is not to be used, + leave this commented out. - externalAuth.buttonText -
externalAuth.netIdHeaderName - Log in using BearCat Shibboleth -
remote_userID @@ -1219,14 +1214,19 @@ the VIVO login form. You need to tell VIVO what text should appear in that button.

- Put a line like this in the runtime.properties file: - externalAuth.buttonText = [the text for your login button] For example: -

-
externalAuth.buttonText = Log in using BearCat Shibboleth
-

+ In your theme, add a line to the all.properties file, + like this one: +

external_login_text = [the text for your login button]
+ For example: +
external_login_text = Log in using BearCat Shibboleth
The VIVO login form will display a button labelled "Log in using BearCat Shibboleth".

+

+ If your site supports additional languages, add lines to the corresponding files. + For example, all_es.properties might contain this line: +

external_login_text = Entrar usando Shibboleth GatoOso
+

  • Associating a User with a profile page.
    diff --git a/doc/upgrade-1.6.html b/doc/upgrade-1.6.html index b6ef4ecd..fb0fefad 100644 --- a/doc/upgrade-1.6.html +++ b/doc/upgrade-1.6.html @@ -742,6 +742,12 @@ rdf/tbox/filegraph/tbox/vivo-skos-1.5.owl +

    + Note that the property named externalAuth.buttonText is no longer used. + You can specify the text of the external login button by adding a property to + all.properties like this: +

    external_login_text = Log in using BearCat Shibboleth
    +

    3. Apply any previous changes you have made to the new source diff --git a/example.runtime.properties b/example.runtime.properties index 5f8021fa..a25e5922 100644 --- a/example.runtime.properties +++ b/example.runtime.properties @@ -101,12 +101,10 @@ selfEditing.idMatchingProperty = http://vivo.mydomain.edu/ns#networkId # # If an external authentication system like Shibboleth or CUWebAuth is to be -# used, these properties say how the login button should be labeled, and which -# HTTP header will contain the user ID from the authentication system. If such -# a system is not to be used, leave these commented out. Consult the -# installation instructions for more details. +# used, this property says which HTTP header will contain the user ID from +# the authentication system. If such a system is not to be used, leave this +# commented out. Consult the installation instructions for more details. # -#externalAuth.buttonText = Log in using BearCat Shibboleth #externalAuth.netIdHeaderName = remote_userID #