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

(-)file_not_specified_in_diff (-11 / +12 lines)
Line  Link Here
0
-- showmarc.pl.master  2018-01-23 15:31:36.741812289 +0100
0
++ showmarc.pl.fixed   2018-01-24 08:05:31.872892073 +0100
Lines 37-42 Link Here
37
use C4::XSLT ();
37
use C4::XSLT ();
38
my $input= new CGI;
38
my $input= new CGI;
39
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
40
  {
41
    template_name   => "catalogue/showmarc.tt",
42
    query           => $input,
43
    type            => "intranet",
44
    authnotrequired => 0,
45
    flagsrequired   => { catalogue => 1  },
46
    debug           => 1,
47
  }
48
);
49
39
my $biblionumber= $input->param('id');
50
my $biblionumber= $input->param('id');
40
my $importid= $input->param('importid');
51
my $importid= $input->param('importid');
41
my $view= $input->param('viewas')||'';
52
my $view= $input->param('viewas')||'';
Lines 70-85 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
}

Return to bug 20083