kohabug 2207 - improve indicator input in MARC editor
[koha.git] / cataloguing / thesaurus_popup.pl
index 62518ba..1dd3fca 100755 (executable)
 # Suite 330, Boston, MA  02111-1307 USA
 
 use strict;
-use C4::Auth;
 use CGI;
+use C4::Auth;
 use C4::Context;
-use HTML::Template;
-use C4::Search;
 use C4::Output;
 use C4::Authorities;
-use C4::Interface::CGI::Output;
 # get all the data ....
-my %env;
-
 my $input = new CGI;
 my $result = $input->param('result');
 my $search_string= $input->param('search_string');
@@ -70,11 +65,11 @@ if ($op eq "add") {
        $search_string=$insert;
 }
 my ($template, $loggedinuser, $cookie)
-    = get_template_and_user({template_name => "thesaurus_popup.tmpl",
+    = get_template_and_user({template_name => "cataloguing/thesaurus_popup.tmpl",
                             query => $input,
                             type => "intranet",
                             authnotrequired => 0,
-                            flagsrequired => {parameters => 1},
+                            flagsrequired => {editcatalogue => 1},
                             debug => 1,
                             });
 # /search thesaurus terms starting by search_string