<div dir="ltr">It does work OK if marc_spec() is used instead of marc_map().<div><br></div><div>Uldis</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 11 July 2017 at 20:57, Uldis Bojars <span dir="ltr"><<a href="mailto:captsolo@gmail.com" target="_blank">captsolo@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>There seems to be a bug reading MARC field 008 with marc_map():</div><div><br></div><div>Problem: marc_map("008/33", "lit_form") does not return a value in case of the characterl at this position is "0".</div><div><br></div><div>Data:</div><div><div>      [</div><div>         "008",</div><div>         " ",</div><div>         " ",</div><div>         "_",</div><div>         "931004s1993^^^^lv^a^^^^^^^^^<wbr>^001^0^lav^d"</div><div>      ],</div></div><div><br></div><div>Commands:</div><div><br></div><div><div>marc_map("008/33", "lit_form")</div><div>marc_map("008/32", "another_008_position")</div></div><div><br></div><div>Result: no value in "lit_form" (but the value from another position - 32 - is read OK)</div><div><br></div><div><div>   "another_008_position" : "^"</div></div><div><br></div><div>If the character @ pos 33 is changed to another value (e.g. "f") the value is read OK:</div><div><br></div><div><div>   "lit_form" : "f",</div><div>   "another_008_position" : "^",</div></div><div><br></div><div>---</div><div><br></div><div>Cheers,</div><div>Uldis</div></div>
</blockquote></div><br></div>