[librecat-dev] marc_map field 008 bug

Uldis Bojars captsolo at gmail.com
Tue Jul 11 22:48:10 CEST 2017


It does work OK if marc_spec() is used instead of marc_map().

Uldis

On 11 July 2017 at 20:57, Uldis Bojars <captsolo at gmail.com> wrote:

> Hi,
>
> There seems to be a bug reading MARC field 008 with marc_map():
>
> Problem: marc_map("008/33", "lit_form") does not return a value in case of
> the characterl at this position is "0".
>
> Data:
>       [
>          "008",
>          " ",
>          " ",
>          "_",
>          "931004s1993^^^^lv^a^^^^^^^^^^001^0^lav^d"
>       ],
>
> Commands:
>
> marc_map("008/33", "lit_form")
> marc_map("008/32", "another_008_position")
>
> Result: no value in "lit_form" (but the value from another position - 32 -
> is read OK)
>
>    "another_008_position" : "^"
>
> If the character @ pos 33 is changed to another value (e.g. "f") the value
> is read OK:
>
>    "lit_form" : "f",
>    "another_008_position" : "^",
>
> ---
>
> Cheers,
> Uldis
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.uni-bielefeld.de/mailman2/unibi/public/librecat-dev/attachments/20170711/b05d0158/attachment.html>


More information about the librecat-dev mailing list