Followup Adding system preference XSLT*FileName
[koha.git] / opac / opac-detail.pl
index 817c203..bf2ef9f 100755 (executable)
@@ -60,6 +60,7 @@ my $biblionumber = $query->param('biblionumber') || $query->param('bib');
 
 $template->param( 'AllowOnShelfHolds' => C4::Context->preference('AllowOnShelfHolds') );
 $template->param( 'ItemsIssued' => CountItemsIssued( $biblionumber ) );
+$template->param(C4::Search::enabled_opac_search_views);
 
 my $record       = GetMarcBiblio($biblionumber);
 if ( ! $record ) {
@@ -70,7 +71,7 @@ $template->param( biblionumber => $biblionumber );
 # XSLT processing of some stuff
 if (C4::Context->preference("XSLTDetailsDisplay") ) {
     $template->param(
-        'XSLTBloc' => XSLTParse4Display($biblionumber, $record, C4::Context->preference("XSLTDetailsDisplay")) );
+        'XSLTBloc' => XSLTParse4Display($biblionumber, $record, 'Detail') );
 }
 
 # change back when ive fixed request.pl
@@ -182,7 +183,7 @@ my $marcauthorsarray = GetMarcAuthors   ($record,$marcflavour);
 my $marcsubjctsarray = GetMarcSubjects  ($record,$marcflavour);
 my $marcseriesarray  = GetMarcSeries    ($record,$marcflavour);
 my $marcurlsarray    = GetMarcUrls      ($record,$marcflavour);
-my $subtitle         = C4::Biblio::get_koha_field_from_marc('bibliosubtitle', 'subtitle', $record, '');
+my $subtitle         = GetRecordValue('subtitle', $record, GetFrameworkCode($biblionumber));
 
     $template->param(
                      normalized_oclc         => GetNormalizedOCLCNumber($record,$marcflavour),