Bugzilla – Attachment 193500 Details for
Bug 40659
Allow "My virtual card" format and content to be customizable
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40659: Change Scrubber profile name to opac_virtual_card
Bug-40659-Change-Scrubber-profile-name-to-opacvirt.patch (text/plain), 2.01 KB, created by
Victor Grousset/tuxayo
on 2026-02-20 00:38:53 UTC
(
hide
)
Description:
Bug 40659: Change Scrubber profile name to opac_virtual_card
Filename:
MIME Type:
Creator:
Victor Grousset/tuxayo
Created:
2026-02-20 00:38:53 UTC
Size:
2.01 KB
patch
obsolete
>From e2fe2168271f2430148a7884fcf77da6939c6a24 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Mon, 17 Nov 2025 15:58:31 +0000 >Subject: [PATCH] Bug 40659: Change Scrubber profile name to opac_virtual_card > >Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> >--- > C4/Scrubber.pm | 6 +++++- > opac/opac-virtual-card.pl | 2 +- > t/Scrubber.t | 2 +- > 3 files changed, 7 insertions(+), 3 deletions(-) > >diff --git a/C4/Scrubber.pm b/C4/Scrubber.pm >index 8086c43ad9..e80921b3dc 100644 >--- a/C4/Scrubber.pm >+++ b/C4/Scrubber.pm >@@ -88,7 +88,7 @@ my %scrubbertypes = ( > }, > ], > }, >- opac => { >+ opac_virtual_card => { > allow => [ > qw( > div span h1 h2 h3 h4 h5 h6 p br >@@ -108,6 +108,10 @@ my %scrubbertypes = ( > class => qr/^[\w\s\-_]+$/, > id => qr/^[\w\-_]+$/, > }, >+ p => { >+ class => qr/^[\w\s\-_]+$/, >+ id => qr/^[\w\-_]+$/, >+ }, > 'svg' => { > 'id' => qr/^[\w\-_]+$/, > 'class' => qr/^[\w\s\-_]+$/, >diff --git a/opac/opac-virtual-card.pl b/opac/opac-virtual-card.pl >index f09ca2559c..4b8cdc142f 100755 >--- a/opac/opac-virtual-card.pl >+++ b/opac/opac-virtual-card.pl >@@ -76,7 +76,7 @@ my $content = C4::Letters::GetPreparedLetter( > ) > ); > >-my $scrubber = C4::Scrubber->new('opac'); >+my $scrubber = C4::Scrubber->new('opac_virtual_card'); > my $scrubbed = $scrubber->scrub( $content->{content} ); > > $content->{content} = $scrubbed; >diff --git a/t/Scrubber.t b/t/Scrubber.t >index b00e92334d..96eac5becf 100755 >--- a/t/Scrubber.t >+++ b/t/Scrubber.t >@@ -322,7 +322,7 @@ subtest 'record_display profile tests' => sub { > subtest 'opac profile tests' => sub { > plan tests => 20; > >- my $scrubber = C4::Scrubber->new('opac'); >+ my $scrubber = C4::Scrubber->new('opac_virtual_card'); > > # Test basic allowed elements > is( >-- >2.53.0
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 40659
:
187695
|
187696
|
187697
|
187706
|
187894
|
187895
|
187896
|
188357
|
188358
|
188359
|
189633
|
193497
|
193498
|
193499
| 193500