source: VirtualCollectionRegistry/tags/VirtualCollectionRegistry-0.4.0-alpha2/VirtualCollectionRegistry/README.txt @ 5557

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

tag for VCR alpha 2

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/plain
File size: 4.5 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* PID PROVIDER *
30
31  You need to choose, which persistent identifier provider you want to use.
32  You can either use a dummy provider or the GWDG handle provider.
33  a) For using the dummy provider add the following:
34  <Parameter name="spring.profiles.active"
35             value="vcr.pid.dummy"
36             override="false"/>   
37
38  b) For using the GWDG handle provider add following and customize the
39     base URI for the virtual collection registry and the values for
40     $gwdg_user and $gwdg_password:
41
42  <Parameter name="spring.profiles.active"
43             value="vcr.pid.gwdg"
44             override="false"/>   
45  <Parameter name="pid_provider.base_uri"
46             value="http://127.0.0.1:8080/VirtualCollectionRegistry"
47             override="false"/>
48  <Parameter name="pid_provider.username" value="$gwdg_user" override="false"/>
49  <Parameter name="pid_provider.password" value="$gwdg_password" override="false"/>
50
51  c) For using the EPIC API v2 handle provider add following and customize the
52     base URI for the virtual collection registry and
 TODO
53
54  <Parameter name="spring.profiles.active"
55             value="vcr.pid.epic”
56             override="false"/>   
57  <Parameter name="pid_provider.base_uri"
58             value="http://127.0.0.1:8080/VirtualCollectionRegistry"
59             override="false"/>
60
61* AUTHENTICATION *
62
63The application has two alternative authentication configuration represented by two
64versions of the web.xml file. The default web.xml assumes Tomcat UserDatabaseRealm,
65which is useful for testing purposes.
66
67To shibbolize this application, the following steps are required:
68
691. Use the shibboleth version of web.xml called 'web-shib.xml' instead of
70the default one by renaming it to and overwriting web.xml (you can make a
71backup of the original web.xml). If the package was built for a production
72environment, it should already have the right web.xml in place.
73
742. Add the following to the relevant Apache configuration:
75
76        <Location /vcr>
77            ProxyPass ajp://localhost:8009/vcr
78            AuthType            shibboleth
79            ShibRequireSession  Off
80            ShibUseHeaders      On
81            Satisfy             All
82            Require             shibboleth
83        </Location>
84
85        <Location /vcr/service/submit>
86            ShibRequireSession  On
87        </Location>
88
89Adjust locations to the desired and relevant local alternatives. The second
90block is required to make the virtual collection form submit service work
91with POSTs (current versions of SHHAA do not support this).
92
93* OAI PROVIDER *
94
95Collection display name:
96
97Add the following to the Tomcat context.xml file to set a custom collection display name
98(MdCollectionDisplayName header element) for the CMDI representations provided by the
99built-in OAI provider:
100
101<Parameter name="eu.clarin.cmdi.virtualcollectionregistry.collectiondisplayname
102           value="CLARIN Virtual Collection Registry" />
103
104Change the value of the 'value' attribute if desired. If this parameter is not set,
105the default value "CLARIN Virtual Collection Registry" will be used as a collection name.
106
107* ADMINISTRATOR USERS *
108
109Add the following context parameter:
110
111<Parameter
112           name="eu.clarin.cmdi.virtualcollectionregistry.admindb"
113           value="/path/to/vcr-admin.conf" />
114
115Add the username of each user that should get administrator rights to the referenced
116file, one username per line.
Note: See TracBrowser for help on using the repository browser.