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:
1b9e01d
)
Produce </collection> only once in MARCXML printing.
author
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 19 Mar 2008 22:33:01 +0000
(23:33 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 19 Mar 2008 22:33:01 +0000
(23:33 +0100)
util/marcdump.c
patch
|
blob
|
history
diff --git
a/util/marcdump.c
b/util/marcdump.c
index
03ae3a2
..
cb72a84
100644
(file)
--- a/
util/marcdump.c
+++ b/
util/marcdump.c
@@
-103,12
+103,6
@@
static void marcdump_read_line(yaz_marc_t mt, const char *fname)
fputs(wrbuf_cstr(wrbuf), stdout);
wrbuf_destroy(wrbuf);
}
fputs(wrbuf_cstr(wrbuf), stdout);
wrbuf_destroy(wrbuf);
}
- {
- WRBUF wrbuf = wrbuf_alloc();
- yaz_marc_write_trailer(mt, wrbuf);
- fputs(wrbuf_cstr(wrbuf), stdout);
- wrbuf_destroy(wrbuf);
- }
fclose(inf);
}
fclose(inf);
}
@@
-147,8
+141,6
@@
static void marcdump_read_xml(yaz_marc_t mt, const char *fname)
}
}
}
}
}
}
- yaz_marc_write_trailer(mt, wrbuf);
- fputs(wrbuf_cstr(wrbuf), stdout);
}
#else
xmlDocPtr doc = xmlParseFile(fname);
}
#else
xmlDocPtr doc = xmlParseFile(fname);
@@
-182,7
+174,6
@@
static void marcdump_read_xml(yaz_marc_t mt, const char *fname)
xmlFreeDoc(doc);
}
#endif
xmlFreeDoc(doc);
}
#endif
- yaz_marc_write_trailer(mt, wrbuf);
fputs(wrbuf_cstr(wrbuf), stdout);
wrbuf_destroy(wrbuf);
}
fputs(wrbuf_cstr(wrbuf), stdout);
wrbuf_destroy(wrbuf);
}