Fix facet icu rule setup.
authorDennis Schafroth <dennis@indexdata.com>
Sat, 9 Jul 2011 11:58:17 +0000 (13:58 +0200)
committerDennis Schafroth <dennis@indexdata.com>
Sat, 9 Jul 2011 11:58:17 +0000 (13:58 +0200)
src/pazpar2_config.c

index 8b94b63..d8d9569 100644 (file)
@@ -570,15 +570,15 @@ static struct conf_service *service_create_static(struct conf_server *server,
         }
         else if (!strcmp((const char *) n->name, "facet"))
         {
-            if (service->mergekey_pct)
+            if (service->facet_pct)
             {
-                yaz_log(YLOG_LOG, "facety may not repeat in service");
+                yaz_log(YLOG_LOG, "facet may not repeat in service");
                 return 0;
             }
             else
             {
                 service->facet_pct = pp2_charset_create_xml(n);
-                if (!service->mergekey_pct)
+                if (!service->facet_pct)
                     return 0;
             }
         }