[Koha] Advanced search - Additional content types for books/printed materials

Andreas Roussos arouss1980 at gmail.com
Thu Dec 7 22:11:55 NZDT 2017


Hi Dimitris,

In your OPAC, if I choose 'Legal cases and case notes' in the Additional
content types for books/printed materials drop-down menu, I don't get any
results. From the "No results found!" page we can at least get the name
of the Zebra index that was queried ('ctype').

If you grep for "^melm 008" in your MARC21 record.abs file (normally at
/etc/koha/zebradb/marc_defs/marc21/biblios/record.abs) what do you get?

In my system, `grep "^melm 008" record.abs` yields this:
melm 008 [...] ctype:w:range(data,24,4) [...]
i.e. the 'ctype' index is built from characters 24-27 of the 008 field.

Oddly enough, if I choose "Bibliographies" as a content type in your
OPAC (i.e. ctype = 'b') I get one result (biblio 5080).

This makes sense because looking at the MARC view for that biblio:
http://87.203.234.185:8080/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=5080
we see that field 008 = 171123m20179999gr ||||| b    001 | gre d
So, character 25 (within the 24-27 character range) is indeed a 'b'.

However, you have at least 4 more biblios that should appear in the
results for that search:
5082: 171124s2017    gr ||||| b||| 001 | gre d
5085: 171128s2017    fr d||||o2||| 000 | fre d
5086: 171130s2017    gr ||||| b||| 001 | gre d
5087: 171201s2016    gr ||||| b||| 001 | gre d

Perhaps a full re-index is in order?
(koha-rebuild-zebra -f -a -b -v <instance>)

Kind regards,
Andreas
​


More information about the Koha mailing list