YAZ  5.26.1
sru_facet.c File Reference

Implements SRU 2.0 facets. More...

#include <stdlib.h>
#include <yaz/srw.h>
#include <yaz/wrbuf.h>
#include <libxml/parser.h>
#include <libxml/tree.h>
#include <assert.h>
#include "sru-p.h"
#include <yaz/pquery.h>
#include <yaz/facet.h>

Go to the source code of this file.


static void insert_field (WRBUF w, const char *field, size_t length, const char *attr)
void yaz_sru_facet_request (ODR o, Z_FacetList **facetList, const char **limit, const char **start, const char **sort)
void yaz_sru_facet_response (ODR o, Z_FacetList **facetList, xmlNodePtr n)

Detailed Description

Implements SRU 2.0 facets.

Definition in file sru_facet.c.

Function Documentation

◆ insert_field()

static void insert_field ( WRBUF  w,
const char *  field,
size_t  length,
const char *  attr 

Definition at line 27 of file sru_facet.c.

References wrbuf_cstr(), wrbuf_insert(), wrbuf_len, wrbuf_puts(), and wrbuf_write().

Referenced by yaz_sru_facet_request().

◆ yaz_sru_facet_request()

void yaz_sru_facet_request ( ODR  o,
Z_FacetList **  facetList,
const char **  limit,
const char **  start,
const char **  sort 

◆ yaz_sru_facet_response()

void yaz_sru_facet_response ( ODR  o,
Z_FacetList **  facetList,
xmlNodePtr  n