X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=src%2Fyaz-my-server.cpp;h=9d6acfc43e65de69206542fbdf43e03acc7dfb17;hb=fa96bc0dcc16f6ac3e33b5144664e51cb7d09874;hp=2c666281e92d88366538bf038a1b43a1d20a636c;hpb=0cc824e02bc2c69986bec8c9dd9ff53f07a0cd3d;p=yazpp-moved-to-github.git diff --git a/src/yaz-my-server.cpp b/src/yaz-my-server.cpp index 2c66628..9d6acfc 100644 --- a/src/yaz-my-server.cpp +++ b/src/yaz-my-server.cpp @@ -2,7 +2,7 @@ * Copyright (c) 1998-2001, Index Data. * See the file LICENSE for details. * - * $Id: yaz-my-server.cpp,v 1.20 2006-03-29 13:14:16 adam Exp $ + * $Id: yaz-my-server.cpp,v 1.22 2007-04-16 21:54:23 adam Exp $ */ #include @@ -12,6 +12,7 @@ #include #include #include +#include using namespace yazpp_1; @@ -131,8 +132,8 @@ void MyRetrieval::sr_record (const char *resultSetName, yaz_log (YLOG_LOG, "MyServer::recv_Z_record"); const char *rec = get_record(position); if (rec) - create_databaseRecord (odr_encode(), namePlusRecord, 0, - VAL_USMARC, rec, strlen(rec)); + create_databaseRecord(odr_encode(), namePlusRecord, 0, + yaz_oid_recsyn_usmarc, rec, strlen(rec)); else create_surrogateDiagnostics(odr_encode(), namePlusRecord, 0, YAZ_BIB1_PRESENT_REQUEST_OUT_OF_RANGE, 0);