]> git.koha-community.org Git - koha.git/commit
Bug 16578: Fix wide character errors in opac-export.pl
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 24 May 2016 17:28:44 +0000 (14:28 -0300)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 10 Jun 2016 16:49:43 +0000 (16:49 +0000)
commit7d4844e171b1319b90e7bd73510bd97c2acbf635
treeae6a6b638938504a7ea960bdcb3dfd2bd28e2ea5
parentaf59b669413539606f10652230e5f96d43337cb5
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>
opac/opac-export.pl