Lines 30-37
C4::Scrubber is used to remove all markup content from the sumitted text.
Link Here
|
30 |
|
30 |
|
31 |
=cut |
31 |
=cut |
32 |
|
32 |
|
33 |
use strict; |
33 |
use Modern::Perl; |
34 |
use warnings; |
34 |
|
35 |
use CGI qw ( -utf8 ); |
35 |
use CGI qw ( -utf8 ); |
36 |
use CGI::Cookie; # need to check cookies before having CGI parse the POST request |
36 |
use CGI::Cookie; # need to check cookies before having CGI parse the POST request |
37 |
|
37 |
|
Lines 234-242
if ($loggedinuser) {
Link Here
|
234 |
$tag->{subtitle} = GetRecordValue( 'subtitle', $record, GetFrameworkCode( $tag->{biblionumber} ) ); |
234 |
$tag->{subtitle} = GetRecordValue( 'subtitle', $record, GetFrameworkCode( $tag->{biblionumber} ) ); |
235 |
$tag->{title} = $biblio->{title}; |
235 |
$tag->{title} = $biblio->{title}; |
236 |
$tag->{author} = $biblio->{author}; |
236 |
$tag->{author} = $biblio->{author}; |
237 |
if (C4::Context->preference("OPACXSLTResultsDisplay")) { |
237 |
|
238 |
$tag->{XSLTBloc} = XSLTParse4Display($tag->{biblionumber}, $record, "OPACXSLTResultsDisplay"); |
238 |
my $xslfile = C4::Context->preference('OPACXSLTResultsDisplay'); |
|
|
239 |
my $lang = $xslfile ? C4::Languages::getlanguage() : undef; |
240 |
my $sysxml = $xslfile ? C4::XSLT::get_xslt_sysprefs() : undef; |
241 |
|
242 |
if ( $xslfile ) { |
243 |
$tag->{XSLTBloc} = XSLTParse4Display( |
244 |
$tag->{ biblionumber }, $record, "OPACXSLTResultsDisplay", |
245 |
1, undef, $sysxml, $xslfile, $lang |
246 |
); |
239 |
} |
247 |
} |
|
|
248 |
|
240 |
my $date = $tag->{date_created} || ''; |
249 |
my $date = $tag->{date_created} || ''; |
241 |
$date =~ /\s+(\d{2}\:\d{2}\:\d{2})/; |
250 |
$date =~ /\s+(\d{2}\:\d{2}\:\d{2})/; |
242 |
$tag->{time_created_display} = $1; |
251 |
$tag->{time_created_display} = $1; |
243 |
- |
|
|