[librecat-dev] marc_map field 008 bug

Uldis Bojars captsolo at gmail.com
Tue Jul 11 19:57:51 CEST 2017


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/99999359/attachment.html>


More information about the librecat-dev mailing list