bug 2545: fix XSLTDetailsDisplay
authorGalen Charlton <galen.charlton@liblime.com>
Fri, 22 Aug 2008 00:59:45 +0000 (19:59 -0500)
committerChris Cormack <chris@bigballofwax.co.nz>
Thu, 3 Sep 2009 22:56:26 +0000 (10:56 +1200)
Corrected so that when XSLTDetailsDisplay is ON but
XSLTResultsDisplay is OFF, the portion of the OPAC bib
details page that's derived from the MARC bib record
is no longer missing.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
opac/opac-detail.pl

index 2130f99..bdf1866 100755 (executable)
@@ -62,8 +62,8 @@ my $record       = GetMarcBiblio($biblionumber);
 $template->param( biblionumber => $biblionumber );
 # XSLT processing of some stuff
 if (C4::Context->preference("XSLTDetailsDisplay") ) {
-    $template->param(
-        'XSLTBloc' => XSLTParse4Display($biblionumber, $record, 'Detail') );
+    my $newxmlrecord = XSLTParse4Display($biblionumber,C4::Context->config('opachtdocs')."/prog/en/xslt/MARC21slim2OPACDetail.xsl");
+    $template->param('XSLTBloc' => $newxmlrecord);
 }
 
 # change back when ive fixed request.pl