#202: BibMatch: using predefined fields in querystrings
----------------------+-----------------------------------------------------
Reporter: jlavik | Owner:
Type: defect | Status: new
Priority: major | Milestone:
Component: BibMatch | Version:
Keywords: |
----------------------+-----------------------------------------------------
Currently, using predefined field names such as 'author' or 'title' in
advanced querystrings, like {{{'245__a||author'}}}, does not work properly
as the query contains no value (p).
{{{
$ wget -O /tmp/z.xml 'http://invenio-demo.cern.ch/record/92/export/xm'
$ bibmatch -1 -r 'http://cdsweb.cern.ch' -q '245__a||author' < /tmp/z.xml
-v9
...
perform_request_search with values p1=Quasi-normal Modes of
Electromagnetic
Perturbations of Four-Dimensional Topological Black Holes
with Scalar Hair f1=245__a m1=e op1=a
p2= f2=author m2=e op2=a p3= f3= m3=e result=[962073]
...
}}}
As you see in the example over, p2 contains no values.
So for the moment you can only use these predefined field in a simple
query, i.e. only search in field 'title' using parameter {{{-f --field}}}.
Making this work for the advanced querystrings would be nice in cases
where you want to match records based on both title and author (or other
predefined fields) without having to use direct tag values, i.e. to enable
the "fuzzy" author search.
In addition, it would be an idea to add the possibility to use other
predefined fieldnames like reportnumber and year, like in the web-search.
--
Ticket URL: <http://invenio-software.org/ticket/202>
Invenio <http://invenio-software.org>