Bug 21053: Encode URI characters in plugin 008
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 11 Jul 2018 21:55:06 +0000 (18:55 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Thu, 19 Jul 2018 16:23:16 +0000 (16:23 +0000)
commitbfdf896111849454ade806bf49f48f1de5f626be
treeedd04ad4ce10033edb981fd95fbd7333e19059fa
parent5a9bad787458411c790d26b3b115fe3e7e2e0ab2
Bug 21053: Encode URI characters in plugin 008

A # (or &) at any position in 008 field of a bib record causes
all subsequent data in field to be overwritten with default values when
record is saved.

These characters need to be correctly encoded before being passed as
parameters of the url

To reproduce:
1. Find and edit a bib record which has an 008 which differs from the
default values for the MARC framework
2. Choose 008 helper
3. Add # in any position before the end of the field noting the current
values of the data
4. Save record
5. Edit record and select 008 helper
6. Review characters after #

Signed-off-by: Maryse Simard <maryse.simard@inlibro.com>
Followed the test plan and it works.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
cataloguing/value_builder/marc21_field_008.pl