From: Adam Dickmeiss Date: Sun, 24 Mar 2002 16:19:23 +0000 (+0000) Subject: PQF feature: @use=value X-Git-Tag: YAZ.1.8.6~4 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=da8068b4715e046e3d4592834f9bb9d5c9dac855;p=yaz-moved-to-github.git PQF feature: @use=value --- diff --git a/CHANGELOG b/CHANGELOG index a6073c2..85e343c 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,6 +2,8 @@ Possible compatibility problems with earlier versions marked with '*'. --- 1.8.6 2002/MM/DD +Added PQF feature: '@attr use=value' may be written as '@use=value'. + Client displays USR.1:SearchResult-1 (hits per term). Additional Search Info for search in Generic Frontend Server. diff --git a/zutil/pquery.c b/zutil/pquery.c index adb54c7..55c2c67 100644 --- a/zutil/pquery.c +++ b/zutil/pquery.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2002, Index Data. * See the file LICENSE for details. * - * $Id: pquery.c,v 1.12 2002-01-23 20:25:42 adam Exp $ + * $Id: pquery.c,v 1.13 2002-03-24 16:19:23 adam Exp $ */ #include @@ -70,7 +70,13 @@ static int query_token (struct lex_info *li) ++(*qptr); } li->lex_buf = *qptr; - + + if (**qptr == li->escape_char && isdigit ((*qptr)[1])) + { + ++(li->lex_len); + ++(*qptr); + return 'l'; + } while (**qptr && **qptr != sep_char) { if (**qptr == '\\')