YAZ  5.23.1
record_render.h File Reference

Record render header. More...

#include <stddef.h>
#include <yaz/yconfig.h>
#include <yaz/z-core.h>
#include <yaz/wrbuf.h>

Go to the source code of this file.


const char * yaz_record_render (Z_NamePlusRecord *npr, const char *schema, WRBUF wrbuf, const char *type_spec, int *len)
 render records (ZOOM style) More...

Detailed Description

Record render header.

Definition in file record_render.h.

Function Documentation

const char* yaz_record_render ( Z_NamePlusRecord npr,
const char *  schema,
WRBUF  wrbuf,
const char *  type_spec,
int *  len 

render records (ZOOM style)

nprrecord structure to be rendered (Z39.50)
schemafor record (if known)
wrbufWorking WRBUF
type_specformat spec
lenlength of returned buffer
Return values
=0record could not be rendered

txml; charset=marc-8 xml; charset=utf-8 txml; charset=marc-8; base64=/rec/my/text()

Definition at line 355 of file record_render.c.

References base64_render(), Z_NamePlusRecord::databaseName, Z_NamePlusRecord::databaseRecord, Z_External::direct_reference, get_record_format(), nmem_create(), nmem_destroy(), nmem_malloc(), nmem_strdupn(), type, Z_NamePlusRecord::u, Z_External::which, Z_NamePlusRecord::which, YAZ_MARC_ISO2709, YAZ_MARC_JSON, YAZ_MARC_LINE, YAZ_MARC_MARCXML, YAZ_MARC_TURBOMARC, yaz_oid_std(), yaz_oid_to_string(), Z_External_OPAC, and Z_NamePlusRecord_databaseRecord.

Referenced by replace_node(), and ZOOM_record_get().