source: main/trunk/greenstone3/web/sites/ADDING-A-SITE.txt@ 28680

Last change on this file since 28680 was 28680, checked in by davidb, 8 years ago

Added URL for example sites

  • Property svn:executable set to *
File size: 2.0 KB
Line 
1
2For example, for a new site:
3
4 $GSDL3HOME/web/sites/multimodal-mdl
5
6Available through the URL:
7
8 localhost:8383/greenstone3/mdl-libray
9
10Do the following:
11
121. 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
502. 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
563. 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
68Example sites can be checked out from:
69
70 http://svn.greenstone.org//main/trunk/model-sites/
71
Note: See TracBrowser for help on using the repository browser.