List Info

Thread: Suggested fix for ESC problem




Suggested fix for ESC problem
country flaguser name
United States
2007-03-20 23:33:10
I modified the ending code in yaz_write_marc8_2 as follows:

    if (last)
    {
        size_t r = flush_combos(cd, outbuf, outbytesleft);
        if (r)
        {
            if (comb)
                cd->write_marc8_comb_no--;
            else
                cd->write_marc8_last = 0;
            return r;
        }
// My addition starts here
        page_chr = "33(B";
        r = yaz_write_marc8_page_chr(cd, outbuf,
outbytesleft, page_chr);
        if (r)
            return r;
// My addition ends here
    }
    return 0;

I've run about 7,000 records through with this change, and
the change 
seems to have fixed the problem.  Do you have a better
suggestion?

Gary.


_______________________________________________
Yazlist mailing list
Yazlistlists.indexdata.dk
http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yaz
list

  
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )