Problems with OPAC
We have a number of problems with OPAC: 1) Advanced search always searches with “and”, how can we get "or" and "not" to work too? 2) Limiting searches by item type doesn't work. The result is always: "No results match your search for kw,wrdl: bachmc-itemtype:CDAU". There are matching records in the database. 3) Sorting search results only works for "title". We need it to work for "author" and "dates" too. Something's obviously seriously wrong with the search in this system. Any ideas? -- View this message in context: http://old.nabble.com/Problems-with-OPAC-tp27530296p27530296.html Sent from the Koha - Discuss mailing list archive at Nabble.com.
Hi! I am afraid I have no idea about a solution, but it would probably be easier to help if you told the list - what version of Koha you are running - if you are running with Zebra or NoZebra Regards, Magnus Enger libriotech.no On 10 February 2010 13:15, PasiK <pasi.korkalo@oululainen.com> wrote:
We have a number of problems with OPAC:
1) Advanced search always searches with “and”, how can we get "or" and "not" to work too? 2) Limiting searches by item type doesn't work. The result is always: "No results match your search for kw,wrdl: bachmc-itemtype:CDAU". There are matching records in the database. 3) Sorting search results only works for "title". We need it to work for "author" and "dates" too.
Something's obviously seriously wrong with the search in this system. Any ideas? -- View this message in context: http://old.nabble.com/Problems-with-OPAC-tp27530296p27530296.html Sent from the Koha - Discuss mailing list archive at Nabble.com.
_______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Oh yes, of course (sorry about that). At the moment the system is running Koha 3.00.00.107 that was originally upgraded from Koha 2.2. Zebra is not in use (i.e. NoZebra). Is Zebra necessary for the boolean operators to appear in "Advanced search"? Magnus Enger wrote:
Hi!
I am afraid I have no idea about a solution, but it would probably be easier to help if you told the list - what version of Koha you are running - if you are running with Zebra or NoZebra
Regards, Magnus Enger libriotech.no
On 10 February 2010 13:15, PasiK <pasi.korkalo@oululainen.com> wrote:
We have a number of problems with OPAC:
1) Advanced search always searches with “and”, how can we get "or" and "not" to work too? 2) Limiting searches by item type doesn't work. The result is always: "No results match your search for kw,wrdl: bachmc-itemtype:CDAU". There are matching records in the database. 3) Sorting search results only works for "title". We need it to work for "author" and "dates" too.
Something's obviously seriously wrong with the search in this system. Any ideas? -- View this message in context: http://old.nabble.com/Problems-with-OPAC-tp27530296p27530296.html Sent from the Koha - Discuss mailing list archive at Nabble.com.
_______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
_______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
-- View this message in context: http://old.nabble.com/Problems-with-OPAC-tp27530296p27530834.html Sent from the Koha - Discuss mailing list archive at Nabble.com.
On 11/02/10 02:01, PasiK wrote:
At the moment the system is running Koha 3.00.00.107 that was originally upgraded from Koha 2.2. Zebra is not in use (i.e. NoZebra). Is Zebra necessary for the boolean operators to appear in "Advanced search"?
We had a large number of issues with searching on NoZebra when we were first setting up Koha. Someone eventually suggested that NoZebra could be the problem, so we turned Zebra on, and all our problems disappeared. This was with 3.00.05, and we had some different issues to what you describing, but I would still suggest trying turning on Zebra. It seems to be a far better search engine, and better supported as of 3.00.05. Braedon Vickers -- TechnologyWise Ltd, Tauranga, NZ braedon@tw.co.nz www.technologywise.co.nz ph: +64 (0)7 571 1060 fax: +64 (0)7 571 1061
How can we make the switch to Zebra? Besides changing the system parameter what else needs to be done? Braedon Vickers wrote:
On 11/02/10 02:01, PasiK wrote:
At the moment the system is running Koha 3.00.00.107 that was originally upgraded from Koha 2.2. Zebra is not in use (i.e. NoZebra). Is Zebra necessary for the boolean operators to appear in "Advanced search"?
We had a large number of issues with searching on NoZebra when we were first setting up Koha. Someone eventually suggested that NoZebra could be the problem, so we turned Zebra on, and all our problems disappeared.
This was with 3.00.05, and we had some different issues to what you describing, but I would still suggest trying turning on Zebra. It seems to be a far better search engine, and better supported as of 3.00.05.
Braedon Vickers
-- TechnologyWise Ltd, Tauranga, NZ braedon@tw.co.nz www.technologywise.co.nz ph: +64 (0)7 571 1060 fax: +64 (0)7 571 1061
_______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
-- View this message in context: http://old.nabble.com/Problems-with-OPAC-tp27530296p27539192.html Sent from the Koha - Discuss mailing list archive at Nabble.com.
On 11/02/10 11:27, PasiK wrote:
How can we make the switch to Zebra? Besides changing the system parameter what else needs to be done?
You need to setup and start the Zebra daemons, index all your current inventory, and set up a cron job to automatically update the index. What OS and install type(dev/standard) are you on? For an Ubuntu standard install, do the following. Adjust to your system if different. Setup the Daemons: sudo aptitude update sudo aptitude installidzebra-2.0 sudo ln -s /usr/share/koha/bin/koha-zebra-ctl.sh/etc/init.d/koha-zebra-daemon sudo update-rc.d koha-zebra-daemon defaults sudo /etc/init.d/koha-zebra-daemon start sudo ln -s /usr/share/koha/bin/koha-zebraqueue-ctl.sh/etc/init.d/koha-zebraqueue-daemon sudo update-rc.d koha-zebraqueue-daemon defaults sudo /etc/init.d/koha-zebraqueue-daemon start Make sure you have set the following environmental variables so you can run the scripts: export KOHA_CONF=/etc/koha/koha-conf.xmlexport PERL5LIB=/usr/share/koha/lib I put them in /etc/enviroment, but there are a few other options also. This command should do the initial index: perl -I /usr/share/koha/lib /usr/share/koha/bin/migration_tools/rebuild_zebra.pl -v -b -w The cron job to do regular index updates should be set up for the koha user, assuming you have. To open a crontab editor for the koha user: sudo -u koha crontab-e The following lines are what I have in my crontab: # ZEBRA INDEX UPDATES with -z option, incremental index updates throughout the day # for both authorities and bibs */10 * * * * /usr/share/koha/bin/migration_tools/rebuild_zebra.pl -b -a -z> /dev/null Once you have done all that, you should be able to switch the preference over in Koha. Note that I have only tested this on Ubuntu standard install of 3.00.05. Hope that helps, Braedon Vickers -- TechnologyWise Ltd, Tauranga, NZ braedon@tw.co.nz www.technologywise.co.nz ph: +64 (0)7 571 1060 fax: +64 (0)7 571 1061
Our system is running Slackware, so the process will be a bit different. This was most helpful, however, and I'm sure we'll be able to work it from here. Thanks a lot :) Braedon Vickers wrote:
On 11/02/10 11:27, PasiK wrote:
How can we make the switch to Zebra? Besides changing the system parameter what else needs to be done?
You need to setup and start the Zebra daemons, index all your current inventory, and set up a cron job to automatically update the index.
What OS and install type(dev/standard) are you on?
For an Ubuntu standard install, do the following. Adjust to your system if different.
Setup the Daemons:
sudo aptitude update
sudo aptitude installidzebra-2.0 sudo ln -s /usr/share/koha/bin/koha-zebra-ctl.sh/etc/init.d/koha-zebra-daemon sudo update-rc.d koha-zebra-daemon defaults sudo /etc/init.d/koha-zebra-daemon start
sudo ln -s /usr/share/koha/bin/koha-zebraqueue-ctl.sh/etc/init.d/koha-zebraqueue-daemon sudo update-rc.d koha-zebraqueue-daemon defaults sudo /etc/init.d/koha-zebraqueue-daemon start
Make sure you have set the following environmental variables so you can run the scripts:
export KOHA_CONF=/etc/koha/koha-conf.xmlexport PERL5LIB=/usr/share/koha/lib
I put them in /etc/enviroment, but there are a few other options also.
This command should do the initial index:
perl -I /usr/share/koha/lib /usr/share/koha/bin/migration_tools/rebuild_zebra.pl -v -b -w
The cron job to do regular index updates should be set up for the koha user, assuming you have. To open a crontab editor for the koha user:
sudo -u koha crontab-e
The following lines are what I have in my crontab:
# ZEBRA INDEX UPDATES with -z option, incremental index updates throughout the day # for both authorities and bibs */10 * * * * /usr/share/koha/bin/migration_tools/rebuild_zebra.pl -b -a -z> /dev/null
Once you have done all that, you should be able to switch the preference over in Koha.
Note that I have only tested this on Ubuntu standard install of 3.00.05.
Hope that helps,
Braedon Vickers
-- TechnologyWise Ltd, Tauranga, NZ braedon@tw.co.nz www.technologywise.co.nz ph: +64 (0)7 571 1060 fax: +64 (0)7 571 1061
_______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
-- View this message in context: http://old.nabble.com/Problems-with-OPAC-tp27530296p27544559.html Sent from the Koha - Discuss mailing list archive at Nabble.com.
I can't get the zebra-daemons to start, this is what they say with sh -x: koha-zebra-ctl.sh: + USER=__KOHA_USER__ + GROUP=__KOHA_GROUP__ + DBNAME=__DB_NAME__ + NAME=koha-zebra-ctl.__DB_NAME__ + LOGDIR=__LOG_DIR__ + ERRLOG=__LOG_DIR__/koha-zebradaemon.err + STDOUT=__LOG_DIR__/koha-zebradaemon.log + OUTPUT=__LOG_DIR__/koha-zebradaemon-output.log + KOHA_CONF=__KOHA_CONF_DIR__/koha-conf.xml + RUNDIR=__ZEBRA_RUN_DIR__ + LOCKDIR=__ZEBRA_LOCK_DIR__ + ZEBRASRV=__PATH_TO_ZEBRA__/zebrasrv + test -f __PATH_TO_ZEBRA__/zebrasrv + exit 0 koha-zebraqueue-ctl.sh: + USER=__KOHA_USER__ + GROUP=__KOHA_GROUP__ + DBNAME=__DB_NAME__ + NAME=koha-zebraqueue-ctl-__DB_NAME__ + LOGDIR=__LOG_DIR__ + PERL5LIB=__PERL_MODULE_DIR__ + KOHA_CONF=__KOHA_CONF_DIR__/koha-conf.xml + ERRLOG=__LOG_DIR__/koha-zebraqueue.err + STDOUT=__LOG_DIR__/koha-zebraqueue.log + OUTPUT=__LOG_DIR__/koha-zebraqueue-output.log + export KOHA_CONF + export PERL5LIB + ZEBRAQUEUE=__SCRIPT_DIR__/zebraqueue_daemon.pl + test -f __SCRIPT_DIR__/zebraqueue_daemon.pl + exit 0 Obviously something wrong with the configuration, but what configuration where? Braedon Vickers wrote:
On 11/02/10 11:27, PasiK wrote:
How can we make the switch to Zebra? Besides changing the system parameter what else needs to be done?
You need to setup and start the Zebra daemons, index all your current inventory, and set up a cron job to automatically update the index.
What OS and install type(dev/standard) are you on?
For an Ubuntu standard install, do the following. Adjust to your system if different.
Setup the Daemons:
sudo aptitude update
sudo aptitude installidzebra-2.0 sudo ln -s /usr/share/koha/bin/koha-zebra-ctl.sh/etc/init.d/koha-zebra-daemon sudo update-rc.d koha-zebra-daemon defaults sudo /etc/init.d/koha-zebra-daemon start
sudo ln -s /usr/share/koha/bin/koha-zebraqueue-ctl.sh/etc/init.d/koha-zebraqueue-daemon sudo update-rc.d koha-zebraqueue-daemon defaults sudo /etc/init.d/koha-zebraqueue-daemon start
Make sure you have set the following environmental variables so you can run the scripts:
export KOHA_CONF=/etc/koha/koha-conf.xmlexport PERL5LIB=/usr/share/koha/lib
I put them in /etc/enviroment, but there are a few other options also.
This command should do the initial index:
perl -I /usr/share/koha/lib /usr/share/koha/bin/migration_tools/rebuild_zebra.pl -v -b -w
The cron job to do regular index updates should be set up for the koha user, assuming you have. To open a crontab editor for the koha user:
sudo -u koha crontab-e
The following lines are what I have in my crontab:
# ZEBRA INDEX UPDATES with -z option, incremental index updates throughout the day # for both authorities and bibs */10 * * * * /usr/share/koha/bin/migration_tools/rebuild_zebra.pl -b -a -z> /dev/null
Once you have done all that, you should be able to switch the preference over in Koha.
Note that I have only tested this on Ubuntu standard install of 3.00.05.
Hope that helps,
Braedon Vickers
-- TechnologyWise Ltd, Tauranga, NZ braedon@tw.co.nz www.technologywise.co.nz ph: +64 (0)7 571 1060 fax: +64 (0)7 571 1061
_______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
-- View this message in context: http://old.nabble.com/Problems-with-OPAC-tp27530296p27594000.html Sent from the Koha - Discuss mailing list archive at Nabble.com.
On 16/02/10 02:46, PasiK wrote:
I can't get the zebra-daemons to start, this is what they say with sh -x:
koha-zebra-ctl.sh:
+ USER=__KOHA_USER__ + GROUP=__KOHA_GROUP__ + DBNAME=__DB_NAME__ + NAME=koha-zebra-ctl.__DB_NAME__ + LOGDIR=__LOG_DIR__ + ERRLOG=__LOG_DIR__/koha-zebradaemon.err + STDOUT=__LOG_DIR__/koha-zebradaemon.log + OUTPUT=__LOG_DIR__/koha-zebradaemon-output.log + KOHA_CONF=__KOHA_CONF_DIR__/koha-conf.xml + RUNDIR=__ZEBRA_RUN_DIR__ + LOCKDIR=__ZEBRA_LOCK_DIR__ + ZEBRASRV=__PATH_TO_ZEBRA__/zebrasrv + test -f __PATH_TO_ZEBRA__/zebrasrv + exit 0
koha-zebraqueue-ctl.sh:
+ USER=__KOHA_USER__ + GROUP=__KOHA_GROUP__ + DBNAME=__DB_NAME__ + NAME=koha-zebraqueue-ctl-__DB_NAME__ + LOGDIR=__LOG_DIR__ + PERL5LIB=__PERL_MODULE_DIR__ + KOHA_CONF=__KOHA_CONF_DIR__/koha-conf.xml + ERRLOG=__LOG_DIR__/koha-zebraqueue.err + STDOUT=__LOG_DIR__/koha-zebraqueue.log + OUTPUT=__LOG_DIR__/koha-zebraqueue-output.log + export KOHA_CONF + export PERL5LIB + ZEBRAQUEUE=__SCRIPT_DIR__/zebraqueue_daemon.pl + test -f __SCRIPT_DIR__/zebraqueue_daemon.pl + exit 0
Obviously something wrong with the configuration, but what configuration where?
It looks to me like you have not build the Zebra config files when you originally ran Makefile.pl, so you instead have the templates. Apologies, i forgot that was a possibility. Each of the __SOMETHING__ strings needs to be replaced with the correct value for your install. Someone else may be able to tell you how to do this with a script. Otherwise, as an example, the start sections of one set of mykoha-zebra-ctl.sh and koha-zebraqueue-ctl.sh are: USER=koha GROUP=koha DBNAME=koha NAME=koha-zebra-ctl.$DBNAME LOGDIR=/var/log/koha ERRLOG=$LOGDIR/koha-zebradaemon.err STDOUT=$LOGDIR/koha-zebradaemon.log OUTPUT=$LOGDIR/koha-zebradaemon-output.log KOHA_CONF=/etc/koha/koha-conf.xml RUNDIR=/var/run/koha/zebradb LOCKDIR=/var/lock/koha/zebradb # you may need to change this depending on where zebrasrv is installed ZEBRASRV=/usr/bin/zebrasrv ZEBRAOPTIONS="-v none,fatal,warn" USER=koha GROUP=koha DBNAME=koha NAME=koha-zebraqueue-ctl-$DBNAME LOGDIR=/var/log/koha PERL5LIB=/usr/share/koha/lib KOHA_CONF=/etc/koha/koha-conf.xml ERRLOG=$LOGDIR/koha-zebraqueue.err STDOUT=$LOGDIR/koha-zebraqueue.log OUTPUT=$LOGDIR/koha-zebraqueue-output.log export KOHA_CONF export PERL5LIB ZEBRAQUEUE=/usr/share/koha/bin/zebraqueue_daemon.pl Try just fixing those two files, but there may be more that you need to do. I have never turned Zebra on from no configuration. Hopefully someone with more knowledge of the configuration system can chime in here. Braedon Vickers -- TechnologyWise Ltd, Tauranga, NZ braedon@tw.co.nz www.technologywise.co.nz ph: +64 (0)7 571 1060 fax: +64 (0)7 571 1061
Ok, not that's sorted, but I'm still stuck. koha-zebra-ctl.sh wants a command called 'daemon', but Slackware doesn't have this command. What does it do and where can I get it? Braedon Vickers wrote:
On 16/02/10 02:46, PasiK wrote:
I can't get the zebra-daemons to start, this is what they say with sh -x:
koha-zebra-ctl.sh:
+ USER=__KOHA_USER__ + GROUP=__KOHA_GROUP__ + DBNAME=__DB_NAME__ + NAME=koha-zebra-ctl.__DB_NAME__ + LOGDIR=__LOG_DIR__ + ERRLOG=__LOG_DIR__/koha-zebradaemon.err + STDOUT=__LOG_DIR__/koha-zebradaemon.log + OUTPUT=__LOG_DIR__/koha-zebradaemon-output.log + KOHA_CONF=__KOHA_CONF_DIR__/koha-conf.xml + RUNDIR=__ZEBRA_RUN_DIR__ + LOCKDIR=__ZEBRA_LOCK_DIR__ + ZEBRASRV=__PATH_TO_ZEBRA__/zebrasrv + test -f __PATH_TO_ZEBRA__/zebrasrv + exit 0
koha-zebraqueue-ctl.sh:
+ USER=__KOHA_USER__ + GROUP=__KOHA_GROUP__ + DBNAME=__DB_NAME__ + NAME=koha-zebraqueue-ctl-__DB_NAME__ + LOGDIR=__LOG_DIR__ + PERL5LIB=__PERL_MODULE_DIR__ + KOHA_CONF=__KOHA_CONF_DIR__/koha-conf.xml + ERRLOG=__LOG_DIR__/koha-zebraqueue.err + STDOUT=__LOG_DIR__/koha-zebraqueue.log + OUTPUT=__LOG_DIR__/koha-zebraqueue-output.log + export KOHA_CONF + export PERL5LIB + ZEBRAQUEUE=__SCRIPT_DIR__/zebraqueue_daemon.pl + test -f __SCRIPT_DIR__/zebraqueue_daemon.pl + exit 0
Obviously something wrong with the configuration, but what configuration where?
It looks to me like you have not build the Zebra config files when you originally ran Makefile.pl, so you instead have the templates. Apologies, i forgot that was a possibility. Each of the __SOMETHING__ strings needs to be replaced with the correct value for your install. Someone else may be able to tell you how to do this with a script. Otherwise, as an example, the start sections of one set of mykoha-zebra-ctl.sh and koha-zebraqueue-ctl.sh are:
USER=koha GROUP=koha DBNAME=koha NAME=koha-zebra-ctl.$DBNAME LOGDIR=/var/log/koha ERRLOG=$LOGDIR/koha-zebradaemon.err STDOUT=$LOGDIR/koha-zebradaemon.log OUTPUT=$LOGDIR/koha-zebradaemon-output.log KOHA_CONF=/etc/koha/koha-conf.xml RUNDIR=/var/run/koha/zebradb LOCKDIR=/var/lock/koha/zebradb # you may need to change this depending on where zebrasrv is installed ZEBRASRV=/usr/bin/zebrasrv ZEBRAOPTIONS="-v none,fatal,warn"
USER=koha GROUP=koha DBNAME=koha NAME=koha-zebraqueue-ctl-$DBNAME LOGDIR=/var/log/koha PERL5LIB=/usr/share/koha/lib KOHA_CONF=/etc/koha/koha-conf.xml ERRLOG=$LOGDIR/koha-zebraqueue.err STDOUT=$LOGDIR/koha-zebraqueue.log OUTPUT=$LOGDIR/koha-zebraqueue-output.log export KOHA_CONF export PERL5LIB ZEBRAQUEUE=/usr/share/koha/bin/zebraqueue_daemon.pl
Try just fixing those two files, but there may be more that you need to do. I have never turned Zebra on from no configuration. Hopefully someone with more knowledge of the configuration system can chime in here.
Braedon Vickers
-- TechnologyWise Ltd, Tauranga, NZ braedon@tw.co.nz www.technologywise.co.nz ph: +64 (0)7 571 1060 fax: +64 (0)7 571 1061
_______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
-- View this message in context: http://old.nabble.com/Problems-with-OPAC-tp27530296p27609253.html Sent from the Koha - Discuss mailing list archive at Nabble.com.
On 16/02/10 14:37, PasiK wrote:
Ok, not that's sorted, but I'm still stuck. koha-zebra-ctl.sh wants a command called 'daemon', but Slackware doesn't have this command. What does it do and where can I get it?
Its a debianism doc on http://www.libslack.org/daemon/ You'll just want to start your zebra servers similarly to the other daemons in the Slack rc scripts. Cheers Colin
Braedon Vickers wrote:
On 16/02/10 02:46, PasiK wrote:
I can't get the zebra-daemons to start, this is what they say with sh -x:
koha-zebra-ctl.sh:
+ USER=__KOHA_USER__ + GROUP=__KOHA_GROUP__ + DBNAME=__DB_NAME__ + NAME=koha-zebra-ctl.__DB_NAME__ + LOGDIR=__LOG_DIR__ + ERRLOG=__LOG_DIR__/koha-zebradaemon.err + STDOUT=__LOG_DIR__/koha-zebradaemon.log + OUTPUT=__LOG_DIR__/koha-zebradaemon-output.log + KOHA_CONF=__KOHA_CONF_DIR__/koha-conf.xml + RUNDIR=__ZEBRA_RUN_DIR__ + LOCKDIR=__ZEBRA_LOCK_DIR__ + ZEBRASRV=__PATH_TO_ZEBRA__/zebrasrv + test -f __PATH_TO_ZEBRA__/zebrasrv + exit 0
koha-zebraqueue-ctl.sh:
+ USER=__KOHA_USER__ + GROUP=__KOHA_GROUP__ + DBNAME=__DB_NAME__ + NAME=koha-zebraqueue-ctl-__DB_NAME__ + LOGDIR=__LOG_DIR__ + PERL5LIB=__PERL_MODULE_DIR__ + KOHA_CONF=__KOHA_CONF_DIR__/koha-conf.xml + ERRLOG=__LOG_DIR__/koha-zebraqueue.err + STDOUT=__LOG_DIR__/koha-zebraqueue.log + OUTPUT=__LOG_DIR__/koha-zebraqueue-output.log + export KOHA_CONF + export PERL5LIB + ZEBRAQUEUE=__SCRIPT_DIR__/zebraqueue_daemon.pl + test -f __SCRIPT_DIR__/zebraqueue_daemon.pl + exit 0
Obviously something wrong with the configuration, but what configuration where?
It looks to me like you have not build the Zebra config files when you originally ran Makefile.pl, so you instead have the templates. Apologies, i forgot that was a possibility. Each of the __SOMETHING__ strings needs to be replaced with the correct value for your install. Someone else may be able to tell you how to do this with a script. Otherwise, as an example, the start sections of one set of mykoha-zebra-ctl.sh and koha-zebraqueue-ctl.sh are:
USER=koha GROUP=koha DBNAME=koha NAME=koha-zebra-ctl.$DBNAME LOGDIR=/var/log/koha ERRLOG=$LOGDIR/koha-zebradaemon.err STDOUT=$LOGDIR/koha-zebradaemon.log OUTPUT=$LOGDIR/koha-zebradaemon-output.log KOHA_CONF=/etc/koha/koha-conf.xml RUNDIR=/var/run/koha/zebradb LOCKDIR=/var/lock/koha/zebradb # you may need to change this depending on where zebrasrv is installed ZEBRASRV=/usr/bin/zebrasrv ZEBRAOPTIONS="-v none,fatal,warn"
USER=koha GROUP=koha DBNAME=koha NAME=koha-zebraqueue-ctl-$DBNAME LOGDIR=/var/log/koha PERL5LIB=/usr/share/koha/lib KOHA_CONF=/etc/koha/koha-conf.xml ERRLOG=$LOGDIR/koha-zebraqueue.err STDOUT=$LOGDIR/koha-zebraqueue.log OUTPUT=$LOGDIR/koha-zebraqueue-output.log export KOHA_CONF export PERL5LIB ZEBRAQUEUE=/usr/share/koha/bin/zebraqueue_daemon.pl
Try just fixing those two files, but there may be more that you need to do. I have never turned Zebra on from no configuration. Hopefully someone with more knowledge of the configuration system can chime in here.
Braedon Vickers
-- TechnologyWise Ltd, Tauranga, NZ braedon@tw.co.nz www.technologywise.co.nz ph: +64 (0)7 571 1060 fax: +64 (0)7 571 1061
_______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
-- Colin Campbell Chief Software Engineer, PTFS Europe Limited Content Management and Library Solutions +44 (0) 208 366 1295 (phone) +44 (0) 7759 633626 (mobile) colin.campbell@ptfs-europe.com skype: colin_campbell2 http://www.ptfs-europe.com
23:12:16-16/02 [fatal] Element <xslt stylesheet="__INTRANET_TMPL_DIR__/prog/en/xslt/MARC21slim2DC.xsl"/>: could not locate stylesheet '__INTRANET_TMPL_DIR__/prog/en/xslt/MARC21slim2DC.xsl' in config /etc/koha/koha-conf.xml So where is this then, it's not in /etc/koha/koha-conf.xml like the error message says? Colin Campbell-5 wrote:
On 16/02/10 14:37, PasiK wrote:
Ok, not that's sorted, but I'm still stuck. koha-zebra-ctl.sh wants a command called 'daemon', but Slackware doesn't have this command. What does it do and where can I get it?
Its a debianism doc on http://www.libslack.org/daemon/ You'll just want to start your zebra servers similarly to the other daemons in the Slack rc scripts. Cheers Colin
Braedon Vickers wrote:
On 16/02/10 02:46, PasiK wrote:
I can't get the zebra-daemons to start, this is what they say with sh -x:
koha-zebra-ctl.sh:
+ USER=__KOHA_USER__ + GROUP=__KOHA_GROUP__ + DBNAME=__DB_NAME__ + NAME=koha-zebra-ctl.__DB_NAME__ + LOGDIR=__LOG_DIR__ + ERRLOG=__LOG_DIR__/koha-zebradaemon.err + STDOUT=__LOG_DIR__/koha-zebradaemon.log + OUTPUT=__LOG_DIR__/koha-zebradaemon-output.log + KOHA_CONF=__KOHA_CONF_DIR__/koha-conf.xml + RUNDIR=__ZEBRA_RUN_DIR__ + LOCKDIR=__ZEBRA_LOCK_DIR__ + ZEBRASRV=__PATH_TO_ZEBRA__/zebrasrv + test -f __PATH_TO_ZEBRA__/zebrasrv + exit 0
koha-zebraqueue-ctl.sh:
+ USER=__KOHA_USER__ + GROUP=__KOHA_GROUP__ + DBNAME=__DB_NAME__ + NAME=koha-zebraqueue-ctl-__DB_NAME__ + LOGDIR=__LOG_DIR__ + PERL5LIB=__PERL_MODULE_DIR__ + KOHA_CONF=__KOHA_CONF_DIR__/koha-conf.xml + ERRLOG=__LOG_DIR__/koha-zebraqueue.err + STDOUT=__LOG_DIR__/koha-zebraqueue.log + OUTPUT=__LOG_DIR__/koha-zebraqueue-output.log + export KOHA_CONF + export PERL5LIB + ZEBRAQUEUE=__SCRIPT_DIR__/zebraqueue_daemon.pl + test -f __SCRIPT_DIR__/zebraqueue_daemon.pl + exit 0
Obviously something wrong with the configuration, but what configuration where?
It looks to me like you have not build the Zebra config files when you originally ran Makefile.pl, so you instead have the templates. Apologies, i forgot that was a possibility. Each of the __SOMETHING__ strings needs to be replaced with the correct value for your install. Someone else may be able to tell you how to do this with a script. Otherwise, as an example, the start sections of one set of mykoha-zebra-ctl.sh and koha-zebraqueue-ctl.sh are:
USER=koha GROUP=koha DBNAME=koha NAME=koha-zebra-ctl.$DBNAME LOGDIR=/var/log/koha ERRLOG=$LOGDIR/koha-zebradaemon.err STDOUT=$LOGDIR/koha-zebradaemon.log OUTPUT=$LOGDIR/koha-zebradaemon-output.log KOHA_CONF=/etc/koha/koha-conf.xml RUNDIR=/var/run/koha/zebradb LOCKDIR=/var/lock/koha/zebradb # you may need to change this depending on where zebrasrv is installed ZEBRASRV=/usr/bin/zebrasrv ZEBRAOPTIONS="-v none,fatal,warn"
USER=koha GROUP=koha DBNAME=koha NAME=koha-zebraqueue-ctl-$DBNAME LOGDIR=/var/log/koha PERL5LIB=/usr/share/koha/lib KOHA_CONF=/etc/koha/koha-conf.xml ERRLOG=$LOGDIR/koha-zebraqueue.err STDOUT=$LOGDIR/koha-zebraqueue.log OUTPUT=$LOGDIR/koha-zebraqueue-output.log export KOHA_CONF export PERL5LIB ZEBRAQUEUE=/usr/share/koha/bin/zebraqueue_daemon.pl
Try just fixing those two files, but there may be more that you need to do. I have never turned Zebra on from no configuration. Hopefully someone with more knowledge of the configuration system can chime in here.
Braedon Vickers
-- TechnologyWise Ltd, Tauranga, NZ braedon@tw.co.nz www.technologywise.co.nz ph: +64 (0)7 571 1060 fax: +64 (0)7 571 1061
_______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
-- Colin Campbell Chief Software Engineer, PTFS Europe Limited Content Management and Library Solutions +44 (0) 208 366 1295 (phone) +44 (0) 7759 633626 (mobile) colin.campbell@ptfs-europe.com skype: colin_campbell2
http://www.ptfs-europe.com _______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
-- View this message in context: http://old.nabble.com/Problems-with-OPAC-tp27530296p27615074.html Sent from the Koha - Discuss mailing list archive at Nabble.com.
Found them, they're in files under /etc/koha/zebradb, but there are a couple of variables that I have no idea how to set: __ZEBRA_SRU_HOST__:__ZEBRA_SRU_AUTHORITIES_PORT__ __ZEBRA_DATA_DIR__ __ZEBRA_USER__ What would be the correct values for these? PasiK wrote:
23:12:16-16/02 [fatal] Element <xslt stylesheet="__INTRANET_TMPL_DIR__/prog/en/xslt/MARC21slim2DC.xsl"/>: could not locate stylesheet '__INTRANET_TMPL_DIR__/prog/en/xslt/MARC21slim2DC.xsl' in config /etc/koha/koha-conf.xml
So where is this then, it's not in /etc/koha/koha-conf.xml like the error message says?
Colin Campbell-5 wrote:
On 16/02/10 14:37, PasiK wrote:
Ok, not that's sorted, but I'm still stuck. koha-zebra-ctl.sh wants a command called 'daemon', but Slackware doesn't have this command. What does it do and where can I get it?
Its a debianism doc on http://www.libslack.org/daemon/ You'll just want to start your zebra servers similarly to the other daemons in the Slack rc scripts. Cheers Colin
Braedon Vickers wrote:
On 16/02/10 02:46, PasiK wrote:
I can't get the zebra-daemons to start, this is what they say with sh -x:
koha-zebra-ctl.sh:
+ USER=__KOHA_USER__ + GROUP=__KOHA_GROUP__ + DBNAME=__DB_NAME__ + NAME=koha-zebra-ctl.__DB_NAME__ + LOGDIR=__LOG_DIR__ + ERRLOG=__LOG_DIR__/koha-zebradaemon.err + STDOUT=__LOG_DIR__/koha-zebradaemon.log + OUTPUT=__LOG_DIR__/koha-zebradaemon-output.log + KOHA_CONF=__KOHA_CONF_DIR__/koha-conf.xml + RUNDIR=__ZEBRA_RUN_DIR__ + LOCKDIR=__ZEBRA_LOCK_DIR__ + ZEBRASRV=__PATH_TO_ZEBRA__/zebrasrv + test -f __PATH_TO_ZEBRA__/zebrasrv + exit 0
koha-zebraqueue-ctl.sh:
+ USER=__KOHA_USER__ + GROUP=__KOHA_GROUP__ + DBNAME=__DB_NAME__ + NAME=koha-zebraqueue-ctl-__DB_NAME__ + LOGDIR=__LOG_DIR__ + PERL5LIB=__PERL_MODULE_DIR__ + KOHA_CONF=__KOHA_CONF_DIR__/koha-conf.xml + ERRLOG=__LOG_DIR__/koha-zebraqueue.err + STDOUT=__LOG_DIR__/koha-zebraqueue.log + OUTPUT=__LOG_DIR__/koha-zebraqueue-output.log + export KOHA_CONF + export PERL5LIB + ZEBRAQUEUE=__SCRIPT_DIR__/zebraqueue_daemon.pl + test -f __SCRIPT_DIR__/zebraqueue_daemon.pl + exit 0
Obviously something wrong with the configuration, but what configuration where?
It looks to me like you have not build the Zebra config files when you originally ran Makefile.pl, so you instead have the templates. Apologies, i forgot that was a possibility. Each of the __SOMETHING__ strings needs to be replaced with the correct value for your install. Someone else may be able to tell you how to do this with a script. Otherwise, as an example, the start sections of one set of mykoha-zebra-ctl.sh and koha-zebraqueue-ctl.sh are:
USER=koha GROUP=koha DBNAME=koha NAME=koha-zebra-ctl.$DBNAME LOGDIR=/var/log/koha ERRLOG=$LOGDIR/koha-zebradaemon.err STDOUT=$LOGDIR/koha-zebradaemon.log OUTPUT=$LOGDIR/koha-zebradaemon-output.log KOHA_CONF=/etc/koha/koha-conf.xml RUNDIR=/var/run/koha/zebradb LOCKDIR=/var/lock/koha/zebradb # you may need to change this depending on where zebrasrv is installed ZEBRASRV=/usr/bin/zebrasrv ZEBRAOPTIONS="-v none,fatal,warn"
USER=koha GROUP=koha DBNAME=koha NAME=koha-zebraqueue-ctl-$DBNAME LOGDIR=/var/log/koha PERL5LIB=/usr/share/koha/lib KOHA_CONF=/etc/koha/koha-conf.xml ERRLOG=$LOGDIR/koha-zebraqueue.err STDOUT=$LOGDIR/koha-zebraqueue.log OUTPUT=$LOGDIR/koha-zebraqueue-output.log export KOHA_CONF export PERL5LIB ZEBRAQUEUE=/usr/share/koha/bin/zebraqueue_daemon.pl
Try just fixing those two files, but there may be more that you need to do. I have never turned Zebra on from no configuration. Hopefully someone with more knowledge of the configuration system can chime in here.
Braedon Vickers
-- TechnologyWise Ltd, Tauranga, NZ braedon@tw.co.nz www.technologywise.co.nz ph: +64 (0)7 571 1060 fax: +64 (0)7 571 1061
_______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
-- Colin Campbell Chief Software Engineer, PTFS Europe Limited Content Management and Library Solutions +44 (0) 208 366 1295 (phone) +44 (0) 7759 633626 (mobile) colin.campbell@ptfs-europe.com skype: colin_campbell2
http://www.ptfs-europe.com _______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
-- View this message in context: http://old.nabble.com/Problems-with-OPAC-tp27530296p27615274.html Sent from the Koha - Discuss mailing list archive at Nabble.com.
PasiK <pasi.korkalo@oululainen.com>
I can't get the zebra-daemons to start, this is what they say with sh -x:
koha-zebra-ctl.sh:
+ USER=__KOHA_USER__ + GROUP=__KOHA_GROUP__ + DBNAME=__DB_NAME__ + NAME=koha-zebra-ctl.__DB_NAME__ + LOGDIR=__LOG_DIR__ [...] Obviously something wrong with the configuration, but what configuration where?
All of those __VARIABLE__ things are usually replaced at install time by rewrite-config.PL - that hasn't happened there, probably because the system was originally installed without zebra. Either rebuild with the new options, try to run rewrite-config.PL or edit the sh files directly and put in the right values. The defaults and explanations can be seen in Makefile.PL in the koha files. Hope that helps, -- MJ Ray (slef) Webmaster and LMS developer at | software www.software.coop http://mjr.towers.org.uk | .... co IMO only: see http://mjr.towers.org.uk/email.html | .... op
On Wed, Feb 10, 2010 at 7:15 AM, PasiK <pasi.korkalo@oululainen.com> wrote:
We have a number of problems with OPAC:
1) Advanced search always searches with “and”, how can we get "or" and "not" to work too?
Have you clicked the link to show 'MORE OPTIONS' at the bottom of the Advanced Search page? That brings up the Boolean options.
2) Limiting searches by item type doesn't work. The result is always: "No results match your search for kw,wrdl: bachmc-itemtype:CDAU". There are matching records in the database.
I think this may have to do with the version you're using (which you should include in your emails). In the current version of HEAD I had no problem with this. So if you can tell us what version we might be able to help more.
3) Sorting search results only works for "title". We need it to work for "author" and "dates" too.
This is something I'm seeing too - so I'm going to report a bug for this. This doesn't help you right now, but at least we can resolve it soon.
Something's obviously seriously wrong with the search in this system. Any ideas? -- View this message in context: http://old.nabble.com/Problems-with-OPAC-tp27530296p27530296.html Sent from the Koha - Discuss mailing list archive at Nabble.com.
_______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
participants (6)
-
Braedon Vickers -
Colin Campbell -
Magnus Enger -
MJ Ray -
Nicole Engard -
PasiK