From d435cf1b2add5d13af71f5812131fd942e7feff3 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 27 Jun 2011 19:18:56 +0200 Subject: [PATCH] zoom: enable marc-8 by default for usmarc and opac. --- src/filter_zoom.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } } -- 1.7.10.4