Bug 16578: Fix wide character errors in opac-export.pl
commit27e63b7867d28da3e56830a80bbf36ff1f37e1a3
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 24 May 2016 17:28:44 +0000 (24 14:28 -0300)
committerJulian Maurice <julian.maurice@biblibre.com>
Thu, 16 Jun 2016 08:44:32 +0000 (16 10:44 +0200)
tree502603bbade4f3a9a1a5b604f8d360a03e5b3484
parent0be92bcc013d715f2d63377cd98e4bfe9fb2b942
Bug 16578: Fix wide character errors in opac-export.pl

This simple patch fixes wide character warning raised by opac-export.pl when
'MARC (Unicode/UTF-8)' and 'MARC (Unicode/UTF-8, Standard)' formats are chosen
for downloading records.

To test:
- Have records indexed
- Open your OPAC logs:
  $ tail -f /var/log/koha/kohadev/opac-error.log
- Open the detail page in the opac for a record
- Choose Save record > MARC (Unicode/UTF-8)
=> FAIL: opac-export.pl: Wide character in print at /home/vagrant/kohaclone/opac/opac-export.pl line 116., referer: http://localh...
- Choose Save record > MARC (Unicode/UTF-8, Standard)
=> FAILE opac-export.pl: Wide character in print...
- Apply the patch
- Choose Save record > MARC (Unicode/UTF-8)
=> SUCCESS: No warnings raised.
- Choose Save record > MARC (Unicode/UTF-8, Standard)
=> SUCCESS: No warnings raised.
- Sign off :-D

Followed test plan, works as expected.
Signed-off-by: Marc Véron <veron@veron.ch>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 7d4844e171b1319b90e7bd73510bd97c2acbf635)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
(cherry picked from commit 164ffdb43c98b4d2fa193d80c48f5509294fa1ca)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
opac/opac-export.pl