remove a bunch of unconditional debug warns
authorGalen Charlton <gmcharlt@gmail.com>
Fri, 2 Jul 2010 14:56:15 +0000 (10:56 -0400)
committerGalen Charlton <gmcharlt@gmail.com>
Fri, 2 Jul 2010 14:57:08 +0000 (10:57 -0400)
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
27 files changed:
C4/Acquisition.pm
C4/Items.pm
C4/Labels/Label.pm
C4/Letters.pm
C4/Record.pm
C4/Ris.pm
C4/Search.pm
C4/Z3950.pm
acqui/neworderbiblio.pl
acqui/parcel.pl
acqui/z3950_search.pl
cataloguing/value_builder/labs_theses.pl
cataloguing/value_builder/marc21_leader_book.pl
cataloguing/value_builder/marc21_leader_computerfile.pl
cataloguing/value_builder/marc21_leader_video.pl
cataloguing/value_builder/stocknumberam123.pl
cataloguing/value_builder/unimarc_field_010.pl
labels/label-edit-template.pl
members/notices.pl
opac/changelanguage.pl
opac/opac-search.pl
opac/opac-userupdate.pl
reports/cat_issues_top.pl
reports/guided_reports.pl
reports/issues_avg_stats.pl
reports/manager.pl
tools/export.pl

index 4ce47fc..984c15a 100644 (file)
@@ -1012,8 +1012,6 @@ sub ModOrderItem {
 
     my $query = "UPDATE aqorders_items set itemnumber=? where itemnumber=? and ordernumber=?";
     my @params = ($orderiteminfo->{'newitemnumber'}, $orderiteminfo->{'itemnumber'}, $orderiteminfo->{'ordernumber'});
-    warn $query;
-    warn Data::Dumper::Dumper(@params);
     my $sth = $dbh->prepare($query);
     $sth->execute(@params);
     return 0;
@@ -1587,7 +1585,6 @@ sub GetHistory {
             }
         }
         $query .= " ORDER BY id";
-       warn $query;
         my $sth = $dbh->prepare($query);
         $sth->execute( @query_params );
         my $cnt = 1;
