X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=offline_circ%2Fprocess_koc.pl;h=d3d910520ed5b1821537d037f56c5c108a0458bd;hb=5af80ab9abe609fbd354b70c05ed920a97de63bc;hp=87ae5c16e474e653c68e997b283cbe1570a7af35;hpb=a9015abe77c4807b218f9f65e97304f8eefe2f54;p=koha.git diff --git a/offline_circ/process_koc.pl b/offline_circ/process_koc.pl index 87ae5c16e4..d3d910520e 100755 --- a/offline_circ/process_koc.pl +++ b/offline_circ/process_koc.pl @@ -189,7 +189,8 @@ sub parse_header_line { sub parse_command_line { my $command_line = shift; chomp($command_line); - + $command_line =~ s/\r//g; + my ( $timestamp, $command, @args ) = split( /\t/, $command_line ); my ( $date, $time, $id ) = split( /\s/, $timestamp ); @@ -248,11 +249,11 @@ sub kocIssueItem { my ( $year, $month, $day ) = split( /-/, $circ->{'date'} ); ( $year, $month, $day ) = Add_Delta_Days( $year, $month, $day, $issuelength ); my $date_due = sprintf("%04d-%02d-%02d", $year, $month, $day); - + if ( $issue->{ 'date_due' } ) { ## Item is currently checked out to another person. #warn "Item Currently Issued."; my $issue = GetOpenIssue( $item->{'itemnumber'} ); - + if ( $issue->{'borrowernumber'} eq $borrower->{'borrowernumber'} ) { ## Issued to this person already, renew it. #warn "Item issued to this member already, renewing.";