projects
/
pazpar2-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove two YLOG_DEBUG logs
[pazpar2-moved-to-github.git]
/
src
/
client.c
diff --git
a/src/client.c
b/src/client.c
index
3ebf63b
..
d3e09ba
100644
(file)
--- a/
src/client.c
+++ b/
src/client.c
@@
-350,6
+350,11
@@
static int nativesyntax_to_type(struct session_database *sdb, char *type,
{
strcpy(type, "xml");
}
{
strcpy(type, "xml");
}
+ else if (!strncmp(s, "txml", 4))
+ {
+ const char *cp = strchr(s, ';');
+ yaz_snprintf(type, 80, "txml; charset=%s", cp ? cp+1 : "marc-8s");
+ }
else
return -1;
return 0;
else
return -1;
return 0;
@@
-364,6
+369,11
@@
static int nativesyntax_to_type(struct session_database *sdb, char *type,
strcpy(type, "xml");
return 0;
}
strcpy(type, "xml");
return 0;
}
+ else if (!strcmp(syntax, "TXML"))
+ {
+ strcpy(type, "txml");
+ return 0;
+ }
else if (!strcmp(syntax, "USmarc") || !strcmp(syntax, "MARC21"))
{
strcpy(type, "xml; charset=marc8-s");
else if (!strcmp(syntax, "USmarc") || !strcmp(syntax, "MARC21"))
{
strcpy(type, "xml; charset=marc8-s");
@@
-470,9
+480,11
@@
void client_record_response(struct client *cl)
if (cl->session == 0)
;
else if (ZOOM_record_error(rec, &msg, &addinfo, 0))
if (cl->session == 0)
;
else if (ZOOM_record_error(rec, &msg, &addinfo, 0))
+ {
yaz_log(YLOG_WARN, "Record error %s (%s): %s (rec #%d)",
yaz_log(YLOG_WARN, "Record error %s (%s): %s (rec #%d)",
- error, addinfo, client_get_url(cl),
+ msg, addinfo, client_get_url(cl),
cl->record_offset);
cl->record_offset);
+ }
else
{
struct session_database *sdb = client_get_database(cl);
else
{
struct session_database *sdb = client_get_database(cl);