From ba610a9a4a21e31a0b545ad067da539bf101e5ee Mon Sep 17 00:00:00 2001 From: tipaul Date: Mon, 22 Nov 2004 16:41:03 +0000 Subject: [PATCH] fixing a problem in char encoding : translation of the send basket was erroneous --- koha-tmpl/opac-tmpl/css/en/opac-sendbasket.tmpl | 16 ++++++++-------- opac/opac-sendbasket.pl | 8 ++++---- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/koha-tmpl/opac-tmpl/css/en/opac-sendbasket.tmpl b/koha-tmpl/opac-tmpl/css/en/opac-sendbasket.tmpl index dd60090354..996520e421 100644 --- a/koha-tmpl/opac-tmpl/css/en/opac-sendbasket.tmpl +++ b/koha-tmpl/opac-tmpl/css/en/opac-sendbasket.tmpl @@ -1,17 +1,17 @@ -§SUBJECT§ + Your biblio basket -§END_SUBJECT§ + -§HEADER§ +
Hi, Here is your biblio basket... -§END_HEADER§ + -§FILENAME§ + basket.txt -§END_FILENAME§ + -§MESSAGE§ + --------------------------------------------- (record ) ISBN: @@ -31,4 +31,4 @@ LCCN: URL : --------------------------------------------- -§END_MESSAGE§ + diff --git a/opac/opac-sendbasket.pl b/opac/opac-sendbasket.pl index 07e503f0db..ca678e5b2c 100755 --- a/opac/opac-sendbasket.pl +++ b/opac/opac-sendbasket.pl @@ -64,16 +64,16 @@ if ($email_add) { my $template_res = $template2->output(); # Analysing information and getting mail properties - if ($template_res =~ /§SUBJECT§\n(.*)\n§END_SUBJECT§/s) { $mail{'subject'} = $1; } + if ($template_res =~ /\n(.*)\n/s) { $mail{'subject'} = $1; } else { $mail{'subject'} = "no subject"; } my $email_header = ""; - if ($template_res =~ /§HEADER§\n(.*)\n§END_HEADER§/s) { $email_header = $1; } + if ($template_res =~ /
\n(.*)\n/s) { $email_header = $1; } my $email_file = "basket.txt"; - if ($template_res =~ /§FILENAME§\n(.*)\n§END_FILENAME§/s) { $email_file = $1; } + if ($template_res =~ /\n(.*)\n/s) { $email_file = $1; } - if ($template_res =~ /§MESSAGE§\n(.*)\n§END_MESSAGE§/s) { $mail{'body'} = $1; } + if ($template_res =~ /\n(.*)\n/s) { $mail{'body'} = $1; } my $boundary = "====" . time() . "===="; $mail{'content-type'} = "multipart/mixed; boundary=\"$boundary\""; -- 2.39.5