1 |
|
---|
2 | For example, for a new site:
|
---|
3 |
|
---|
4 | $GSDL3HOME/web/sites/multimodal-mdl
|
---|
5 |
|
---|
6 | Available through the URL:
|
---|
7 |
|
---|
8 | localhost:8383/greenstone3/mdl-libray
|
---|
9 |
|
---|
10 | Do the following:
|
---|
11 |
|
---|
12 | 1. Edit $GSDL3HOME/WEB-INF/web.xml
|
---|
13 |
|
---|
14 | (a) Similar to the "library" <servlet>...</servlet> entry, create the entry:
|
---|
15 |
|
---|
16 | <servlet>
|
---|
17 | <servlet-name>mdl-library</servlet-name>
|
---|
18 | <description>A Multimodal Music Digital Library (MDL)</description>
|
---|
19 | <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
|
---|
20 | <init-param>
|
---|
21 | <param-name>library_name</param-name>
|
---|
22 | <param-value>mdl-library</param-value> <!-****-->
|
---|
23 | </init-param>
|
---|
24 | <init-param>
|
---|
25 | <param-name>site_name</param-name>
|
---|
26 | <param-value>multimodal-mdl</param-value> <!-****-->
|
---|
27 | </init-param>
|
---|
28 | <init-param>
|
---|
29 | <param-name>interface_name</param-name>
|
---|
30 | <param-value>and-sparql</param-value>
|
---|
31 | </init-param>
|
---|
32 | <init-param>
|
---|
33 | <param-name>receptionist_class</param-name>
|
---|
34 | <param-value>DefaultReceptionist</param-value>
|
---|
35 | </init-param>
|
---|
36 | <init-param>
|
---|
37 | <param-name>default_lang</param-name>
|
---|
38 | <param-value>en</param-value>
|
---|
39 | </init-param>
|
---|
40 | </servlet>
|
---|
41 |
|
---|
42 | (b) And further down, similar to the "library" <servlet-mapping>...</servlet-mapping> entry,
|
---|
43 | add the following:
|
---|
44 |
|
---|
45 | <servlet-mapping>
|
---|
46 | <servlet-name>mdl-library</servlet-name>
|
---|
47 | <url-pattern>/mdl-library/*</url-pattern>
|
---|
48 | </servlet-mapping>
|
---|
49 |
|
---|
50 | 2. Setup the site configuration file: $GSDL3HOME/sites/multimodal-mdl/siteConfig.xml
|
---|
51 |
|
---|
52 | This can be as simple as:
|
---|
53 |
|
---|
54 | /bin/cp $GSDL3HOME/sites/localsite/siteConfig.xml $GSDL3HOME/sites/multimodal-mdl/siteConfig.xml
|
---|
55 |
|
---|
56 | 3. Optionally edit: $GSDL3HOME/index.html
|
---|
57 |
|
---|
58 | Add a list-item that links to the newly added site
|
---|
59 |
|
---|
60 | <li>
|
---|
61 | <a href="mdl-library">Access the Multimodal Music Digital Library.</a>
|
---|
62 | This is an interface that demonstrates a wide variety of audio-content based processing
|
---|
63 | (server and client side) in the context of a multimodal music digital library.
|
---|
64 | </li>
|
---|
65 |
|
---|
66 | ****
|
---|
67 |
|
---|
68 | Example sites can be checked out from:
|
---|
69 |
|
---|
70 | http://svn.greenstone.org//main/trunk/model-sites/
|
---|
71 |
|
---|