From 0a60fb964618d708863b02a8483a863072cfd4cf Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 31 Oct 2013 15:40:43 +0100 Subject: [PATCH] On Type-7 --- doc/tools.xml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/doc/tools.xml b/doc/tools.xml index 7310987..9ebc4dd 100644 --- a/doc/tools.xml +++ b/doc/tools.xml @@ -2549,6 +2549,41 @@ int cql_transform_rpn2cql_wrbuf(cql_transform_t ct, sorting. Refer to . + Type-7 sort + + Type-7 sort is an extension to the Bib-1 based RPN query where the + sort specification is embedded as an Attribute-Plus-Term. + + + The objectives for introducing Type-7 sorting is that it allows + a client to perform sorting even if it does not implement/support + Z39.50 sort. Virtually all Z39.50 client software supports + RPN queries. It also may improve performance because the sort + critieria is specified along with the search query. + + + The sort is triggered by the presence of type 7 and the value of type 7 + specifies the + + sortRelation + + The value for type 7 is 1 for ascending and 2 for descending. + For the + + sortElement + + only the generic part is handled. If generic sortKey is of type + sortField, then attribute type 1 is present and the value is + sortField (InternationalString). If generic sortKey is of type + sortAttributes, then the attributes in list is used . generic sortKey + of type elementSpec is not supported. + + + The term in the sorting Attribute-Plus-Term combo should hold + an integer. The value is 0 for primary sorting criteria, 1 for second + criteria, etc. + + -- 1.7.10.4