X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Fconfig.c;h=3ceb42715b17e4020def9aa1ecf8200c5190cf77;hb=bec266c19b530f61fa576d2b27198ada7d7f5fe3;hp=e440d7439a1a9f37e7092d3a014e1391b0e7c356;hpb=8ca1269eac32c1ddc19d16dc4f74e9a1e3e0b8f9;p=pazpar2-moved-to-github.git diff --git a/src/config.c b/src/config.c index e440d74..3ceb427 100644 --- a/src/config.c +++ b/src/config.c @@ -1,4 +1,4 @@ -/* $Id: config.c,v 1.12 2007-01-15 04:34:28 quinn Exp $ */ +/* $Id: config.c,v 1.13 2007-01-15 16:56:51 quinn Exp $ */ #include @@ -291,13 +291,16 @@ static struct conf_retrievalprofile *parse_retrievalprofile(xmlNode *node) yaz_log(YLOG_WARN, "Missing name in 'nativesyntax' element"); return 0; } + if (encoding) + r->native_encoding = encoding; if (!strcmp(name, "iso2709")) { r->native_syntax = Nativesyn_iso2709; // Set a few defaults, too r->native_format = Nativeform_marc21; r->native_mapto = Nativemapto_marcxml; - r->native_encoding = "marc-8"; + if (!r->native_encoding) + r->native_encoding = "marc-8"; setup_marc(r); } else if (!strcmp(name, "xml")) @@ -317,8 +320,6 @@ static struct conf_retrievalprofile *parse_retrievalprofile(xmlNode *node) return 0; } } - if (encoding) - r->native_encoding = encoding; if (mapto) { if (!strcmp(mapto, "marcxml"))