User manual
Advanced Topics
The 9999 after the colon in the lines above is the port the server will listen
on.
You can change this as well, to something like this:
<! -- public server runs on tcp -->
<listen id= "publicserver" >tcp:192.168.1.123:7090< /listen>
Configuring the server directive
Next we add a
server
directive. This directive essentially sets up a new Zebra
server. As part of this directive we configure things such as the location of
Zebra indexes folders, location of Zebra's bibliographic configuration files, the
MARC record syntax to be used, or the location of the style sheets to be used for
transforming the records.
The simplest thing to do is to model our new server on the existing bibliographic
server block already configured in the
koha -conf . xml
file:
<server id= "biblioserver"
listenref = "biblioserver ">
<directory>/ etc /koha -dev/ var / lib /zebradb /biblios < / directory>
<config>/ etc /koha -dev/ etc /zebradb /zebra- biblios.cfg < /config>
<cgl2rpn >/ etc /koha -dev/ etc / zebradb /pgf.properties< /cgl2rpn>
Once we copy this block, we replace the name
biblioserver with
publicserver,
like so:
<server id= "publicserver"
listenref= "publicserver">
< directory > / etc /koha -dev/ var / lib /zebradb /biblios< /directory>
<config > / etc /koha -dev/ etc /zebradb /zebra- biblios.cfg< /config>
<cgl2rpn > / etc /koha- dev / etc / zebradb /pgf.properties< /cgl2rpn>
Configuring the serverinfo directive
And finally we configure the
serverinfo
directive. This directive controls the
location to a Zebra configuration file and the username and password that allows
access to the Zebra indexes.
Again, it is best to model the new
serverinfo
directive on the corresponding
directive for the bibliographic server:
<serverinfo id= "biblioserver ">
<ccl2rpn >/ etc /koha -dev/ etc / zebradb /ccl.properties< /ccl2rpn>
<user>kohauser< /user>
<password>zebrastripes< /password>
< /serverinfo>
[258]