[followup](bug #4051) add borrower "title", and complete address in csv
[koha.git] / admin / koha2marclinks.pl
index 28dfadd..e65e1e5 100755 (executable)
@@ -19,7 +19,6 @@
 
 use strict;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::Auth;
 use CGI;
 use C4::Context;
@@ -90,7 +89,6 @@ if ( $op eq 'add_form' ) {
             -default =>
               "$defaulttagfield $defaulttagsubfield - $defaultliblibrarian",
             -size     => 1,
-            -tabindex => '',
             -multiple => 0,
         );
         $template->param( "marclist$i" => $marclist );
@@ -124,7 +122,6 @@ elsif ( $op eq 'add_validate' ) {
 ################## DEFAULT ##################################
 }
 else {    # DEFAULT
-    my $env;
     my $sth =
       $dbh->prepare(
 "Select tagfield,tagsubfield,liblibrarian,kohafield from marc_subfield_structure"
@@ -143,15 +140,8 @@ else {    # DEFAULT
     my $sth2 = $dbh->prepare("SHOW COLUMNS from $tablename");
     $sth2->execute;
 
-    my $toggle    = "white";
     my @loop_data = ();
     while ( ( my $field ) = $sth2->fetchrow_array ) {
-        if ( $toggle eq 'white' ) {
-            $toggle = "#ffffcc";
-        }
-        else {
-            $toggle = "white";
-        }
         my %row_data;    # get a fresh hash for the row data
         $row_data{tagfield} = $fields{ $tablename . "." . $field }->{tagfield};
         $row_data{tagsubfield} =
@@ -161,7 +151,6 @@ else {    # DEFAULT
         $row_data{kohafield} = $field;
         $row_data{edit}      =
 "$script_name?op=add_form&tablename=$tablename&kohafield=$field";
-        $row_data{bgcolor} = $toggle;
         push( @loop_data, \%row_data );
     }
     $template->param(
@@ -175,15 +164,8 @@ else {    # DEFAULT
             ],
             -default  => $tablename,
             -size     => 1,
-            -tabindex => '',
             -multiple => 0
         )
     );
 }    #---- END $OP eq DEFAULT
-$template->param(
-    intranetcolorstylesheet =>
-      C4::Context->preference("intranetcolorstylesheet"),
-    intranetstylesheet => C4::Context->preference("intranetstylesheet"),
-    IntranetNav        => C4::Context->preference("IntranetNav"),
-);
 output_html_with_http_headers $input, $cookie, $template->output;