use strict;
require Exporter;
use C4::Context;
-use C4::Output; # contains picktemplate
+use C4::Output; # contains gettemplate
use CGI;
use C4::Search;
use C4::Auth;
my $query=new CGI;
my $type=$query->param('type');
-(-e "opac") && ($type='opac');
+#(-e "opac") && ($type='opac');
($type) || ($type='intra');
my ($loggedinuser, $cookie, $sessionID) = checkauth($query, ($type eq 'opac') ? (1) : (0));
my $biblionumber=$query->param('bib');
-my $type='intra';
+#my $type='intra'; # FIXME - There's already a $type in this scope
# change back when ive fixed request.pl
($startfrom) || ($startfrom=0);
my $template;
-if ($type='opac') {
+if ($type eq 'opac') {
$template = gettemplate("catalogue/detail-opac.tmpl");
} else {
$template=gettemplate("catalogue/detail.tmpl");