-// $Id: settings.c,v 1.5 2007-03-31 19:55:25 marc Exp $
+// $Id: settings.c,v 1.8 2007-04-08 21:51:58 quinn Exp $
// This module implements a generic system of settings (attribute-value) that can
// be associated with search targets. The system supports both default values,
// per-target overrides, and per-user settings.
static char *hard_settings[] = {
"pz:piggyback",
"pz:elements",
- "pz:syntax",
+ "pz:requestsyntax",
"pz:cclmap:",
+ "pz:encoding",
+ "pz:xslt",
+ "pz:nativesyntax",
+ "pz:authentication",
0
};
{
int i;
+ if (!name)
+ name = "";
for (i = 0; i < dictionary->num; i++)
if (!strcmp(name, dictionary->dict[i]))
return i;
for (i = 0; i < dictionary->num; i++)
if (!strcmp(dictionary->dict[i], set->name))
return;
+ if (!strncmp(set->name, "pz:", 3)) // Probably a typo in config fle
+ {
+ yaz_log(YLOG_FATAL, "Unknown pz: setting '%s'", set->name);
+ exit(1);
+ }
// Create a new dictionary entry
// Grow dictionary if necessary
if (!dictionary->size)