X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=src%2Fgduutil.cpp;h=47014d66387ced3f363d344caf58e3b6bab32fa2;hb=219ffa015c0e35b03fae0788b0e8e6abcfde1a81;hp=eb7e18c51907cb5b5b5ca8b0fb1b76798d0d7c2f;hpb=2f8cb1e1bda27debbd84f233453d33c8ff0700fc;p=metaproxy-moved-to-github.git diff --git a/src/gduutil.cpp b/src/gduutil.cpp index eb7e18c..47014d6 100644 --- a/src/gduutil.cpp +++ b/src/gduutil.cpp @@ -1,4 +1,4 @@ -/* $Id: gduutil.cpp,v 1.19 2007-04-10 11:28:51 marc Exp $ +/* $Id: gduutil.cpp,v 1.20 2007-04-13 09:57:51 adam Exp $ Copyright (c) 2005-2007, Index Data. See the LICENSE file for details @@ -8,6 +8,7 @@ #include "util.hpp" #include +#include #include #include @@ -241,8 +242,13 @@ std::ostream& std::operator<<(std::ostream& os, Z_APDU& zapdu) else os << " -"; if (pr->preferredRecordSyntax) - //os << " " << pr->preferredRecordSyntax; - os << " " <<(oid_getentbyoid(pr->preferredRecordSyntax))->desc; + { + char oid_name_str[OID_STR_MAX]; + const char *oid_name = yaz_oid_to_string_buf( + pr->preferredRecordSyntax, 0, oid_name_str); + + os << " " << oid_name; + } else os << " -"; const char * msg = 0; @@ -343,7 +349,8 @@ std::ostream& std::operator<<(std::ostream& os, Z_APDU& zapdu) if (sr->termListAndStartPoint) { WRBUF wr = wrbuf_alloc(); - yaz_scan_to_wrbuf(wr, sr->termListAndStartPoint, VAL_NONE); + yaz_scan_to_wrbuf(wr, sr->termListAndStartPoint, + sr->attributeSet); os << wrbuf_cstr(wr); wrbuf_destroy(wr); }