LP1584891: Export MARC holdings with UTF8 subfields user/dbs/lp1584891_marc_export_unicode_items
authorDan Scott <dscott@laurentian.ca>
Wed, 22 Feb 2017 16:29:21 +0000 (11:29 -0500)
committerDan Scott <dscott@laurentian.ca>
Wed, 22 Feb 2017 16:29:21 +0000 (11:29 -0500)
commit375f9731c52ad4c58fe726149d6260619ca986c8
tree16f9d276041df148de91107dd4113a422bea27f9
parent8dce9e609e444d562e19374d39454a83ca72c1ea
LP1584891: Export MARC holdings with UTF8 subfields

The --items option of marc_export adds a new MARC 852 field with a
number of subfields that it retrieves from the database. If those
subfields (such as call number, copy location, etc) contain Unicode
characters, then we need to decode the incoming UTF8 characters
when adding the subfield values to avoid corrupting the MARC.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/support-scripts/marc_export.in