FreeBSD Manual Pages
REFDB-SRUSERVER(1) RefDB Manual REFDB-SRUSERVER(1) NAME refdb-sruserver - Simple SRU server for RefDB databases SYNOPSIS refdb-sruserver DESCRIPTION refdb-sruserver is a simple standalone web server which povides a SRU ser- vice for RefDB databases. It is intended solely for local single-user ac- cess. For anything more ambitious, please see the CGI version of the SRU service, refdbsru(1). Before starting the SRU service, make sure to set up the refdbsrurc config- uration file which it shares with the CGI variant. The RefDB application server refdbd(1) must also be up and running. Now start the script which will run in the foreground until you kill it with Ctrl-c. The SRU service is available at the URL http://localhost:8080. Pointing your web browser to this address should return the output of the SRU explain command in a nicely formatted page. To run real queries, append the SRU query strings to the above URL. CONFIGURATION refdb-sruserver evaluates the file refdbsrurc to initialize itself. It shares this configuration file with refdbsru(1), the CGI variant of the SRU service. Note The parameters starting with "zeerex_" do not actually influence how the script operates. They provide some of the site-specific information which appears in the SRU explain output. Table-1.-refdb-sruserverrc------------------------+----------------------+ | Variable | Default | Comment | +------------------+------------------------------+----------------------+ | logfile | /var/log/refdb-sruserver.log | The full path of a | | | | custom log file. | | | | This is used only if | | | | logdest is set ap- | | | | propriately. | +------------------+------------------------------+----------------------+ | cssurl | (none) | In spite of the pa- | | | | rameter name, this | | | | may be the URL ei- | | | | ther of a Cascading | | | | Style Sheet (CSS) | | | | file, or of a XSLT | | | | file. This file, if | | | | specified, is used | | | | to format the SRU | | | | output in the web | | | | browser. | +------------------+------------------------------+----------------------+ | dbserver | (none) | This is the name of | | | | the database engine | | | | that refdbd uses | | | | (currently either | | | | mysql, pgsql, | | | | sqlite, or sqlite3). | | | | refdb-sruserver can | | | | obtain this value at | | | | runtime, but it has | | | | to send one addi- | | | | tional query per | | | | searchRetrieve or | | | | scan operation. If | | | | you provide the | | | | value here instead, | | | | response times will | | | | be faster. | +------------------+------------------------------+----------------------+ | zeerex_host | www.change.me | The hostname of the | | | | computer that runs | | | | your web server and | | | | refdb-sruserver | +------------------+------------------------------+----------------------+ | zeerex_port | 80 | The port that your | | | | web server listens | | | | to. | +------------------+------------------------------+----------------------+ | zeerex_database | cgi-bin/refdb-sruserver | The path section of | | | | the URL which pro- | | | | vides SRU access to | | | | your database, with- | | | | out the leading | | | | slash. zeerex_host, | | | | a slash, and this | | | | option combined make | | | | up the URL which a | | | | user has to type | | | | into his web browser | | | | to access your SRU | | | | service. | +------------------+------------------------------+----------------------+ | zeerex_database- | Reference Database | A public name of | | Info_title | | your database. | +------------------+------------------------------+----------------------+ | zeerex_database- | A reference database | A brief description | | Info_description | | of your database. | +------------------+------------------------------+----------------------+ | zeerex_database- | Your Name | The name of the per- | | Info_author | | son who is in charge | | | | of running the data- | | | | base. | +------------------+------------------------------+----------------------+ | zeerex_database- | your@email | How to contact the | | Info_contact | | database maintainer. | | | | Usually the email | | | | address. | +------------------+------------------------------+----------------------+ | logdest | 1 | The destination of | | | | the log information. | | | | 0 = print to stderr; | | | | 1 = use the syslog | | | | facility; 2 = use a | | | | custom logfile. The | | | | latter needs a | | | | proper setting of | | | | logfile. | +------------------+------------------------------+----------------------+ | loglevel | 6 | The log level up to | | | | which messages will | | | | be sent. A low set- | | | | ting (0) allows only | | | | the most important | | | | messages, a high | | | | setting (7) allows | | | | all messages includ- | | | | ing debug messages. | | | | -1 means nothing | | | | will be logged. | +------------------+------------------------------+----------------------+ | serverip | 127.0.0.1 | The IP address or | | | | hostname of the ma- | | | | chine where refdbd | | | | runs. Use the de- | | | | fault (localhost) | | | | address if the | | | | clients and refdbs | | | | run on the same ma- | | | | chine. | +------------------+------------------------------+----------------------+ | port | 9734 | The port on which | | | | refdbd listens. | | | | Change this for all | | | | clients and the | | | | server if this value | | | | interferes with an- | | | | other program using | | | | this port. | +------------------+------------------------------+----------------------+ | timeout | 180 | The timeout in sec- | | | | onds. After this | | | | time has elapsed, a | | | | stalled connection | | | | is taken down. In- | | | | crease this value if | | | | you encounter fre- | | | | quent timeout errors | | | | due to high network | | | | traffic or refdbd | | | | overload. | +------------------+------------------------------+----------------------+ | username | login name | The username which | | | | is used for authen- | | | | tication with the | | | | database server. | +------------------+------------------------------+----------------------+ | passwd | | The password which | | | | is used for authen- | | | | tication with the | | | | database server. | +------------------+------------------------------+----------------------+ | pdfroot | (none) | This value will be | | | | used as the root of | | | | the paths to PDF or | | | | Postscript offprints | | | | that can be speci- | | | | fied with the AV | | | | field in a RIS | | | | dataset. The path | | | | should not rely on | | | | shell expansion, | | | | e.g. use | | | | /home/me/literature/ | | | | instead of ~/litera- | | | | ture/. The pdfroot | | | | allows you to | | | | shorten the paths | | | | that you enter for | | | | each dataset and to | | | | maintain a certain | | | | portability if you | | | | have to move the | | | | offprints to a dif- | | | | ferent directory or | | | | want to access them | | | | remotely. The html | | | | output routine will | | | | concatenate the rel- | | | | ative path of each | | | | dataset with the | | | | pdfroot to construct | | | | the link to the off- | | | | print. Instead of a | | | | local path name you | | | | can specify an URL | | | | starting with | | | | http:// or ftp:// if | | | | your offprints are | | | | accessible through a | | | | web server or ftp | | | | server. | +------------------+------------------------------+----------------------+ FILES /usr/local/etc/refdb/refdbsrurc The global configuration file of refdb-sruserver. SEE ALSO RefDB (7) refdbsru (1) RefDB manual (local copy) <prefix>/share/doc/refdb-<version>/refdb-man- ual/index.html RefDB manual (web) <[1]http://refdb.sourceforge.net/manual/index.html> RefDB on the web <[2]http://refdb.sourceforge.net/> SRU (Search and Retrieve via URL) <[3]http://www.loc.gov/standards/sru/> AUTHOR refdb-sruserver was written by Markus Hoenicka <markus@mhoenicka.de>. REFERENCES 1. http://refdb.sourceforge.net/manual/index.html http://refdb.sourceforge.net/manual/index.html 2. http://refdb.sourceforge.net/ http://refdb.sourceforge.net/ 3. http://www.loc.gov/standards/sru/ http://www.loc.gov/standards/sru/ 2007-08-11 2007-08-11 REFDB-SRUSERVER(1)
NAME | SYNOPSIS | DESCRIPTION | CONFIGURATION | FILES | SEE ALSO | AUTHOR | REFERENCES
Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=refdb-sruserver&sektion=1&manpath=FreeBSD+Ports+15.1.quarterly>
