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)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 2 Aug 2018 13:44:16 +0000 (14:44 +0100)
commit512ee5d57617c63da90be09268a77a0317c9e886
tree6546793b1ab14885f38999df9c2c960dbcc7781d
parent50f4e8635056d7b664b846db91d48bf282fef949
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>
(cherry picked from commit bfdf896111849454ade806bf49f48f1de5f626be)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
cataloguing/value_builder/marc21_field_008.pl