|
|
ASDD SearchMetadata search Advanced metadata search a> Search help Architecture of the ASDDArchitecture and technologies Help Node descriptions Metadata ManagementANZLIC metadata guidelines ANZMETA Document Type Definitions Validation tool Reports OASIS Catalog Z39.50 ProtocolOverview Configuration Establish NodesRequirements and Standards Node status Node Managers Interface Implementing ASDD nodes |
Modified: 2005-02-09
Upgrading existing ASDD Isite nodesCurrent situation
Need to upgrade
The expected time to carry out this upgrade (allowing for some holdups and thorough testing) is half a day. It would be a good idea to read this document before beginning and follow the sections as you upgrade. Download the Isite packageThe current Isite2 is available at A/WWW Enterprises (follow the link from the home page to "Isite Distribution", then to the "Isite2" directory). Unpack the software into a preparation directory on your system. Follow the Isite2 instructions if you are building from source. Create some directoriesSet up the following directories. They can be anywhere on your server and do not need to be under the HTTP server documents root directory. Probably in a different place to your current installation ...
CompilingIf you are using the pre-compiled binaries, then you can skip to the next section. To compile and build Isite you will need to have the "gcc/g++" compiler and libraries properly installed.
InstallationInstallation is currently a manual process. Copy the following binaries from $ISITE_BUILD/bin to $ISITE_BIN ...
ConfigurationThere are example configuration files included in the Isite2 distribution at ./conf/anzmeta/ Compare those configuration files with your current set and ensure consistency. The only two configuration files that should differ from the distribution are sapi.ini and zserver.ini. All configuration files are described below ... sapi.ini
zserver.ini
anzlic.fields
"Use Attribute" maps
Prepare the metadata collectionThere is no need to touch your existing collection of metadata documents unless it is in an old format. This is only an upgrade of software and configuration files. However, every node does need to have XML, HTML and plain text versions of the metadata available for presentation (contact technical assistance if you do not). A single collection of metadata documents can be indexed and served by two different Z39.50 servers on the same machine. So you can leave your existing ASDD server running and index the collection again with this new software . All metadata should be available in XML format that should validated against the ANZMETA Document Type Definition (DTD)
Each type of document collection will be indexed by a different Isearch "doctype". Index the XML documentsThe "Isearch" component of Isite uses software called "doctypes" to read and interpret the XML metadata documents. The doctypes have multiple roles: to index the metadata to create a searchable database, to conduct searching, and to present the results in whatever form that is requested by the client. Each collection of dataset descriptions has three files for each dataset description ...
Below are example Iindex commands to prepare a searchable database of your metadata. You could place the command in a shell script. The examples assume that all documents are in one data directory. If your data is in separate directories then you could use the UNIX commands "find" and "sed" to automatically prepare the list of pathnames to feed into Iindex. To index a collection of XML files that conform to the ANZMETA Document Type Definition (DTD) ... # the name for your index database of dataset descriptions DB_NAME=test1 # run Iindex to parse the XML files # using the Isearch doctype called "anzmeta" $ISITE_BIN/Iindex -d $ISITE_DB/$DB_NAME -t anzmeta -m 4 \ -o fieldtype=$ISITE_BIN/anzlic.fields $ISITE_DATA/*.xml There are some issues with indexing large collections of documents ...
Start the Z39.50 serverStart the Zserver by issuing the following UNIX command. The server will start up, mount the specified databases, and then listen on the specified port. You could place this command in a shell script. # start the Z39.50 server and run it in the background $ISITE_BIN/zserver -i$ISITE_BIN/zserver.ini & You may also want to redirect the output to a log file if you want detailed connection and searching information for parsing of log files and generating usage reports. The standard log file (specified in zserver.ini) collects only very basic connection information. # start the Z39.50 server, # redirect STDOUT and STDERR to be appended to a log file, # and run zserver in the background $ISITE_BIN/zserver -i$ISITE_BIN/zserver.ini > zserver-200102.log 2>&1 & Testing your nodeThe best way to test your node is to use the Isite program called "zbatch" which allows you to specify a set of queries in a plain text file. Zbatch will connect to the specified server and run the queries sequentially. See the document Testing Isite ASDD nodes. Hosted collectionsAny one node can also host a collection of geospatial metadata for another organisation. In that way, an organisation that does not have an actual Z39.50 server can appear to be a fully-fledged node of the ASDD. The collection of XML documents and the corresponding presentation documents need to be on the same machine on which the Zserver is running. Simply index the collection of documents using Iindex and define all of the collections in the sapi.ini and zserver.ini configuration files. Technical assistance |