projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3371e5b
)
nativesyntax "xml" is passed verbatim to ZOOM
author
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 18 Jun 2012 14:15:33 +0000
(16:15 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 18 Jun 2012 14:15:33 +0000
(16:15 +0200)
Before leading xml would ALWAYS be mapped to just "xml". Now
xml can be used as is or augmented with other things, such as
charset.
src/client.c
patch
|
blob
|
history
diff --git
a/src/client.c
b/src/client.c
index
e6ddc66
..
c2187a9
100644
(file)
--- a/
src/client.c
+++ b/
src/client.c
@@
-412,16
+412,12
@@
static int nativesyntax_to_type(const char *s, char *type,
const char *cp = strchr(s, ';');
yaz_snprintf(type, 80, "xml; charset=%s", cp ? cp+1 : "marc-8s");
}
- else if (!strncmp(s, "xml", 3))
- {
- 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
+ else /* pass verbatim to ZOOM - including "xml" */
strcpy(type, s);
return 0;
}