From: Colin Campbell <[email protected]> Port of Maxime Pelletier <[email protected]>'s patch for 3.2 to TT Stops the mangling of titles containing accented characters
Signed-off-by: Owen Leonard <[email protected]> --- .../prog/en/modules/serials/result.tt | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/result.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/result.tt index 2f46119..30ec303 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/result.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/result.tt @@ -5,9 +5,7 @@ //<![CDATA[ function GetIt(bibno,title) { - title = title.replace(/\?/,"\?"); - title = title.replace(/"/,"\""); - title = title.replace(/'/,"\'"); + title = title.parents('tr').find('.title').text(); opener.document.f.biblionumber.value = bibno; opener.document.f.title.value = title; window.close(); @@ -33,7 +31,7 @@ function GetIt(bibno,title) </tr> [% FOREACH resultsloo IN resultsloop %] <tr> - <td>[% resultsloo.title |html %] [% resultsloo.subtitle |html %] + <td class="title">[% resultsloo.title |html %] [% resultsloo.subtitle |html %] </td> <td> [% resultsloo.author |html %] @@ -44,7 +42,7 @@ function GetIt(bibno,title) <td> [% resultsloo.publicationyear |html %] </td> - <td><a href="#" onclick="GetIt('[% resultsloo.biblionumber %]','[% resultsloo.title |url %]');" title="Choose this record">Choose</a></td> + <td><a href="#" onclick="GetIt('[% resultsloo.biblionumber %]',$(this));" title="Choose this record">Choose</a></td> </tr> [% END %] </table> -- 1.7.3 _______________________________________________ Koha-patches mailing list [email protected] http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
