From: Adam Dickmeiss Date: Mon, 27 Jun 2011 17:18:56 +0000 (+0200) Subject: zoom: enable marc-8 by default for usmarc and opac. X-Git-Tag: v1.2.9~2 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=d435cf1b2add5d13af71f5812131fd942e7feff3;p=metaproxy-moved-to-github.git zoom: enable marc-8 by default for usmarc and opac. --- diff --git a/src/filter_zoom.cpp b/src/filter_zoom.cpp index a611381..35512ca 100644 --- a/src/filter_zoom.cpp +++ b/src/filter_zoom.cpp @@ -777,7 +777,10 @@ Z_Records *yf::Zoom::Frontend::get_records(Odr_int start, if (b->sptr->request_syntax.length()) { syntax_name = b->sptr->request_syntax.c_str(); - if (strcmp(syntax_name, "xml")) + const Odr_oid *syntax_oid = + yaz_string_to_oid(yaz_oid_std(), CLASS_RECSYN, syntax_name); + if (!oid_oidcmp(syntax_oid, yaz_oid_recsyn_usmarc) + || !oid_oidcmp(syntax_oid, yaz_oid_recsyn_opac)) assume_marc8_charset = true; } }