YAZ
5.34.0
|
Implements OPAC to XML conversion. More...
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <yaz/proto.h>
#include <yaz/marcdisp.h>
Go to the source code of this file.
Functions | |
static void | opac_element_str (WRBUF wrbuf, yaz_iconv_t cd1, yaz_iconv_t cd2, int l, const char *elem, const char *data) |
static void | opac_element_bool (WRBUF wrbuf, int l, const char *elem, int *data) |
void | yaz_opac_decode_wrbuf2 (yaz_marc_t mt, Z_OPACRecord *r, WRBUF wrbuf, yaz_iconv_t cd2) |
Performs "pretty" display of OPAC record to WRBUF using marc_t. More... | |
void | yaz_opac_decode_wrbuf (yaz_marc_t mt, Z_OPACRecord *r, WRBUF wrbuf) |
Performs "pretty" display of OPAC record to WRBUF using marc_t. More... | |
int | yaz_opac_check_marc21_coding (const char *charset, Z_OPACRecord *r) |
Implements OPAC to XML conversion.
Definition in file opac_to_xml.c.
|
static |
Definition at line 46 of file opac_to_xml.c.
References wrbuf_puts().
Referenced by yaz_opac_decode_wrbuf2().
|
static |
Definition at line 20 of file opac_to_xml.c.
References wrbuf::pos, wrbuf_iconv_write2(), wrbuf_puts(), and wrbuf_xmlputs_n().
Referenced by yaz_opac_decode_wrbuf2().
int yaz_opac_check_marc21_coding | ( | const char * | charset, |
Z_OPACRecord * | r | ||
) |
Definition at line 194 of file opac_to_xml.c.
References Z_OPACRecord::bibliographicRecord, odr_oct::buf, odr_oct::len, Z_External::octet_aligned, Z_External::u, Z_External::which, yaz_marc_check_marc21_coding(), and Z_External_octet.
Referenced by yaz_record_conv_opac_record().
void yaz_opac_decode_wrbuf | ( | yaz_marc_t | mt, |
Z_OPACRecord * | r, | ||
WRBUF | wrbuf | ||
) |
Performs "pretty" display of OPAC record to WRBUF using marc_t.
mt | handle |
r | OPAC record |
wrbuf | WRBUF for resulting display string |
This function uses iconv_handle of yaz_marc_t for character set conversion of both OPAC + ISO2709 part. \
Definition at line 189 of file opac_to_xml.c.
References yaz_opac_decode_wrbuf2().
Referenced by dummy_xml_record(), return_opac_record(), and yaz_record_conv_opac_record().
void yaz_opac_decode_wrbuf2 | ( | yaz_marc_t | mt, |
Z_OPACRecord * | r, | ||
WRBUF | wrbuf, | ||
yaz_iconv_t | cd | ||
) |
Performs "pretty" display of OPAC record to WRBUF using marc_t.
mt | handle |
r | OPAC record |
wrbuf | WRBUF for resulting display string |
cd | iconv handle for OPAC content (not ISO2709 part) |
This function uses iconv handle of yaz_marc_t for character set conversion of ISO2709 part and supplied handle (cd) for OPAC part. \
Definition at line 62 of file opac_to_xml.c.
References Z_CircRecord::availableNow, Z_CircRecord::availableThru, Z_CircRecord::availablityDate, Z_OPACRecord::bibliographicRecord, odr_oct::buf, Z_HoldingsAndCircData::callNumber, Z_Volume::chronology, Z_HoldingsAndCircData::circulationData, Z_HoldingsAndCircData::completeness, Z_HoldingsAndCircData::copyNumber, Z_HoldingsAndCircData::dateOfReport, Z_HoldingsAndCircData::encodingLevel, Z_HoldingsAndCircData::enumAndChron, Z_Volume::enumAndChron, Z_CircRecord::enumAndChron, Z_Volume::enumeration, Z_HoldingsAndCircData::format, Z_HoldingsAndCircData::generalRetention, Z_HoldingsRecord::holdingsAndCirc, Z_OPACRecord::holdingsData, Z_CircRecord::itemId, odr_oct::len, Z_HoldingsAndCircData::localLocation, Z_HoldingsRecord::marcHoldingsRecord, Z_CircRecord::midspine, Z_HoldingsAndCircData::nucCode, Z_HoldingsAndCircData::num_circulationData, Z_OPACRecord::num_holdingsData, Z_HoldingsAndCircData::num_volumes, Z_External::octet_aligned, Z_CircRecord::onHold, opac_element_bool(), opac_element_str(), Z_HoldingsAndCircData::publicNote, Z_HoldingsAndCircData::receiptAcqStatus, Z_CircRecord::renewable, Z_HoldingsAndCircData::reproductionNote, Z_CircRecord::restrictions, Z_HoldingsAndCircData::shelvingData, Z_HoldingsAndCircData::shelvingLocation, Z_CircRecord::temporaryLocation, Z_HoldingsAndCircData::termsUseRepro, Z_HoldingsAndCircData::typeOfRecord, Z_External::u, Z_HoldingsRecord::u, Z_HoldingsAndCircData::volumes, Z_External::which, Z_HoldingsRecord::which, wrbuf_puts(), yaz_marc_decode_wrbuf(), yaz_marc_get_iconv(), Z_External_octet, Z_HoldingsRecord_holdingsAndCirc, and Z_HoldingsRecord_marcHoldingsRecord.
Referenced by return_opac_record(), and yaz_opac_decode_wrbuf().