character encoding ISO646 => 8859-1, first draft
[koha.git] / detail.pl
index b94272d..d39c182 100755 (executable)
--- a/detail.pl
+++ b/detail.pl
@@ -21,19 +21,19 @@ use HTML::Template;
 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
@@ -71,7 +71,7 @@ my $startfrom=$query->param('startfrom');
 ($startfrom) || ($startfrom=0);
 
 my $template;
-if ($type='opac') {
+if ($type eq 'opac') {
        $template = gettemplate("catalogue/detail-opac.tmpl");
 } else {
        $template=gettemplate("catalogue/detail.tmpl");