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

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

Added REST service information to the help page. Moved the documentation into a separate 'doc' directory in the project.
Refs #614

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/plain
File size: 4.7 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     base URI for the virtual collection registry and the values for
65     $gwdg_user and $gwdg_password:
66
67  <Parameter name="spring.profiles.active"
68             value="vcr.pid.gwdg"
69             override="false"/>   
70  <Parameter name="pid_provider.username" value="$gwdg_user" override="false"/>
71  <Parameter name="pid_provider.password" value="$gwdg_password" override="false"/>
72
73  c) For using the EPIC API v2 handle provider add following and customize the
74     base URI for the virtual collection registry and
 TODO
75
76  <Parameter name="spring.profiles.active"
77             value="vcr.pid.epic”
78             override="false"/>   
79
80* AUTHENTICATION *
81
82The application has two alternative authentication configuration represented by two
83versions of the web.xml file. The default web.xml assumes Tomcat UserDatabaseRealm,
84which is useful for testing purposes.
85
86To shibbolize this application, the following steps are required:
87
881. Use the shibboleth version of web.xml called 'web-shib.xml' instead of
89the default one by renaming it to and overwriting web.xml (you can make a
90backup of the original web.xml). If the package was built for a production
91environment, it should already have the right web.xml in place.
92
932. Add the following to the relevant Apache configuration:
94
95        <Location /vcr>
96            ProxyPass ajp://localhost:8009/vcr
97            AuthType            shibboleth
98            ShibRequireSession  Off
99            ShibUseHeaders      On
100            Satisfy             All
101            Require             shibboleth
102        </Location>
103
104        <Location /vcr/service/submit>
105            ShibRequireSession  On
106        </Location>
107
108Adjust locations to the desired and relevant local alternatives. The second
109block is required to make the virtual collection form submit service work
110with POSTs (current versions of SHHAA do not support this).
111
112* OAI PROVIDER *
113
114Collection display name:
115
116Add the following to the Tomcat context.xml file to set a custom collection display name
117(MdCollectionDisplayName header element) for the CMDI representations provided by the
118built-in OAI provider:
119
120<Parameter name="eu.clarin.cmdi.virtualcollectionregistry.collectiondisplayname
121           value="CLARIN Virtual Collection Registry" />
122
123Change the value of the 'value' attribute if desired. If this parameter is not set,
124the default value "CLARIN Virtual Collection Registry" will be used as a collection name.
Note: See TracBrowser for help on using the repository browser.