Changeset 9445


Ignore:
Timestamp:
2005-03-16T13:23:25+13:00 (19 years ago)
Author:
kjdon
Message:

small changes

Location:
trunk/gsdl3/docs/manual
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/docs/manual/manual.tex

    r8757 r9445  
    687687Appendix~\ref{app:gs2replace} gives some examples that have been used for Greenstone 2 collections.
    688688
    689 \subsection{buildConfig.xml}\label{sec:buildconfig}
     689\subsubsection{buildConfig.xml}\label{sec:buildconfig}
    690690
    691691The file \gst{buildConfig.xml} is produced by the collection building process. Generally it is not necessary to look at this file, but it can be useful in determining what went wrong if the collection doesn't appear quite the way it was planned.
     
    967967
    968968Note, format templates are added into the XSLT files before transforming, while the options are added into the page source, and used in tests in the XSLT.
     969\subsubsection{Changing the service text strings}
     970
     971Each collection has a set of services which are the access points for the information in the collection. Each service has a set of text strings which are used to display it. These include name, description, the text on the submit button, and names and descriptions of all the parameters to the service.
     972
     973These text strings are found in .properties files, in gsdl3/resources/java. The names of the files are based on class names. Subclasses can defined their own properties, or can use their parent class ones. For example, AbstractSearch defines strings for the TextQuery service, in AbstractSearch.properties. GS2MGSearch just uses these default ones, so doesn't need its own property file.
     974
     975A particular collection can override the properties for any service. For example, if a collection uses the GS2MGSearch service rack (look in the buildConfig.xml file for a list of service racks used), and the collection builder wants to change the text associated with this service, they can put a GS2MGSearch.properties file in the resources directory of the collection.
     976This will be used in preference to one in the default resources directory.
     977Note that while changes in the default properties files seem to require a tomcat restart to take effect, changes in the colleciton specific properties files take effect immediately.
    969978
    970979\subsection{Customising the interface}\label{sec:interface-customise}
     
    16111620\end{verbatim}\end{gsc}\end{quote}
    16121621
    1613 One or more parameters specifying metadata may be included in a request. Also, a value of \gst{all} will retrieve all the metadata for each document.
     1622One or more parameters specifying metadata may be included in a request. Also, ametadata value of \gst{all} will retrieve all the metadata for each document.
    16141623
    16151624Any browse-type service must also implement a metadata retrieval service to provide metadata for the nodes in the classification hierarchy. The name of it is the browse service name plus \gst{MetadataRetrieve}. For example, the ClassifierBrowse service described in the previous section should also have a ClassifierBrowseMetadataRetrieve service. The request and response format is exactly the same as for the DocumentMetadataRetrieve service, except that \gst{<documentNode>} elements are replaced by \gst{<classifierNode>} elements (and the corresponding list element is also changed).
     
    16741683\end{verbatim}\end{gsc}\end{quote}
    16751684
    1676 Structure is returned inside a \gst{<nodeStructure>} element, while structural info is returned in a \gst{<nodeStructureInfo>} element. Possible values for structure parameters are as for browse services: \gst{ancestors}, \gst{parent}, \gst{siblings}, \gst{children}, \gst{descendents}. Possible values for info parameters are \gst{numSiblings}, \gst{siblingPosition}, \gst{numChildren}.
     1685Structure is returned inside a \gst{<nodeStructure>} element, while structural info is returned in a \gst{<nodeStructureInfo>} element. Possible values for structure parameters are as for browse services: \gst{ancestors}, \gst{parent}, \gst{siblings}, \gst{children}, \gst{descendents}, \gst{entire}. Possible values for info parameters are \gst{numSiblings}, \gst{siblingPosition}, \gst{numChildren}.
    16771686
    16781687\subsubsection{'process'-type services}\label{sec:process}
     
    22312240To startup or shutdown the library (includes the Tomcat server and MYSQL server), the commands are (run from the gsdl3 directory):
    22322241\begin{quote}\begin{gsc}
    2233 ./gs3-launch.sh or gs3-launch
     2242./gs3-launch.sh or gs3-launch \\
    22342243./gs3-launch.sh -shutdown or close the window
    22352244\end{gsc}\end{quote}
     
    23202329\end{gsc}\end{quote}
    23212330
    2322 This creates a new SOAPServer class for the site (\gst{\$GSDL3HOME/src/java/org/greenstone/gsdl3/SOAPServer<sitename>.java}), creates a resource file for deployment (\gst{\$GSDL3HOME/resources/soap/<sitename>.xml}), and then tries to deploy the service. If the deployment doesn't work, you can run it from the command line like:
     2331This creates a new SOAPServer class for the site \\(\gst{\$GSDL3HOME/src/java/org/greenstone/gsdl3/SOAPServer<sitename>.java}), creates a resource file for deployment (\gst{\$GSDL3HOME/resources/soap/<sitename>.xml}), and then tries to deploy the service. If the deployment doesn't work, you can run it from the command line like:
    23232332
    23242333\begin{gsc}\begin{verbatim}
     
    24202429Getting rid of silly backslashes:
    24212430\begin{gsc}\begin{verbatim}
    2422 <replace scope='text' macro="\backslash\backslash?\backslash\backslash\backslash(" text="\backslash("/>
     2431<replace scope='text' macro="\\?\\\(" text="\("/>
    24232432\end{verbatim}\end{gsc}
    24242433
    24252434Macro resolving using resource bundles and metadata:
    24262435\begin{gsc}\begin{verbatim}
    2427 <replace scope='metadata' macro="_magazines_" bundle="NZDLMacros" key="Magazines"/>
     2436<replace scope='metadata' macro="_magazines_" bundle="NZDLMacros"
     2437   key="Magazines"/>
    24282438<replace scope='all' macro='_thisOID_' metadata='archivedir'/>
    2429 <replace macro="_httpcollimg_" text="sites/localsite/collect/folktale/index/assoc"/>
     2439<replace macro="_httpcollimg_"
     2440   text="sites/localsite/collect/folktale/index/assoc"/>
    24302441\end{verbatim}\end{gsc}
    24312442
    24322443Fixing up broken external links:
    24332444\begin{gsc}\begin{verbatim}
    2434 <replace macro="_httpextlink_&amp;rl=1&amp;href=" text="?a=d&amp;c=folktale&amp;s0.ext=1&amp;d="/>
    2435 <replace macro="_httpextlink_&amp;rl=0&amp;href=" text="?a=p&amp;sa=html&amp;c=folktale&amp;url="/>
    2436 </replaceList>
     2445<replace macro="_httpextlink_&amp;rl=1&amp;href="
     2446   text="?a=d&amp;c=folktale&amp;s0.ext=1&amp;d="/>
     2447<replace macro="_httpextlink_&amp;rl=0&amp;href="
     2448   text="?a=p&amp;sa=html&amp;c=folktale&amp;url="/>
    24372449\end{verbatim}\end{gsc}
    24382450
     
    24422454Sometimes we need to add in macros to be resolved in a second step:
    24432455\begin{gsc}\begin{verbatim}
    2444 <replace macro="_iconpdf_" scope="metadata" text="&lt;img border='0' height='26' width='26' alt='PDF' title='_texticonpdf_' src='interfaces/default/images/ipdf.gif'/&gt;"/>
    2445 <replace macro="_texticonpdf_" scope="metadata" bundle="interface_classic" key="texticonpdf"/>
     2456<replace macro="_iconpdf_" scope="metadata"
     2457   text="&lt;img title='_texticonpdf_' src='interfaces/default/images/ipdf.gif'/&gt;"/>
     2458<replace macro="_texticonpdf_" scope="metadata" bundle="interface_classic"
     2459   key="texticonpdf"/>
    24462460\end{verbatim}\end{gsc}
    24472461
Note: See TracChangeset for help on using the changeset viewer.