-#ifdef HAVE_ICU
- UErrorCode status = U_ZERO_ERROR;
- struct icu_chain *chain = icu_chain_xml_config(n, &status);
- if (!chain || U_FAILURE(status)){
- //xmlDocPtr icu_doc = 0;
- //xmlChar *xmlstr = 0;
- //int size = 0;
- //xmlDocDumpMemory(icu_doc, size);
-
- yaz_log(YLOG_FATAL, "Could not parse ICU chain config:\n"
- "<%s>\n ... \n</%s>",
- n->name, n->name);
- return 0;
- }
- server->icu_chn = chain;
-#else // HAVE_ICU
- yaz_log(YLOG_FATAL, "Error: ICU support requested with element:\n"
- "<%s>\n ... \n</%s>",
- n->name, n->name);
- yaz_log(YLOG_FATAL,
- "But no ICU support compiled into pazpar2 server.");
- yaz_log(YLOG_FATAL,
- "Please install libicu36-dev and icu-doc or similar, "
- "re-configure and re-compile");
- return 0;
-#endif // HAVE_ICU
+ server->relevance_pct = pp2_charset_create_xml(n->children);
+ }
+ else if (!strcmp((const char *) n->name, "sort"))
+ {
+ server->sort_pct = pp2_charset_create_xml(n->children);
+ }
+ else if (!strcmp((const char *) n->name, "mergekey"))
+ {
+ server->mergekey_pct = pp2_charset_create_xml(n->children);