X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=doc%2Ftools.xml;h=f72288765ff1a7bc92ab707832b176070cd4a9ba;hp=73109875adcd989145c8b39c8e0326833316f4c3;hb=05193e78a2553c93a61da19a39e1276b1a509bac;hpb=8010ebca66a1ba04c1e7517364d16be7434cc25c
diff --git a/doc/tools.xml b/doc/tools.xml
index 7310987..f722887 100644
--- a/doc/tools.xml
+++ b/doc/tools.xml
@@ -2006,6 +2006,7 @@ int cql_transform_rpn2cql_wrbuf(cql_transform_t ct,
#define YAZ_MARC_XCHANGE 5
#define YAZ_MARC_CHECK 6
#define YAZ_MARC_TURBOMARC 7
+ #define YAZ_MARC_JSON 8
/* supply iconv handle for character set conversion .. */
void yaz_marc_iconv(yaz_marc_t mt, yaz_iconv_t cd);
@@ -2099,6 +2100,15 @@ int cql_transform_rpn2cql_wrbuf(cql_transform_t ct,
+
+ YAZ_MARC_JSON
+
+
+ MARC-in_JSON format.
+
+
+
+
@@ -2329,8 +2339,9 @@ int cql_transform_rpn2cql_wrbuf(cql_transform_t ct,
Format of input. Supported values are
- marc (for ISO2709); and xml
- for MARCXML/MarcXchange.
+ marc (for ISO2709), xml
+ (MARCXML/MarcXchange) and json
+ (MARC-in_JSON).
@@ -2339,10 +2350,12 @@ int cql_transform_rpn2cql_wrbuf(cql_transform_t ct,
Format of output. Supported values are
- line (MARC line format);
- marcxml (for MARCXML),
- marc (ISO2709),
- marcxhcange (for MarcXchange).
+ line (MARC line format);
+ marcxml (for MARCXML),
+ marc (ISO2709),
+ marcxhcange (for MarcXchange),
+ or json
+ (MARC-in_JSON ).
@@ -2549,6 +2562,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.
+
+