Bug 19677: Properly escape enumchrom/serialseq data
authorNick Clemens <nick@bywatersolutions.com>
Mon, 18 Dec 2017 14:42:25 +0000 (14:42 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 19 Jan 2018 18:46:43 +0000 (15:46 -0300)
commit4933de21ea0d5d70d078456ff2317187134f1a4c
treea4e42015d7f47385294bce4c20c47caf05672c7c
parent6ef92056ffea9dd47d59dc9695391167ed3fdcb1
Bug 19677: Properly escape enumchrom/serialseq data

Some serial issues use angle brackets for denoting certain data.
Currently this is not displayed in Koha. This patch escapes the data so
that angle brackets will display.

To test:
1 - Add an enumchron field to an item containg angle brackets:
"This is a <test>"
2 - View the record in the staff and opac, not the field displays as:
"This is a"
3 - Apply patch
4 - Note full text now displays

Signed-off-by: Charlotte Cordwell <charlotte.cordwell123@gmail.com>

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt