+ if ( $tt_block =~ m{\s?\|\s?\$KohaDates[^\|]*\|.*$}
+ ) {
+ $tt_block =~
+ s/\s*\|\s*(uri|url|html)\s*$//; # Could be another filter...
+ $line =~ s{
+ \[%
+ \s*$pre_chomp\s*
+ \Q$tt_block\E\s*\|\s*(uri|url|html)
+ \s*$post_chomp\s*
+ %\]
+ }{[%$pre_chomp$tt_block$post_chomp%]}xms;
+
+ return ( $line, 'extra_filter_not_needed' );
+ }
+