Bugzilla – Attachment 145526 Details for
Bug 16522
Add 773 (Host item entry) to the cart and list displays and e-mails
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16522: (follow-up) Remove HTML links from email
Bug-16522-follow-up-Remove-HTML-links-from-email.patch (text/plain), 5.22 KB, created by
Katrin Fischer
on 2023-01-20 15:38:14 UTC
(
hide
)
Description:
Bug 16522: (follow-up) Remove HTML links from email
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2023-01-20 15:38:14 UTC
Size:
5.22 KB
patch
obsolete
>From 5222cdda65720a27fbed355733145e34d5872b15 Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <katrin.fischer@bsz-bw.de> >Date: Wed, 28 Sep 2022 14:11:45 +0000 >Subject: [PATCH] Bug 16522: (follow-up) Remove HTML links from email > >The emails sent for cart and list are plain text and any ><a> tag will be scrubbed by HtmlToText. So we can remove >those links. > >This also solves an issue with the original patch set, >where the error below would appear on sending a cart or >list email from the staff interface: > >Template process failed: file error - biblio_a_href: not found at /kohadevbox/koha/C4/Templates.pm line 127 > >Signed-off-by: Heather Hernandez <heather_hernandez@nps.gov> > >Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/basket/sendbasket.tt | 4 ++-- > .../intranet-tmpl/prog/en/modules/virtualshelves/sendshelf.tt | 4 ++-- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendbasket.tt | 4 ++-- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendshelf.tt | 4 ++-- > 4 files changed, 8 insertions(+), 8 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/sendbasket.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/basket/sendbasket.tt >index 51bc97ff76..097090a5d2 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/sendbasket.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/basket/sendbasket.tt >@@ -131,9 +131,9 @@ Your cart > [% IF BIBLIO_RESULT.HOSTITEMENTRIES %] > <span>In: > [% IF BIBLIO_RESULT.HOSTITEMENTRIES.biblionumber %] >- [% INCLUDE 'biblio-title.inc' link = 1 biblio=BIBLIO_RESULT.HOSTITEMENTRIES %] [% BIBLIO_RESULT.RELATEDPARTS | $raw %] >+ [% INCLUDE 'biblio-title.inc' biblio=BIBLIO_RESULT.HOSTITEMENTRIES %] [% BIBLIO_RESULT.RELATEDPARTS | $raw %] > [% ELSE %] >- [% BIBLIO_RESULT.HOSTITEMENTRIES | html %] >+ [% BIBLIO_RESULT.HOSTITEMENTRIES | html %] > [% END %] > </span> > <br/> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/sendshelf.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/sendshelf.tt >index a13299f9c7..ed05c96b7f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/sendshelf.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/sendshelf.tt >@@ -138,9 +138,9 @@ Your list: [% shelfname | $raw %] > [% IF BIBLIO_RESULT.HOSTITEMENTRIES %] > <span>In: > [% IF BIBLIO_RESULT.HOSTITEMENTRIES.biblionumber %] >- [% INCLUDE 'biblio-title.inc' link = 1 biblio=BIBLIO_RESULT.HOSTITEMENTRIES %] [% BIBLIO_RESULT.RELATEDPARTS | $raw %] >+ [% INCLUDE 'biblio-title.inc' biblio=BIBLIO_RESULT.HOSTITEMENTRIES %] [% BIBLIO_RESULT.RELATEDPARTS | $raw %] > [% ELSE %] >- [% BIBLIO_RESULT.HOSTITEMENTRIES | html %] >+ [% BIBLIO_RESULT.HOSTITEMENTRIES | html %] > [% END %] > </span> > <br/> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendbasket.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendbasket.tt >index 03b1de3837..f676084f90 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendbasket.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendbasket.tt >@@ -136,9 +136,9 @@ Your cart > [% IF BIBLIO_RESULT.HOSTITEMENTRIES %] > <span>In: > [% IF BIBLIO_RESULT.HOSTITEMENTRIES.biblionumber %] >- <a href="[% OPACBaseURL | $raw %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% BIBLIO_RESULT.HOSTITEMENTRIES.biblionumber | uri %]">[% INCLUDE 'biblio-title.inc' biblio=BIBLIO_RESULT.HOSTITEMENTRIES %]</a> [% BIBLIO_RESULT.RELATEDPARTS | $raw %] >+ [% INCLUDE 'biblio-title.inc' biblio=BIBLIO_RESULT.HOSTITEMENTRIES %] [% BIBLIO_RESULT.RELATEDPARTS | $raw %] > [% ELSE %] >- [% BIBLIO_RESULT.HOSTITEMENTRIES | html %] >+ [% BIBLIO_RESULT.HOSTITEMENTRIES | html %] > [% END %] > </span> > <br/> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendshelf.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendshelf.tt >index 8432b6441f..4de4ab7f35 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendshelf.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendshelf.tt >@@ -139,9 +139,9 @@ Your list : [% shelfname | $raw %] > [% IF BIBLIO_RESULT.HOSTITEMENTRIES %] > <span>In: > [% IF BIBLIO_RESULT.HOSTITEMENTRIES.biblionumber %] >- <a href="[% OPACBaseURL | $raw %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% BIBLIO_RESULT.HOSTITEMENTRIES.biblionumber | uri %]">[% INCLUDE 'biblio-title.inc' biblio=BIBLIO_RESULT.HOSTITEMENTRIES %]</a> [% BIBLIO_RESULT.RELATEDPARTS | $raw %] >+ [% INCLUDE 'biblio-title.inc' biblio=BIBLIO_RESULT.HOSTITEMENTRIES %] [% BIBLIO_RESULT.RELATEDPARTS | $raw %] > [% ELSE %] >- [% BIBLIO_RESULT.HOSTITEMENTRIES | html %] >+ [% BIBLIO_RESULT.HOSTITEMENTRIES | html %] > [% END %] > </span> > <br/> >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 16522
:
114178
|
114429
|
120425
|
130250
|
133509
|
135416
|
137196
|
137197
|
139168
|
139169
|
139846
|
139847
|
139848
|
141058
|
141059
|
141060
|
141061
|
141062
|
141063
|
142036
|
142037
|
142038
|
142039
|
142040
|
142041
|
142042
|
142843
|
144455
|
144456
|
145047
|
145521
|
145522
|
145523
|
145524
|
145525
| 145526 |
145527
|
145528