Lines 157-163
sub _get_best_default_xslt_filename {
Link Here
|
157 |
return $xslfilename; |
157 |
return $xslfilename; |
158 |
} |
158 |
} |
159 |
|
159 |
|
160 |
sub _get_xslt_sysprefs { |
160 |
sub get_xslt_sysprefs { |
161 |
my $sysxml = "<sysprefs>\n"; |
161 |
my $sysxml = "<sysprefs>\n"; |
162 |
foreach my $syspref ( qw/ hidelostitems OPACURLOpenInNewWindow |
162 |
foreach my $syspref ( qw/ hidelostitems OPACURLOpenInNewWindow |
163 |
DisplayOPACiconsXSLT URLLinkText viewISBD |
163 |
DisplayOPACiconsXSLT URLLinkText viewISBD |
Lines 185-195
sub _get_xslt_sysprefs {
Link Here
|
185 |
|
185 |
|
186 |
sub XSLTParse4Display { |
186 |
sub XSLTParse4Display { |
187 |
my ( $biblionumber, $orig_record, $xslsyspref, $fixamps, $hidden_items, $sysxml, $xslfilename, $lang ) = @_; |
187 |
my ( $biblionumber, $orig_record, $xslsyspref, $fixamps, $hidden_items, $sysxml, $xslfilename, $lang ) = @_; |
188 |
#my $xslfilename = C4::Context->preference($xslsyspref); |
188 |
|
|
|
189 |
$sysxml ||= C4::Context->preference($xslsyspref); |
190 |
$xslfilename ||= C4::Context->preference($xslsyspref); |
191 |
$lang ||= C4::Languages::getlanguage(); |
192 |
|
189 |
if ( $xslfilename =~ /^\s*"?default"?\s*$/i ) { |
193 |
if ( $xslfilename =~ /^\s*"?default"?\s*$/i ) { |
190 |
my $htdocs; |
194 |
my $htdocs; |
191 |
my $theme; |
195 |
my $theme; |
192 |
# my $lang = C4::Languages::getlanguage(); |
|
|
193 |
my $xslfile; |
196 |
my $xslfile; |
194 |
if ($xslsyspref eq "XSLTDetailsDisplay") { |
197 |
if ($xslsyspref eq "XSLTDetailsDisplay") { |
195 |
$htdocs = C4::Context->config('intrahtdocs'); |
198 |
$htdocs = C4::Context->config('intrahtdocs'); |
Lines 216-222
sub XSLTParse4Display {
Link Here
|
216 |
} |
219 |
} |
217 |
|
220 |
|
218 |
if ( $xslfilename =~ m/\{langcode\}/ ) { |
221 |
if ( $xslfilename =~ m/\{langcode\}/ ) { |
219 |
my $lang = C4::Languages::getlanguage(); |
|
|
220 |
$xslfilename =~ s/\{langcode\}/$lang/; |
222 |
$xslfilename =~ s/\{langcode\}/$lang/; |
221 |
} |
223 |
} |
222 |
|
224 |
|
223 |
- |
|
|