From df5c44e0977db702ebc177790d0e4ad87b73f8bd Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Thu, 11 Mar 2010 12:32:07 +0100 Subject: [PATCH] Changed the add_datafield_turbo_xml to match indicators as attributes --- src/marcdisp.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/marcdisp.c b/src/marcdisp.c index 81917b3..2561727 100644 --- a/src/marcdisp.c +++ b/src/marcdisp.c @@ -283,17 +283,16 @@ void yaz_marc_add_datafield_xml(yaz_marc_t mt, const xmlNode *ptr_tag, mt->subfield_pp = &n->u.datafield.subfields; } -struct yaz_marc_node* yaz_marc_add_datafield_turbo_xml(yaz_marc_t mt, char *tag_value) +void yaz_marc_add_datafield_turbo_xml(yaz_marc_t mt, char *tag_value, char *indicators) { struct yaz_marc_node *n = yaz_marc_add_node(mt); n->which = YAZ_MARC_DATAFIELD; n->u.datafield.tag = tag_value; - n->u.datafield.indicator = 0; + n->u.datafield.indicator = indicators; n->u.datafield.subfields = 0; - /* make subfield_pp the current (last one) */ + // make subfield_pp the current (last one) mt->subfield_pp = &n->u.datafield.subfields; - return n; } void yaz_marc_datafield_set_indicators(struct yaz_marc_node *n, char *indicator) @@ -1361,11 +1360,6 @@ void yaz_marc_set_write_format(yaz_marc_t mt, int format) { if (mt) { mt->output_format = format; -/* - // Force using libxml2 - if (mt->output_format == YAZ_MARC_TMARCXML) - mt->write_using_libxml2 = 1; -*/ } } -- 1.7.10.4