Bug 6806 Fix encoding of title in subscription-add

Port of Maxime Pelletier <maxime.pelletier@libeo.com>'s patch for
3.2 to TT
Stops the mangling of titles containing accented characters

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit d010412c66)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
This commit is contained in:
Colin Campbell 2011-08-30 14:58:36 +01:00 committed by Chris Nighswonger
parent b7f7c10761
commit 8558f011e4
1 changed files with 3 additions and 5 deletions

View File

@ -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>