<!-- Simple test against a local test server (could be yaz-ztest) -->
<set name="pz:name" value="Local Test"/>
- <set name="pz:apdulog" value="1"/>
+ <set name="pz:apdulog" value="0"/>
<!-- mapping for unqualified search -->
<set name="pz:cclmap:term" value="u=1016 t=l,r s=al"/>
for (i = 0; i < num; i++)
{
- WRBUF fname = conf_get_fname(conf, stylesheets[i]);
-
*m = nmem_malloc(nt->nmem, sizeof(**m));
(*m)->marcmap = NULL;
(*m)->stylesheet1 = NULL;
-
(*m)->stylesheet2 = service_xslt_get(service, stylesheets[i]);
if ((*m)->stylesheet2)
;
else if (!strcmp(&stylesheets[i][strlen(stylesheets[i])-4], ".xsl"))
{
+ WRBUF fname = conf_get_fname(conf, stylesheets[i]);
if (!((*m)->stylesheet1 =
xsltParseStylesheetFile((xmlChar *) wrbuf_cstr(fname))))
{
stylesheets[i]);
no_errors++;
}
+ wrbuf_destroy(fname);
}
else if (!strcmp(&stylesheets[i][strlen(stylesheets[i])-5], ".mmap"))
{
+ WRBUF fname = conf_get_fname(conf, stylesheets[i]);
if (!((*m)->marcmap = marcmap_load(wrbuf_cstr(fname), nt->nmem)))
{
yaz_log(YLOG_FATAL|YLOG_ERRNO, "Unable to load marcmap: %s",
stylesheets[i]);
no_errors++;
}
+ wrbuf_destroy(fname);
}
else
{
yaz_log(YLOG_FATAL, "Cannot handle stylesheet: %s", stylesheets[i]);
no_errors++;
}
-
- wrbuf_destroy(fname);
m = &(*m)->next;
}
}