X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fstatserv.c;h=815b2e9aabac53832cc7e5bd83f3ae5d1d96720d;hp=59bb8687515c33261767cc36e38f224a5351fd05;hb=a7718c404d9f9317caf075a1d1bbacc1484018a7;hpb=f31f3ef3afee001257b555e9a94c502a09de3fc4 diff --git a/src/statserv.c b/src/statserv.c index 59bb868..815b2e9 100644 --- a/src/statserv.c +++ b/src/statserv.c @@ -226,6 +226,7 @@ static struct gfs_server * gfs_server_new(const char *id) n->directory = 0; n->docpath = 0; n->stylesheet = 0; + n->client_query_charset = 0; n->id = nmem_strdup_null(gfs_nmem, id); n->retrieval = yaz_retrieval_create(); return n; @@ -490,6 +491,12 @@ static void xml_config_read(const char *base_path) nmem_malloc(gfs_nmem, strlen(s) + 2); sprintf(gfs->stylesheet, "/%s", s); } + else if (!strcmp((const char *) ptr->name, + "client_query_charset")) + { + gfs->client_query_charset = + nmem_dup_xml_content(gfs_nmem, ptr->children); + } else if (!strcmp((const char *) ptr->name, "explain")) { ; /* being processed separately */