[Koha-devel] How do I disable PazPar2 in Koha 3 Beta 2?

Ricardo Dias Marques lists at ricmarques.net
Wed May 14 12:59:26 CEST 2008


Hi Galen,

First of all, thank you very much for trying to help. My comments follow inline:

On Tue, May 13, 2008, Galen Charlton <galen.charlton at liblime.com> wrote:

>  >  <!-- Settings for special biblio server instance for PazPar2.
>  >      Because PazPar2 only connects to a Z39.50 server using TCP/IP,
>  >      it cannot use the Unix-domain socket that biblioserver uses.
>  >      Therefore, a custom server is defined. -->
>  >  <listen id="mergeserver">tcp:@:11001</listen>
>  >  <server id="mergeserver"  listenref="mergeserver">
>  >     <directory>/var/lib/koha/zebradb/biblios</directory>
>  >     <config>/etc/koha/zebradb/zebra-biblios.cfg</config>
>  >     <cql2rpn>/etc/koha/zebradb/pqf.properties</cql2rpn>
>  >  </server>
>
>  Comment both of these sections out and restart the Zebra daemon.

OK. I have commented the above lines and restarted the Zebra daemon. I
have restarted it by running the following commands:

# ps -ef | grep zebrasrv
root     22046 22020  0 11:03 pts/2    00:00:00 /usr/bin/zebrasrv -f
/etc/koha/koha-conf.xml
root     22178 22069  0 11:20 pts/0    00:00:00 grep zebrasrv

# kill 22046

# /usr/bin/zebrasrv -f /etc/koha/koha-conf.xml


>  you haven't installed the pazpar2 daemon from IndexData, great, if
>  not, stop the pazpar2 process.

OK. The pazpar2 process is NOT running as far as I can tell:

# ps -ef | grep pazpar2
root     22182 22069  0 11:21 pts/0    00:00:00 grep pazpar2


>  >   <pazpar2url>http://localhost:11002/search.pz2</pazpar2url>
>
>  This can be left as is.

OK. I left that line alone.


>  The use of PazPar2 is invoked only if a syspref call OPACGroupResults
>  exists and has a true value - since the underlying feature is
>  experimental, that syspref is not turned on by default.  [...]

OK. Thanks for the explanation. I have searched for that
OPACGroupResults in the "System Preferences" web page at:

http://hostname:8080/cgi-bin/koha/admin/systempreferences.pl

... but I could NOT find it.

A search for "results" in that page returns the following preferences:

maxItemsInSearchResults
numSearchResults
OPACItemsResultsDisplay
OPACnumSearchResults
SearchMyLibraryFirst
sortbynonfiling


>  * are the records being indexed, either by using rebuild_zebra.pl -a
>  -b -z in a crontab or by running zebraqueue_daemon.pl?

I tried both options. It doesn't seem to make any difference.


>  * if so, are there any interesting messages in the Zebra daemon log?

Since I'm running the Zebra daemon with the command -
/usr/bin/zebrasrv -f /etc/koha/koha-conf.xml - and I'm NOT running it
in background, the output is coming out directly to the console, in
the SSH (Secure Shell) session.

Going to the OPAC:

http://hostname/cgi-bin/koha/opac-main.pl

... and by leaving selected the default option ("Library Catalog") of
the "Search" dropdown list and searching by any string (e.g: Ricardo),
I get the following output in the SSH session (Error 114):

11:28:31-14/05 zebrasrv(14) [session] Session - OK 14
unix:/var/run/koha/zebradb/bibliosocket 22202
11:28:31-14/05 zebrasrv(14) [request] Auth idPass kohauser -
11:28:31-14/05 zebrasrv(14) [request] Init OK - ID:81/81
Name:ZOOM-C/YAZ Version:1.133/3.0.6
11:28:31-14/05 zebrasrv(14) [request] Search biblios ERROR 114 1 1+0
RPN @attrset Bib-1 @or @or @or @or @or @attr 1=36 @attr 4=1 @attr 6=3
@attr 9=32 @attr 2=102 Ricardo @attr 1=4 @attr 4=1 @attr 6=3 @attr
9=28 @attr 2=102 Ricardo @attr 1=4 @attr 4=1 @attr 9=26 @attr 2=102
Ricardo @attr 4=6 @attr 5=103 @attr 9=16 @attr 2=102 Ricardo @attr 4=6
@attr 5=1 @attr 9=14 @attr 2=102 "ricardo? " @attr 4=6 @attr 9=14
@attr 2=102 Ricardo
11:28:31-14/05 zebrasrv(14) [session] Connection closed by client


