projects
/
yaz-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:
8df1aa3
)
Support record render "json" - for ZOOM_record_get
author
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 6 Dec 2013 15:21:34 +0000
(16:21 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 6 Dec 2013 15:21:34 +0000
(16:21 +0100)
src/record_render.c
patch
|
blob
|
history
diff --git
a/src/record_render.c
b/src/record_render.c
index
bcd4c39
..
284728b
100644
(file)
--- a/
src/record_render.c
+++ b/
src/record_render.c
@@
-445,6
+445,11
@@
const char *yaz_record_render(Z_NamePlusRecord *npr, const char *schema,
ret = get_record_format(wrbuf, len, npr, YAZ_MARC_TURBOMARC, charset,
format);
}
+ else if (!strcmp(type, "json"))
+ {
+ ret = get_record_format(wrbuf, len, npr, YAZ_MARC_JSON, charset,
+ format);
+ }
else if (!strcmp(type, "raw"))
{
ret = get_record_format(wrbuf, len, npr, YAZ_MARC_ISO2709, charset,