Merge remote-tracking branch 'kc/new/bug_6351' into kcmaster
[koha_gimpoz] / cataloguing / value_builder / labs_theses.pl
index 5f327d2..d486649 100755 (executable)
@@ -83,8 +83,6 @@ sub plugin {
                my $strquery = "SELECT authorised_value, lib from authorised_values where category = ? and lib like ?";
 #              $strquery .= " LIMIT $startfrom,$upperlimit";
 
-               warn 'category : '.$cat_auth.' recherche :'.$search;
-               warn "$strquery";
                $search=~s/\*/%/g;
                my $sth = $dbh->prepare($strquery);
                $sth->execute($cat_auth,$search);
@@ -110,7 +108,7 @@ sub plugin {
                        = get_template_and_user({template_name => "value_builder/labs_theses.tmpl",
                                        query => $query,
                                        type => 'intranet',
-                                       authnotrequired => 1,
+                                       authnotrequired => 0,
                                        debug => 1,
                                        });
 
@@ -167,7 +165,7 @@ sub plugin {
                        = get_template_and_user({template_name => "value_builder/labs_theses.tmpl",
                                                query => $query,
                                                type => "intranet",
-                                               authnotrequired => 1,
+                                               authnotrequired => 0,
                                        });
 
                $template->param(
@@ -176,7 +174,6 @@ sub plugin {
                $template->param(
                                                'index'=>''.$query->param('index')
                ) if ($query->param('index'));
-               warn 'index : '.$query->param('index');
                $template->param(
                                                'cat_auth'=>$cat_auth
                ) if ($cat_auth);