If I change the default option from "Library Catalog" to "Author" and
search by "Ricardo" (without the quotes), then I do NOT get an Error
114, but no results appear in the web page.

The Zebra log says this:

11:33:01-14/05 zebrasrv(17) [session] Session - OK 17
unix:/var/run/koha/zebradb/bibliosocket 22214
11:33:01-14/05 zebrasrv(17) [request] Auth idPass kohauser -
11:33:01-14/05 zebrasrv(17) [request] Init OK - ID:81/81
Name:ZOOM-C/YAZ Version:1.133/3.0.6
11:33:01-14/05 zebrasrv(17) [request] Search biblios OK 2 1 1+0 RPN
@attrset Bib-1 @or @or @attr 5=1 @attr 1=1003 @attr 4=1 @attr 6=3
@attr 9=32 @attr 2=102 Ricardo @attr 5=1 @attr 1=1003 @attr 4=1 @attr
9=26 @attr 2=102 Ricardo @attr 5=1 @attr 1=1003 @attr 4=6 @attr 9=26
@attr 2=102 Ricardo
11:33:01-14/05 zebrasrv(17) [warn] Index 'tpubdate' not found in attset(s)
11:33:01-14/05 zebrasrv(17) [warn] Index 'Modified-code' not found in attset(s)
11:33:01-14/05 zebrasrv(17) [warn] Index 'char-encoding' not found in attset(s)
11:33:01-14/05 zebrasrv(17) [warn] Index 'char-encoding' not found in attset(s)
11:33:01-14/05 zebrasrv(17) [warn] Index 'char-encoding' not found in attset(s)
11:33:01-14/05 zebrasrv(17) [warn] Index 'script-Title' not found in attset(s)
11:33:01-14/05 zebrasrv(17) [warn] Index 'Country-heading' not found
in attset(s)
11:33:01-14/05 zebrasrv(17) [warn] Index 'Illustration-code' not found
in attset(s)
11:33:01-14/05 zebrasrv(17) [warn] Index 'Content-type' not found in attset(s)
11:33:01-14/05 zebrasrv(17) [warn] Index 'Content-type' not found in attset(s)
11:33:01-14/05 zebrasrv(17) [warn] Index 'Content-type' not found in attset(s)
11:33:01-14/05 zebrasrv(17) [warn] Index 'Content-type' not found in attset(s)
11:33:01-14/05 zebrasrv(17) [warn] Index 'Conference-code' not found
in attset(s)
11:33:01-14/05 zebrasrv(17) [warn] Index 'Festschrift-indicator' not
found in attset(s)
11:33:01-14/05 zebrasrv(17) [warn] Index 'Index-indicator' not found
in attset(s)
11:33:01-14/05 zebrasrv(17) [warn] Index 'Literature-Code' not found
in attset(s)
11:33:01-14/05 zebrasrv(17) [warn] Index 'Biography-Code' not found in attset(s)
11:33:01-14/05 zebrasrv(17) [warn] Index 'Type-Of-Serial' not found in attset(s)
11:33:01-14/05 zebrasrv(17) [warn] Index 'Frequency-code' not found in attset(s)
11:33:01-14/05 zebrasrv(17) [warn] Index 'Regularity-code' not found
in attset(s)
11:33:01-14/05 zebrasrv(17) [warn] Index 'Content-type' not found in attset(s)
11:33:01-14/05 zebrasrv(17) [warn] Index 'Content-type' not found in attset(s)
11:33:01-14/05 zebrasrv(17) [warn] Index 'Conference-publication-Code'
not found in attset(s)
11:33:01-14/05 zebrasrv(17) [warn] Index
'Title-Page-availability-Code' not found in attset(s)
11:33:01-14/05 zebrasrv(17) [warn] Index 'Index-availability-Code' not
found in attset(s)
11:33:01-14/05 zebrasrv(17) [warn] Index
'Cumulative-Index-availability-Code' not found in attset(s)
11:33:01-14/05 zebrasrv(17) [warn] Index 'Video-mt' not found in attset(s)
11:33:01-14/05 zebrasrv(17) [warn] Index 'Graphics-type' not found in attset(s)
11:33:01-14/05 zebrasrv(17) [warn] Index 'Graphics-support' not found
in attset(s)
11:33:01-14/05 zebrasrv(17) [warn] Index 'Graphics-support' not found
in attset(s)
11:33:01-14/05 zebrasrv(17) [warn] Index 'Serials' not found in attset(s)
11:33:01-14/05 zebrasrv(17) [warn] Index 'Serials' not found in attset(s)
11:33:01-14/05 zebrasrv(17) [warn] Index 'Printed-music' not found in attset(s)
11:33:01-14/05 zebrasrv(17) [warn] Index 'Printed-music' not found in attset(s)
11:33:01-14/05 zebrasrv(17) [warn] Index 'Electronic-ressource' not
found in attset(s)
11:33:01-14/05 zebrasrv(17) [warn] Index 'lcn' not found in attset(s)
11:33:01-14/05 zebrasrv(17) [warn] Index 'lcn' not found in attset(s)
11:33:01-14/05 zebrasrv(17) [warn] Index 'popularity' not found in attset(s)
11:33:01-14/05 zebrasrv(17) [warn] Index 'popularity' not found in attset(s)
11:33:01-14/05 zebrasrv(17) [warn] Index 'item' not found in attset(s)
11:33:01-14/05 zebrasrv(17) [request] Present OK -   1 1+1
11:33:01-14/05 zebrasrv(17) [request] Present OK -   1 2+1
11:33:01-14/05 zebrasrv(17) [session] Connection closed by client


