Bug 32852: Fix cataloguing/value_builder/unimarc_field_125b.pl
[koha-ffzg.git] / cataloguing / value_builder / unimarc_field_225a.pl
index b494f30..31556ae 100755 (executable)
@@ -41,12 +41,13 @@ It need :
 
 use strict;
 #use warnings; FIXME - Bug 2505
-use C4::Auth;
+use C4::Auth qw( get_template_and_user );
 use CGI qw ( -utf8 );
 use C4::Context;
 
-use C4::AuthoritiesMarc;
-use C4::Output;
+use C4::Auth qw( get_template_and_user );
+use C4::Output qw( output_html_with_http_headers );
+use C4::AuthoritiesMarc qw( SearchAuthorities GetAuthority );
 
 =head1 DESCRIPTION
 
@@ -55,14 +56,14 @@ plugin_parameters : other parameters added when the plugin is called by the dopo
 =cut
 
 sub plugin_javascript {
-    my ( $dbh, $record, $tagslib, $field_number, $tabloop ) = @_;
+    my ( $dbh, $record, $tagslib, $field_number ) = @_;
     my $function_name = $field_number;
     my $res = "
-    <script type=\"text/javascript\">
+    <script>
     
     
         function Clic$function_name(index) {
-        // find the 010a value and the 210c. it will be used in the popup to find possibles collections
+        /* find the 010a value and the 210c. it will be used in the popup to find possibles collections */
             var isbn_found   = 0;
             var editor_found = 0;
             
@@ -104,7 +105,6 @@ sub plugin {
             query           => $input,
             type            => "intranet",
             flagsrequired   => { editcatalogue => '*' },
-            debug           => 1,
         }
     );