I’ve got a response from Adam at Indexdata. Impressed as always by the speed in which he replies!
David: …it seems to me that CCL2RPN isn’t working correctly when a CCL qualifier for @attr 2=102 is used in conjunction with a qualifier containing r=o/r=r, and Zebra isn’t capable of processing the @attr 2=102 relation attribute in conjunction with the @attr 4=109 structure attribute.
Adam: Yep. The "local r=r or r=o" does not take precedence over the outer one. That's a bug in YAZ. It's been fixed and is part of next release of YAZ - version 5.15.0.
I feel vindicated in that it was a bug as I suspected, although this fact doesn’t necessarily help us at the moment. The YAZ packaged with Wheezy is version 4.2.30… a long shot away from 5.15.0.
Even on OpenSuse 13.2, I’m still only running YAZ 5.1.2. I’m optimistic about getting a newer version of YAZ into the OpenSuse repositories, as I was successful in getting them to package Zebra 2.0.60, but I suspect it will be difficult for Debian users since Debian hasn’t even acknowledged the issue raised by Robin in regards to updating Zebra to 2.0.60.
I have to run at the moment, but just a FYI.
I’ve asked Adam more specifically about relevance relation attributes and numeric, year, and date registers… hopefully he can provide some insight there as well…
David Cook
Systems Librarian
Prosentient Systems
72/330 Wattle St, Ultimo, NSW 2007
From: koha-devel-bounces@lists.koha-community.org [mailto:koha-devel-bounces@lists.koha-community.org] On Behalf Of Barton Chittenden
Sent: Friday, 6 November 2015 3:47 AM
To: Koha-devel <koha-devel@lists.koha-community.org>
Subject: [Koha-devel] Searching numeric ranges
I am working on searching lexile number ranges.
ccl.properties shows
lex 1=9903 r=r
The 'r=r' bit means that I should be able to search using a numeric range separated by a dash, e.g.
500-600
Should return any numeric results from 500 to 600.
The following query works:
cgi-bin/koha/catalogue/search.pl?q=ccl%3Dlex%2Cst-numeric%3D500-600
However, when I try adding that as an item in the search menu, as follows:
$(document).ready(function(){
//add lexile to search pull downs
$("select[name='idx']").append("<option value='lex,st-numeric'>Lexile (e.g. 600 or 550-650 )</option>");
});
That gets munged... the url reads
cgi-bin/koha/catalogue/search.pl?idx=lex%2Cst-numeric&q=500-600
And I get the following message:
No results found
No results match your search for 'lex,st-numeric: 500-600'.
--Barton