Lines 56-61
unless ( $biblio ) {
Link Here
|
56 |
} |
56 |
} |
57 |
|
57 |
|
58 |
my $view= $input->param('viewas') || 'marc'; |
58 |
my $view= $input->param('viewas') || 'marc'; |
|
|
59 |
my $marcflavour = C4::Context->preference('marcflavour'); |
60 |
my $format = $marcflavour eq 'UNIMARC' ? 'UNIMARC' : 'USMARC'; |
59 |
|
61 |
|
60 |
my $record_processor = Koha::RecordProcessor->new( |
62 |
my $record_processor = Koha::RecordProcessor->new( |
61 |
{ |
63 |
{ |
Lines 77-83
if(!ref $record) {
Link Here
|
77 |
$record_processor->process($record); |
79 |
$record_processor->process($record); |
78 |
|
80 |
|
79 |
if ($view eq 'card' || $view eq 'html') { |
81 |
if ($view eq 'card' || $view eq 'html') { |
80 |
my $xml = $record->as_xml; |
82 |
my $xml = $record->as_xml($format); |
81 |
my $xsl = $view eq 'card' ? 'compact.xsl' : 'plainMARC.xsl'; |
83 |
my $xsl = $view eq 'card' ? 'compact.xsl' : 'plainMARC.xsl'; |
82 |
my $htdocs = C4::Context->config('opachtdocs'); |
84 |
my $htdocs = C4::Context->config('opachtdocs'); |
83 |
my ($theme, $lang) = C4::Templates::themelanguage($htdocs, $xsl, 'opac', $input); |
85 |
my ($theme, $lang) = C4::Templates::themelanguage($htdocs, $xsl, 'opac', $input); |
84 |
- |
|
|