If I change the "Search" dropdown list selected option to "Title" and
search by Exemplo, I get similar output of searching by Ricardo with
the "Author" option selected.


This is the content of my biblio database table:

mysql> select biblionumber, frameworkcode, author, title, serial from biblio;
+--------------+---------------+----------------------------------+-------------------------------------------+--------+
| biblionumber | frameworkcode | author                           |
title                                     | serial |
+--------------+---------------+----------------------------------+-------------------------------------------+--------+
|            1 |               | NULL                             | UM
MERCADO QUE VIVE UMA TOTAL MUTAÇÃO   |      1 |
|            2 |               | NULL                             | UM
MERCADO QUE VIVE UMA TOTAL MUTAÇÃO   |      1 |
|            3 |               | NULL                             | As
Fronteiras da Gestão                  |      0 |
|            4 |               | NULL                             |
exemplo                                   |      0 |
|            5 |               | Ricardo Experimentação marques |
Experimentação de um Título Eléctrico |      0 |
|            6 |               | Ricardo                          |
Exemplo                                   |      0 |
+--------------+---------------+----------------------------------+-------------------------------------------+--------+
6 rows in set (0.00 sec)


Yes, only two titles have an author in this test Koha database. I'm
using UNIMARC and I'm inserting these records by going to the "Koha >
Cataloging > Add MARC Record" web page at:
http://hostname:8080/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=

.. and then by clicking on the "New Record" button, selecting the
"Default Framework" and by filling the "Title" information in the
"subfield a" ("Title Proper") of the 200 UNIMARC tag ("Title and
Statement of Responsability") and the "Author" information in the
"subfield f" ("First Statement of Responsibility") of the same 200
tag.


Any suggestions / comments?

Thanks again!

Best wishes,
Ricardo Dias Marques
lists AT ricmarques DOT net



More information about the Koha-devel mailing list