index 96f60f0..794bff7 100644 (file)
@@ -148,7 +148,6 @@ sub GetItem {
     my $ssth = $dbh->prepare("SELECT serialseq,publisheddate from serialitems left join serial on serialitems.serialid=serial.serialid where serialitems.itemnumber=?");
         $ssth->execute($data->{'itemnumber'}) ;
         ($data->{'serialseq'} , $data->{'publisheddate'}) = $ssth->fetchrow_array();
-               warn $data->{'serialseq'} , $data->{'publisheddate'};
     }
        #if we don't have an items.itype, use biblioitems.itemtype.
        if( ! $data->{'itype'} ) {
index 9fb09f3..ef5fa15 100644 (file)
@@ -286,7 +286,7 @@ sub _BIBBAR {
     my $barcode_y_scale_factor = 0.01 * $self->{'height'};              # this scales the barcode height to 10% of the label height
     my $line_spacer = ($self->{'font_size'} * 1);       # number of pixels between text rows (This is actually leading: baseline to baseline minus font size. Recommended starting point is 20% of font size.).
     my $text_lly = ($self->{'lly'} + ($self->{'height'} - $self->{'top_text_margin'}));
-    warn  "Label: llx $self->{'llx'}, lly $self->{'lly'}, Text: lly $text_lly, $line_spacer, Barcode: llx $barcode_llx, lly $barcode_lly, $barcode_width, $barcode_y_scale_factor\n";
+    $debug and warn  "Label: llx $self->{'llx'}, lly $self->{'lly'}, Text: lly $text_lly, $line_spacer, Barcode: llx $barcode_llx, lly $barcode_lly, $barcode_width, $barcode_y_scale_factor\n";
     return $self->{'llx'}, $text_lly, $line_spacer, $barcode_llx, $barcode_lly, $barcode_width, $barcode_y_scale_factor;
 }
 
index 3f634e1..885ed5f 100644 (file)
@@ -349,8 +349,6 @@ sub SendAlerts {
                 'Content-Type' => 'text/plain; charset="utf8"',
             );
             sendmail(%mail) or carp $Mail::Sendmail::error;
-            warn
-"sending to $mail{To} From $mail{From} subj $mail{Subject} Mess $mail{Message}";
         }
         if ( C4::Context->preference("LetterLog") ) {
             logaction(
@@ -439,8 +437,6 @@ sub SendAlerts {
                   . $innerletter->{content}
             ) if C4::Context->preference("LetterLog");
         }
-        warn
-"sending to From $userenv->{emailaddress} subj $innerletter->{title} Mess $innerletter->{content}";
     }    
    # send an "account details" notice to a newly created user 
     elsif ( $type eq 'members' ) {
index 37fc3e1..3b07398 100644 (file)
@@ -324,7 +324,6 @@ sub marc2csv {
         ($preprocess,$postprocess, $fieldprocessing) = YAML::LoadFile($configfile);
     }
 
-    warn $fieldprocessing;
     # Preprocessing
     eval $preprocess if ($preprocess);
 
index fcb5b89..11873d9 100644 (file)
--- a/C4/Ris.pm
+++ b/C4/Ris.pm
@@ -278,8 +278,6 @@ sub marc2ris {
        ## end RIS dataset
        print "ER  - \n";
 
-    warn $outvar;
-
     # Let's re-redirect stdout
     close STDOUT;
     open STDOUT, ">&", $oldout;
@@ -947,7 +945,6 @@ sub charconv {
     }
     elsif ($uniout eq "t") {
        ## convert to utf-8
-       warn "marc8_to_utf8";
        return marc8_to_utf8("@_");
     }
     else {
index cb9eb71..8434886 100644 (file)
@@ -1913,7 +1913,6 @@ sub NZanalyse {
         # depending of operand, intersect, union or exclude both lists
         # to get a result list
         if ( $operator eq ' and ' ) {
-            warn "NZAND";
             return NZoperatorAND($leftresult,$rightresult);
         }
         elsif ( $operator eq ' or ' ) {
index 3f2f987..731df99 100644 (file)
@@ -232,7 +232,6 @@ sub addz3950queue {
                                # spawn a separate 'cat' process.
                                my $pid=`cat $pidfile`;
                                chomp $pid;
-                               warn "PID : $pid";
                                # Kill -HUP the Z39.50 daemon to tell it to process
                                # this query.
                                my $processcount=kill 1, $pid;
index a06faca..2333f89 100755 (executable)
@@ -100,7 +100,6 @@ my ( $builterror, $builtquery, $simple_query, $query_cgi, $query_desc, $limit, $
 my ( $error, $marcresults, $total_hits ) = SimpleSearch( $builtquery, $results_per_page * ( $page - 1 ), $results_per_page );
 
 if (defined $error) {
-    warn "error: ".$error;
     $template->param(
         query_error => $error,
         basketno             => $basketno,
index 5ee97b0..675b07d 100755 (executable)
@@ -166,8 +166,6 @@ if ($action eq "cancelorder") {
     }
 
     if ($error_delitem || $error_delbiblio) {
-       warn $error_delitem;
-       warn $error_delbiblio;
        if ($error_delitem)   { $template->param(error_delitem => 1); }
        if ($error_delbiblio) { $template->param(error_delbiblio => 1); }
     } else {
index 1dc5519..7f04754 100755 (executable)
@@ -48,7 +48,6 @@ my $error        = $input->param('error');
 my $biblionumber = $input->param('biblionumber');
 $biblionumber = 0 unless $biblionumber;
 my $frameworkcode = $input->param('frameworkcode');
-warn($frameworkcode);
 my $title         = $input->param('title');
 my $author        = $input->param('author');
 my $isbn          = $input->param('isbn');
index 5f327d2..24ce1e1 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);
@@ -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);
index 010c431..6eb0f61 100755 (executable)
@@ -82,7 +82,6 @@ my ($template, $loggedinuser, $cookie)
        $result = "     nam         7a      " unless $result;
        my $f5 = substr($result,5,1);
        my $f6 = substr($result,6,1);
-       warn "F6".$f6;
        my $f7 = substr($result,7,1);
        my $f8 = substr($result,8,1);
        my $f9 = substr($result,9,1);
index a8ccf79..9ce7f91 100755 (executable)
@@ -80,12 +80,9 @@ my ($template, $loggedinuser, $cookie)
                             debug => 1,
                             });
        $result = "     nmm         7a      " unless $result;
-       warn "RESULT:".$result;
        my $f5 = substr($result,5,1);
        my $f6 = substr($result,6,1);
-       warn "F6".$f6;
        my $f7 = substr($result,7,1);
-       warn "F7:".$f7;
        my $f8 = substr($result,8,1);
        my $f9 = substr($result,9,1);
        my $f17 = substr($result,17,1);
index 87921bd..62e98da 100755 (executable)
@@ -82,7 +82,6 @@ my ($template, $loggedinuser, $cookie)
        $result = "     ngm         7a      " unless $result;
        my $f5 = substr($result,5,1);
        my $f6 = substr($result,6,1);
-       warn "F6".$f6;
        my $f7 = substr($result,7,1);
        my $f8 = substr($result,8,1);
        my $f9 = substr($result,9,1);
index 99f782a..014fd86 100755 (executable)
@@ -111,7 +111,6 @@ sub plugin {
             return => $code,
         );
     }
-    warn $code;
     output_html_with_http_headers $input, $cookie, $template->output;
 }
 
index 3d97994..5e319d9 100755 (executable)
@@ -92,7 +92,6 @@ sub plugin {
     my $sth = $dbh->prepare('SELECT publishercode FROM biblioitems WHERE isbn LIKE ? OR isbn LIKE ? LIMIT 1');
     
     $isbn =~ s/-//g;
-    warn $isbn;
     if (length ($isbn) == 13){
         $isbn = substr($isbn, 3, length($isbn)-3);
     }
index 51e6fb5..a645fee 100755 (executable)
@@ -41,7 +41,6 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
 );
 
 my $op = $cgi->param('op');
-warn "operation = $op\n";
 my $template_id = $cgi->param('template_id') || $cgi->param('element_id');
 my $label_template = undef;
 my $profile_list = undef;
index fb8e91b..f6680d5 100755 (executable)
@@ -52,7 +52,6 @@ $template->param( picture => 1 ) if $picture;
 # Getting the messages
 my $queued_messages = C4::Letters::GetQueuedMessages({borrowernumber => $borrowernumber});
 
-warn Data::Dumper::Dumper( $queued_messages );
 $template->param(
                        QUEUED_MESSAGES         => $queued_messages,
                        BORROWER_INFO           => [ $borrower ],
index 16ef6d0..22b73e4 100755 (executable)
@@ -25,5 +25,4 @@ my $query    = new CGI;
 my $language = $query->param('language');
 my $url      = $query->referer();
 
-warn "Language : $query // $language // $url";
 setlanguagecookie( $query, $language, $url );
index a142cb1..30bc34a 100755 (executable)
@@ -600,7 +600,6 @@ for (my $i=0;$i<=@servers;$i++) {
         for my $sup_record ( @{$results_hashref->{$server}->{"RECORDS"}} ) {
             my $marc_record_object = MARC::Record->new_from_usmarc($sup_record);
             my $title_field = $marc_record_object->field(100);
-             warn "Authority Found: ".$marc_record_object->as_formatted();
             push @inner_sup_results_array, {
                 'title' => $title_field->subfield('a'),
                 'link' => "&amp;idx=an&amp;q=".$marc_record_object->field('001')->as_string(),
index d15e740..b38a477 100755 (executable)
@@ -136,7 +136,6 @@ EOF
     if ( sendmail %mail ) {
 
         # do something if it works....
-        warn "Mail sent ok\n";
         print $query->redirect('/cgi-bin/koha/opac-user.pl?patronupdate=sent');
         exit;
     }
index d7f2e44..d07335e 100755 (executable)
@@ -272,7 +272,6 @@ sub calculate {
         }
         $strsth2 .=" group by $colfield";
         $strsth2 .=" order by $colorder";
-        warn "". $strsth2;
         
         my $sth2 = $dbh->prepare( $strsth2 );
         if (( @colfilter ) and ($colfilter[1])){
index 269f7a8..dbda180 100755 (executable)
@@ -234,7 +234,6 @@ elsif ( $phase eq 'Choose these criteria' ) {
             $query_criteria .= " AND $crit='$value'";
         }
        }
-       warn $query_criteria;
     }
 
     $template->param(
index 678495f..8285bec 100755 (executable)
@@ -451,7 +451,6 @@ sub calculate {
     }
     $strsth2 .=" GROUP BY $colfield";
     $strsth2 .=" ORDER BY $colorder";
-    warn "". $strsth2;
     
     my $sth2 = $dbh->prepare( $strsth2 );
     if (( @colfilter ) and ($colfilter[1])){
@@ -522,7 +521,6 @@ sub calculate {
     $strcalc .= " AND monthname(returndate) like '" . @$filters[6] ."'" if ( @$filters[6] );
     
     $strcalc .= " group by  $linefield, $colfield, issuedate, returndate order by $linefield, $colfield";
-    warn "SQL :". $strcalc;
     
     my $dbcalc = $dbh->prepare($strcalc);
     $dbcalc->execute;
index 4ca5595..177c64a 100755 (executable)
@@ -47,7 +47,6 @@ unless (-r $cgidir and -d $cgidir) {
        $cgidir = C4::Context->intranetdir."/reports/";
 } 
 my $plugin = $cgidir.$report_name.".plugin";
-warn "PLUGIN:".$plugin;
 require $plugin;
 if ($do_it) {
        my $results = calculate(\@values);
index 66d1acc..a1e9a22 100755 (executable)
@@ -123,7 +123,6 @@ if ($op eq "export") {
         $query .= (C4::Context->preference('item-level_itypes')) ? " AND items.itype = ? " : " AND biblioitems.itemtype = ?";
         push @sql_params, $itemtype;
     }
-    warn "$query, @sql_params";
     my $sth = $dbh->prepare($query);
     $sth->execute(@sql_params);