Koha/koha-tmpl/intranet-tmpl/prog/en/modules/members
Jonathan Druart a0ccc0d246 Bug 14044: Escape json strings for patron searches
In a couple of patron searches, the address is displayed.
If the address contain invalid json characters, DataTables won't manage
to parse the results and display them.
This patch makes the templates more readable by creating a BLOCK instead
of a long line and escape the invalid json characters calling the TT
plugin (To.json).

Test plan:
Edit a patron and add something like:
    patron <address> \123 ☎ ⚑
in the address field.

Search for this patron using the main patron search (members/member.pl)
and the guarantor search.
Confirm that a result with this patron is correctly displayed.

Regression test: Since Koha::Template::Plugin::To::json is modified,
confirm that the add users to basket search (on acqui/basket.pl?basketno=X
click on the "Add user" button) still works as expected.

Signed-off-by: Christopher Brannon <cbrannon@cdalibary.org>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
2015-05-06 10:29:08 -03:00
..
tables Bug 14044: Escape json strings for patron searches 2015-05-06 10:29:08 -03:00
boraccount.tt Bug 4041: Third step - Display address on patron's pages using the system preference 2015-04-29 11:25:11 -03:00
deletemem.tt Bug 11401: Add support for Norwegian national library card 2014-11-14 09:42:23 -03:00
discharge.tt Bug 8007: (followup) double quotes... 2015-04-30 16:33:37 -03:00
discharges.tt Bug 8007: Discharge management 2015-04-30 12:33:56 -03:00
files.tt Bug 13941: [2/2] Fix <body> tags missing id/class 2015-04-24 09:47:38 -03:00
mancredit.tt Bug 4041: Third step - Display address on patron's pages using the system preference 2015-04-29 11:25:11 -03:00
maninvoice.tt Bug 4041: Third step - Display address on patron's pages using the system preference 2015-04-29 11:25:11 -03:00
member-flags.tt Bug 13139 - Move treeview jQuery plugin outside of language-specific directory 2014-10-27 12:36:53 -03:00
member-password.tt Bug 10177 - Whitespace is accepted within the password but leading and trailing spaces are not. 2015-02-09 17:00:12 -03:00
member.tt Bug 13866: Columns configuration - Patrons search 2015-04-10 10:31:21 -03:00
memberentrygen.tt Bug 4041: (QA followup) Change addressformat to AddressFormat 2015-04-29 11:55:10 -03:00
members-update.tt Bug 13349 [QA Followup] 2015-04-09 12:07:27 -03:00
moremember-brief.tt Bug 13142 - Change "mobile phone" label back to "other phone" 2015-02-13 13:52:10 -03:00
moremember-print.tt Bug 10423: Show date due with time if it's a hourly loan 2015-04-24 20:15:50 -03:00
moremember-receipt.tt
moremember.tt Bug 9528: Add delivery branch to the place hold display 2015-04-30 16:45:26 -03:00
nl-search.tt Bug 13941: [2/2] Fix <body> tags missing id/class 2015-04-24 09:47:38 -03:00
notices.tt Bug 4041: Third step - Display address on patron's pages using the system preference 2015-04-29 11:25:11 -03:00
pay.tt Bug 4041: Third step - Display address on patron's pages using the system preference 2015-04-29 11:25:11 -03:00
paycollect.tt Bug 4041: Third step - Display address on patron's pages using the system preference 2015-04-29 11:25:11 -03:00
printfeercpt.tt Bug 12415: Fee receipt: a charges description should be displayed in all cases 2014-11-21 20:14:02 -03:00
printinvoice.tt Bug 12415: Fee receipt: a charges description should be displayed in all cases 2014-11-21 20:14:02 -03:00
purchase-suggestions.tt Bug 4041: Third step - Display address on patron's pages using the system preference 2015-04-29 11:25:11 -03:00
readingrec.tt Bug 8276: (follow-up) Remove stry </td> 2015-04-22 14:37:15 -03:00
routing-lists.tt Bug 4041: Third step - Display address on patron's pages using the system preference 2015-04-29 11:25:11 -03:00
statistics.tt Bug 4041: Third step - Display address on patron's pages using the system preference 2015-04-29 11:25:11 -03:00
update-child.tt