From 99b5b8f8856a3fe9c438d49b5206cec2e8ca514a Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Fri, 20 Jan 2012 09:55:44 +0000 Subject: [PATCH] Add clever pz:pqf_strftime example from http://lists.indexdata.dk/pipermail/yazlist/2012-January/003374.html --- doc/pazpar2_conf.xml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/doc/pazpar2_conf.xml b/doc/pazpar2_conf.xml index 3b2b957..8aac27a 100644 --- a/doc/pazpar2_conf.xml +++ b/doc/pazpar2_conf.xml @@ -1145,7 +1145,7 @@ Allows you to specify an arbitrary PQF query language substring. - The provided string is prefixed the user's query after it has been + The provided string is prefixed to the user's query after it has been normalized to PQF internally in pazpar2. This allows you to attach complex 'filters' to queries for a given target, sometimes necessary to select sub-catalogs @@ -1168,6 +1168,17 @@ @and @attr 1=30 @attr 2=3 %Y %% would search for current year combined with the original PQF (%%). + + This setting can also be used as more general alternative to + pz:pqf_prefix -- a way of embedding the submitted query + anywhere in the string rather than appending it to prefix. For + example, if it is desired to omit all records satisfying the + query @attr 1=pica.bib 0007 then this + subquery can be combined with the submitted query as the second + argument of @andnot by using the + pz:pqf_strftime value @not %% @attr 1=pica.bib + 0007. + -- 1.7.10.4