Lines 37-42
use C4::ImportBatch;
Link Here
|
37 |
use C4::XSLT (); |
37 |
use C4::XSLT (); |
38 |
|
38 |
|
39 |
my $input= new CGI; |
39 |
my $input= new CGI; |
|
|
40 |
my ( $template, $loggedinuser, $cookie ) = get_template_and_user( |
41 |
{ |
42 |
template_name => "catalogue/showmarc.tt", |
43 |
query => $input, |
44 |
type => "intranet", |
45 |
authnotrequired => 0, |
46 |
flagsrequired => { catalogue => 1 }, |
47 |
debug => 1, |
48 |
} |
49 |
); |
50 |
|
40 |
my $biblionumber= $input->param('id'); |
51 |
my $biblionumber= $input->param('id'); |
41 |
my $importid= $input->param('importid'); |
52 |
my $importid= $input->param('importid'); |
42 |
my $view= $input->param('viewas')||''; |
53 |
my $view= $input->param('viewas')||''; |
Lines 70-85
if($view eq 'card' || $view eq 'html') {
Link Here
|
70 |
Encode::encode_utf8(C4::XSLT::engine->transform($xml, $xsl)); |
81 |
Encode::encode_utf8(C4::XSLT::engine->transform($xml, $xsl)); |
71 |
} |
82 |
} |
72 |
else { |
83 |
else { |
73 |
my ( $template, $loggedinuser, $cookie ) = get_template_and_user( |
|
|
74 |
{ |
75 |
template_name => "catalogue/showmarc.tt", |
76 |
query => $input, |
77 |
type => "intranet", |
78 |
authnotrequired => 0, |
79 |
flagsrequired => { catalogue => 1 }, |
80 |
debug => 1, |
81 |
} |
82 |
); |
83 |
$template->param( MARC_FORMATTED => $record->as_formatted ); |
84 |
$template->param( MARC_FORMATTED => $record->as_formatted ); |
84 |
output_html_with_http_headers $input, $cookie, $template->output; |
85 |
output_html_with_http_headers $input, $cookie, $template->output; |
85 |
} |
86 |
} |
86 |
- |
|
|