source: VirtualCollectionRegistry/trunk/VirtualCollectionRegistry/doc/README.txt

Last change on this file was 5636, checked in by Twan Goosen, 10 years ago

Added optional context parameter to set EPIC PID infix
Fixes #632

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/plain
File size: 5.6 KB
Line 
1CLARIN Virtual Collection Registry
2----------------------------------
3
4* DATABASE CONNECTION *
5
6The connection to the database is configured using JNDI using the
7name "jdbc/VirtualCollectionStore".
8When using Apache Tomcat add the following to the context configuration
9of the web application (by either modifying "server.xml" or providing an
10appropiate context configuration, e.g. like
11  "$CATALINA_HOME/conf/Catalina/localhost/VirtualCollectionRegistry.xml";
12if in doubt, please check the Apache Tomcat documentation):
13
14  <Resource name="jdbc/VirtualCollectionStore" auth="Container"
15            type="javax.sql.DataSource"
16            maxActive="8" maxIdle="4" maxWait="10000"
17            removeAbandoned="true"
18            defaultAutoCommit="false"
19            driverClassName="com.mysql.jdbc.Driver"
20            validationQuery="SELECT 1"
21            username="$dbuser"
22            password="$dbpass"
23            url="jdbc:mysql://127.0.0.1:3306/$dbname" />
24
25  This will configure a DBCP data source for the virtual collection registry.
26  Customize $dbuser, $dbpass and $dbname to match your local settings.
27  NOTE: currently only MySQL is supported.
28
29* CONTEXT PARAMETERS *
30
31PUBLIC APPLICATION URL:
32
33Add the following context parameter (typically to the global context.xml file)
34and substitute the value with the correct *public* base location of the VCR:
35
36  <Parameter name="eu.clarin.cmdi.virtualcollectionregistry.base_uri"
37             value="http://my/server/VirtualCollectionRegistry"
38             override="false"/>
39
40Add no trailing slash. You can verify this by checking the service links in the
41help page of the running application.
42
43ADMINISTRATOR USERS:
44
45Add the following context parameter:
46
47<Parameter
48           name="eu.clarin.cmdi.virtualcollectionregistry.admindb"
49           value="/path/to/vcr-admin.conf" />
50
51Add the username of each user that should get administrator rights to the
52referenced file, one username per line.
53
54* PID PROVIDER *
55
56  You need to choose, which persistent identifier provider you want to use.
57  You can either use a dummy provider or the GWDG handle provider.
58  a) For using the dummy provider add the following:
59  <Parameter name="spring.profiles.active"
60             value="vcr.pid.dummy"
61             override="false"/>   
62
63  b) For using the GWDG handle provider add following and customize the
64     values for $gwdg_user and $gwdg_password:
65
66  <Parameter name="spring.profiles.active"
67             value="vcr.pid.gwdg"
68             override="false"/>   
69  <Parameter name="pid_provider.username" value="$gwdg_user" override="false"/>
70  <Parameter name="pid_provider.password" value="$gwdg_password" override="false"/>
71
72  c) For using the EPIC API v2 handle provider add following and customize the
73     values for $epic_user and $epic_password:
74     
75  <Parameter name="spring.profiles.active"
76             value="vcr.pid.epic”
77             override="false"/>   
78
79  <Parameter name="pid_provider.epic.service_base_url"
80             value="http://pid-vm04.gwdg.de:8080/handles/"
81             override="false"/>               
82  <Parameter name="pid_provider.epic.handle_prefix"
83             value="11148"
84             override="false"/>     
85  <Parameter name="pid_provider.epic.user"
86             value="$epic_user"
87             override="false"/>     
88  <Parameter name="pid_provider.epic.password"
89             value="$epic_password"
90             override="false"/>
91             
92  Add the following parameter to configure a custom PID 'infix'. The example below
93  configures the default behaviour, i.e. '{prefix}/VCR-{id}'.
94   
95  <Parameter name="pid_provider.epic.infix"
96             value="VCR-"/>
97             
98* AUTHENTICATION *
99
100The application has two alternative authentication configuration represented by two
101versions of the web.xml file. The default web.xml assumes Tomcat UserDatabaseRealm,
102which is useful for testing purposes.
103
104To shibbolize this application, the following steps are required:
105
1061. Use the shibboleth version of web.xml called 'web-shib.xml' instead of
107the default one by renaming it to and overwriting web.xml (you can make a
108backup of the original web.xml). If the package was built for a production
109environment, it should already have the right web.xml in place.
110
1112. Add the following to the relevant Apache configuration:
112
113        <Location /vcr>
114            ProxyPass ajp://localhost:8009/vcr
115            AuthType            shibboleth
116            ShibRequireSession  Off
117            ShibUseHeaders      On
118            Satisfy             All
119            Require             shibboleth
120        </Location>
121
122        <Location /vcr/service/submit>
123            ShibRequireSession  On
124        </Location>
125
126Adjust locations to the desired and relevant local alternatives. The second
127block is required to make the virtual collection form submit service work
128with POSTs (current versions of SHHAA do not support this).
129
1303. Configure the right SSO and SLO locations in WEB-INF/shhaa.xml:
131
132        <authentication>
133            ...
134            <sso action="lI">https://shib-host/Shibboleth.sso/Login</sso>
135            <slo action="lO">https://shib-host/Shibboleth.sso/Logout</slo>     
136        </authentication>
137
138* OAI PROVIDER *
139
140Collection display name:
141
142Add the following to the Tomcat context.xml file to set a custom collection display name
143(MdCollectionDisplayName header element) for the CMDI representations provided by the
144built-in OAI provider:
145
146<Parameter name="eu.clarin.cmdi.virtualcollectionregistry.collectiondisplayname
147           value="CLARIN Virtual Collection Registry" />
148
149Change the value of the 'value' attribute if desired. If this parameter is not set,
150the default value "CLARIN Virtual Collection Registry" will be used as a collection name.
Note: See TracBrowser for help on using the repository browser.