Where the SRU server port is defined in Aleph?
- Article Type: General
- Product: Aleph
- Product Version: 20
Description:
We are configuring our Aleph Dev server to communicate with the Rosetta Dev server. I have read through the Rosetta_Aleph_Synchronization document and I need some additional help:
We assume that somewhere in the aleph_start there should be an entry for something like: SRU_SERVER_PORT. There is nothing in the documentation. Please advise.
Resolution:
You were right, the aleph_start should contain the SRU_SERVER_PORT definitions, which are not in the distributed version.
The SRU server has been implemented in v18 by rep_change 881, and here is its description:
----------------
Description: SRU (Search/Retrieve via URL) is a standard search protocol for Internet search queries, utilizing CQL (Common Query Language), a standard query syntax for representing queries. SRW (Search Retrieve Web Service) is a companion protocol to SRU. The Library of Congress serves as the maintenance agency for these standards. The SRU/SRW server (sru_server) is now available in ALEPH.
ALEPH supports the following:
- "searchRetrieve" and "explain" services of SRU/SRW protocol
- Base Profile for SRU/SRW protocol
- Level 1 of CQL conformance specifications.
For Solaris 10 please install system patch 123647-01
(obtained from sunsolve).
1. The sru_server requires the installation of XML libraries.
Plese perform the following actions:
asm sru/install
csh -f install_libs.csh
Note: user running install_libs.csh script must
have write permissions for $aleph_product directory
2. Define the default port for sru_server in ./alephe/aleph_start
as following:
setenv SRU_SERVER_PORT <value>
where value is sru_server port
Example:
setenv SRU_SERVER_PORT 9000
3. Activate the sru_server.
This can be done via Util w 3 or upon system startup.
util w/3 (Start servers),
7(Other Server), 8(SRU/SRW server). It creates log file
sru_server_<port>.log in ALEPH $LOGDIR directory.
The sru_server configuration files are stored in
./alephe/tab/sru_server/ directory.
sru_server should be started on the system startup:
- add the following line to ./alephe/aleph_start
setenv SRU_SERVER_STARTUP Y
- add the following lines to ./alephe/aleph_startup:
if ($?SRU_SERVER_STARTUP) then
if ($SRU_SERVER_STARTUP == "Y") then
echo "starting sru_server... "
csh -f $aleph_proc/sru_server $l_sru_server_port >& /dev/null &
echo " "
endif
endif
-----------------------------------<end description>----------------
If there are no definitions in the aleph_start, then the script $aleph_proc/define_server_params will define a default port which is '566' and the $ALEPH_COPY variable:
if ($?SRU_SERVER_PORT) then
setenv l_sru_server_port $SRU_SERVER_PORT
else
setenv l_sru_server_port 566${ALEPH_COPY}
endif
This issue is still open and was escalated to Second line support for further analysis <2011-11-13 01:00:01>.
Additional Information
sru / srw
- Article last edited: 10/8/2013