Bug 13124 - Record titles with parentheses causing label weirdness
commitb3a20835dd8ba5f08b9b96c3ba36b109492318e7
authorKyle M Hall <kyle@bywatersolutions.com>
Tue, 21 Oct 2014 10:18:29 +0000 (21 06:18 -0400)
committerChris Cormack <chrisc@catalyst.net.nz>
Tue, 30 Dec 2014 19:12:31 +0000 (31 08:12 +1300)
treed9a3950b7e4854f379e140b0e03a36d05bd58a5d
parentc68c94454472a63a2bd2324fdbf7443a4508c686
Bug 13124 - Record titles with parentheses causing label weirdness

Test Plan ( using sample data included with Koha )
1) Catalog a record and item with the title "Oh no! or, (How my
   science project destroyed the world) /"
2) Edit the DEFAULT template
   a) Set layout type to Biblio
   b) Set data fields to "title, author, isbn, issn, itemtype,
      barcode, itemcallnumber"
   c) Set font size to 10
3) Create a batch with just the one item you created
4) Export the PDF with the Avery template and the DEFAULT layout
5) Note the weirdness
6) Apply this patch
7) Re-export the PDF, note it's no longer weird ; )

Signed-off-by: Nick Clemens <nick@quecheelibrary.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit fe4da2f721c371540fe88d0014a49a866b403ca4)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
C4/Labels/Label.pm