source: trunk/gsdl3/RUNNING@ 6001

Last change on this file since 6001 was 3706, checked in by kjdon, 21 years ago

modified

  • Property svn:keywords set to Author Date Id Revision
File size: 3.0 KB
RevLine 
[3561]1Note: when running the localhost:8080/gsdl3/library, only the mgppdemo and
2chinese demo collections can do anything useful.
[3393]3
4*******************************************************
[3358]5There are 3 main parts to the system: sites, interfaces, library executables.
6
7Sites contain collections. Interfaces contain images and xslts.
8
[3561]9There are 2 sites in this prototype example.
[3358]10
11sites/localsite is a standalone site, like used by a local library. It has
12no connections to any other sites.
13
[3561]14sites/site1 is a site that specifies a SOAP connection to another site: localsite
[3358]15
[3561]16to run site1, and talk to localsite via SOAP, you need to have apache tomcat installed, running, and serving site2. (see INSTALL)
[3358]17
18You can add other sites by putting a directory in the sites directory, and
19configuring it appropriately. TODO MakeSite program
20
21
22There is one interface - default. you can add other interfaces if you like, in
23the interfaces directory.
24
25The interface and site to use for a particular servlet is determined by the
[3706]26init-params in the web.xml file (web/WEB-INF/web.xml)
[3358]27
28XSL Files: when an xslt file is to be used, eg home.xsl, it is looked for in
[3561]29several places: in sites/current site/transform, interfaces/current interface/transform, and finally interfaces/default/transform
[3358]30
31so you can change the interface by adding new xslt files to these three places.
32
[3380]33******************************************************
34Servlet:
[3358]35
36need to run setup.bash to set CLASSPATH etc
37
[3380]38Can run the web interface by starting tomcat (see INSTALL) and going to
39localhost:8080/gsdl3/library
40
41only mgpp collections can be searched - use mgppdemo, not demo.
42
[3561]43to change the interface language, you can add &l=fr to the url. However, there are no alternative langs at the moment.
[3380]44
45*******************************************************
46Command line libraries
47
48need to run setup.bash to set CLASSPATH etc
49
[3358]50there is a sample executable class: Library1
51
52it can be run by "java org.greenstone.gsdl3.Library1 <sitehome>"
53
54sitehome is the base dir for the site you are running:
55 for the local library example site, its .../gsdl3/sites/localsite
56 for the distributed soap example site, its .../gsdl3/sites/site1
57
58Library1 - just takes straight XML queries and returns the results. It talks
59directly to the message router
60
[3706]61see the manual for sample messages.
[3358]62
63this program is not very useful - except for debugging - when using the servlet
[3706]64or Library2, can print out the messages - then cut and paste these for
[3358]65input to Library1
66
67
68Library2:
69
70java org.greenstone.gsdl3.Library2 <sites home> <site name> <interfaces home> <interface name>
71
72takes xml request of 'cgi' params, and returns html (input must be all on one line)
73
[3380]74Collections:
[3358]75
[3380]76Can use the new java Queryer to test mgpp collections:
77
78java org.greenstone.mgpp.Queryer <basedir> <indexdir> <textdir>
79
80eg
81java org.greenstone.mgpp.Queryer sites/localsite/collect/mgppdemo/index tt/mgppdemo text/mgppdemo
82
83you can use any mgpp collection built with gsdl2 - you need to add a
84buildcfg.xml file to the index directory - look at the one for mgppdemo to see
85what it should look like.
86
87
88
89
90
91
92
Note: See TracBrowser for help on using the repository browser.