Dear Andreas, Thank you for your valuable input. Thankfully it was easier to solve than expected. The default 008 values at positions 24-27 - Nature of contents, was filled by a "| - Not attempt to code". When I changed it to "# - No specified nature of contents" everything worked like a charm. Regards, Dimitris On Thu, Dec 7, 2017 at 11:11 AM Andreas Roussos <arouss1980@gmail.com> wrote:
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