View | Details | Raw Unified | Return to bug 20083
Collapse All | Expand All

(-)a/opac/opac-showmarc.pl (-8 / +7 lines)
Lines 34-39 use C4::Templates; Link Here
34
use Koha::RecordProcessor;
34
use Koha::RecordProcessor;
35
35
36
my $input       = new CGI;
36
my $input       = new CGI;
37
my ( $template, $loggedinuser, $cookie ) = get_template_and_user({
38
    template_name   => "opac-showmarc.tt",
39
    query           => $input,
40
    type            => "opac",
41
    authnotrequired => ( C4::Context->preference("OpacPublic") ? 1 : 0 ),
42
    debug           => 1,
43
});
37
my $biblionumber = $input->param('id');
44
my $biblionumber = $input->param('id');
38
$biblionumber   = int($biblionumber);
45
$biblionumber   = int($biblionumber);
39
my $importid= $input->param('importid');
46
my $importid= $input->param('importid');
Lines 71-83 if ($view eq 'card' || $view eq 'html') { Link Here
71
    output_html_with_http_headers $input, undef, Encode::encode_utf8(C4::XSLT::engine->transform($xml, $xsl));
78
    output_html_with_http_headers $input, undef, Encode::encode_utf8(C4::XSLT::engine->transform($xml, $xsl));
72
}
79
}
73
else { #view eq marc
80
else { #view eq marc
74
    my ( $template, $loggedinuser, $cookie ) = get_template_and_user({
75
        template_name   => "opac-showmarc.tt",
76
        query           => $input,
77
        type            => "opac",
78
        authnotrequired => ( C4::Context->preference("OpacPublic") ? 1 : 0 ),
79
        debug           => 1,
80
    });
81
    $template->param( MARC_FORMATTED => $record->as_formatted );
81
    $template->param( MARC_FORMATTED => $record->as_formatted );
82
    output_html_with_http_headers $input, $cookie, $template->output;
82
    output_html_with_http_headers $input, $cookie, $template->output;
83
}
83
}
84
- 

Return to bug 20083