@@ -, +, @@ indicator 1. --- C4/Search.pm | 14 ++++++- etc/zebradb/biblios/etc/bib1.att | 6 ++- etc/zebradb/ccl.properties | 6 ++- .../marc21/biblios/biblio-koha-indexdefs.xml | 24 +++++++++--- .../marc21/biblios/biblio-zebra-indexdefs.xsl | 43 ++++++++++++++++++---- 5 files changed, 77 insertions(+), 16 deletions(-) --- a/C4/Search.pm +++ a/C4/Search.pm @@ -1021,6 +1021,11 @@ sub _build_weighted_query { $weighted_query .= "an=\"$operand\""; } + # If the index is numeric, don't autoquote it. + elsif ( $index =~ /,st-numeric$/ ) { + $weighted_query .= " $index=$operand"; + } + # If the index already has more than one qualifier, wrap the operand # in quotes and pass it back (assumption is that the user knows what they # are doing and won't appreciate us mucking up their query @@ -1124,6 +1129,8 @@ sub getIndexes{ 'Illustration-code', 'Index-term-genre', 'Index-term-uncontrolled', + 'Interest-age-level', + 'Interest-grade-level', 'ISBN', 'isbn', 'ISSN', @@ -1138,6 +1145,7 @@ sub getIndexes{ 'LC-card-number', 'lcn', 'lex', + 'lexile-number', 'llength', 'ln', 'ln-audio', @@ -1174,6 +1182,7 @@ sub getIndexes{ 'Publisher', 'Provider', 'pv', + 'Reading-grade-level', 'Record-control-number', 'rcn', 'Record-type', @@ -1515,8 +1524,8 @@ sub buildQuery { #which is processed higher up in this sub. Other than that, year searches are typically #handled as limits which are not processed her either. - # Date of Publication - if ( $index =~ /yr/ ) { + # Search ranges: Date of Publication, st-numeric + if ( $index =~ /(yr|st-numeric)/ ) { #weight_fields/relevance search causes errors with date ranges #In the case of YYYY-, it will only return records with a 'yr' of YYYY (not the range) #In the case of YYYY-YYYY, it will return no results @@ -1745,6 +1754,7 @@ sub buildQuery { warn "LIMIT DESC:" . $limit_desc; warn "---------\nLeave buildQuery\n---------"; } + return ( undef, $query, $simple_query, $query_cgi, $query_desc, $limit, $limit_cgi, $limit_desc, --- a/etc/zebradb/biblios/etc/bib1.att +++ a/etc/zebradb/biblios/etc/bib1.att @@ -351,7 +351,11 @@ att 9900 Author-personal-bibliography # Author-in-order - firstname lastname in 245$c statement of responsibility att 9902 Author-in-order # Lexile number -att 9903 lex +att 9903 lexile-number +att 9908 Interest-age-level +att 9909 Interest-grade-level +att 9910 Reading-grade-level + att 9904 arl att 9013 arp att 9520 Item --- a/etc/zebradb/ccl.properties +++ a/etc/zebradb/ccl.properties @@ -1135,7 +1135,11 @@ ff7-01-02 1=8703 l-format ff7-01-02 # Lexile Number -lex 1=9903 r=r +lexile-number 1=9903 r=r +lex lexile-number +Interest-age-level 1=9908 r=r +Interest-grade-level 1=9909 r=r +Reading-grade-level 1=9910 r=r #Accelerated Reader Level arl 1=9904 r=r --- a/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml +++ a/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml @@ -571,11 +571,25 @@ Abstract:w Abstract:p - - - lex:w - lex:p - lex:n + + Reading-grade-level:w + Reading-grade-level:p + Reading-grade-level:n + + + Interest-age-level:w + Interest-age-level:p + Interest-age-level:n + + + Interest-grade-level:w + Interest-grade-level:p + Interest-grade-level:n + + + lexile-number:w + lexile-number:p + lexile-number:n --- a/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl +++ a/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl @@ -472,13 +472,42 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + --