[Koha-bugs] [Bug 15836] Labels: Offer configuration option for splitting call numbers

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jul 27 11:21:37 CEST 2018


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15836

--- Comment #11 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
Hi Jonathan,

we have tested the basic functionality and are happy about the results of the
test button and the results in the generated PDF.

We also found some issues:

1) There is an error if you try to edit an existing non-Regex splitting rule:
Template process failed: undef error - malformed JSON string, neither array,
object, number, string or atom, at character offset 0 (before "(end of
string)") at /usr/share/perl5/JSON.pm line 171.
 at /home/vagrant/kohaclone/C4/Templates.pm line 122

2) If you try to print the PDF for labels with ddc/loc splitting rule, there is
also an error:
malformed JSON string, neither array, object, number, string or atom, at
character offset 0 (before "(end of string)") at /usr/share/perl5/JSON.pm line
171


We are not sure on how to solve the security issue. I think switching to TT
would not be good in this case, as it would be harder do write and people would
try to do more formatting that is probably not supported by the labels right
now.

Maybe an approach splitting the regex into muliple fields similar to the MARC
modification templates GUI could work. Instead of hardcoding /ig, maybe a pull
down? Open to your and others' suggestions.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list