-/* $Id: logic.c,v 1.29 2007-05-16 17:16:21 quinn Exp $
+/* $Id: logic.c,v 1.32 2007-05-23 21:58:28 adam Exp $
Copyright (c) 2006-2007, Index Data.
This file is part of Pazpar2.
"",
"",
0,
- 0,
+ 0, /* dump_records */
+ 0, /* debug_mode */
30,
"81",
"Index Data PazPar2",
new->database = db;
new->yaz_marc = 0;
- new->pct = pp2_charset_create();
+
+#ifdef HAVE_ICU
+ if (global_parameters.server && global_parameters.server->icu_chn)
+ new->pct
+ = pp2_charset_create(global_parameters.server->icu_chn);
+ else
+ new->pct = pp2_charset_create(0);
+#else // HAVE_ICU
+ new->pct = pp2_charset_create(0);
+#endif // HAVE_ICU
+
new->map = 0;
new->settings
= nmem_malloc(se->session_nmem, sizeof(struct settings *) * num);
yaz_log(YLOG_WARN, "Unknown setting %s", setting);
return;
}
- if (offset == PZ_ID)
+ // Jakub: This breaks the filter setting.
+ /*if (offset == PZ_ID)
{
yaz_log(YLOG_WARN, "No need to set pz:id setting. Ignoring");
return;
- }
+ }*/
new->precedence = 0;
new->target = dbname;
new->name = setting;