New function yaz_strerror which is a portable wrapper for
strerror/strerror_r/GetLastMessage.
-ZOOM_record_get supports type "xml" in which case OAI MARC is
-returned for MARC. If type is "MarcXML" , MARC XML is returned.
+* ZOOM_record_get supports type "xml" in which case MARC XML (from LOC)
+is returned for MARC. If type is "oai", then OAI MARC is returned.
yaz_marc_decode supports MARC XML as well. The xml parameter
-specifies type. See include/marcdisp.h
+specifies type. See include/yaz/marcdisp.h
Fix creation of lib/yaz-config so it works if srcdir != objdir. Patch
from Kang-Jin Lee.
* Copyright (c) 2000-2002, Index Data
* See the file LICENSE for details.
*
- * $Id: zoom-c.c,v 1.10 2002-12-09 23:32:29 adam Exp $
+ * $Id: zoom-c.c,v 1.11 2002-12-10 13:14:14 adam Exp $
*
* ZOOM layer for C, connections, result sets, queries.
*/
return 0;
}
else if (npr->which == Z_NamePlusRecord_databaseRecord &&
- (!strcmp (type, "xml") || !strcmp(type, "MarcXML")))
+ (!strcmp (type, "xml") || !strcmp(type, "oai")))
{
Z_External *r = (Z_External *) npr->u.databaseRecord;
oident *ent = oid_getentbyoid(r->direct_reference);
}
else if (r->which == Z_External_octet)
{
- int marc_decode_type = YAZ_MARC_OAIMARC;
+ int marc_decode_type = YAZ_MARC_MARCXML;
- if (!strcmp(type, "MarcXML"))
- marc_decode_type = YAZ_MARC_MARCXML;
+ if (!strcmp(type, "oai"))
+ marc_decode_type = YAZ_MARC_OAIMARC;
switch (ent->value)
{
case VAL_SOIF: