diff --git a/circ/circulation.pl b/circ/circulation.pl
index 897530cb0a..1851f6a4f6 100755
--- a/circ/circulation.pl
+++ b/circ/circulation.pl
@@ -86,8 +86,8 @@ if ($findborrower) {
}
}
-my $borrowernumber = $query->param('borrnumber');
-my $bornum = $query->param('borrnumber');
+my $borrowernumber = $query->param('borrnumber');
+my $bornum = $query->param('borrnumber');
# check and see if we should print
my $print=$query->param('print');
my $barcode = $query->param('barcode');
@@ -95,11 +95,11 @@ if ($barcode eq '' && $print eq 'maybe'){
$print = 'yes';
}
if ($print eq 'yes' && $borrowernumber ne ''){
- printslip(\%env,$borrowernumber);
+ printslip(\%env,$borrowernumber);
$query->param('borrnumber','');
$borrowernumber='';
}
-
+
# get the borrower information.....
@@ -137,7 +137,7 @@ if ($barcode) {
$env{'datedue'}=$datedue;
my @time=localtime(time);
my $date= (1900+$time[5])."-".($time[4]+1)."-".$time[3];
- ($iteminformation, $duedate, $rejected, $question, $questionnumber, $defaultanswer, $message)
+ ($iteminformation, $duedate, $rejected, $question, $questionnumber, $defaultanswer, $message)
= issuebook(\%env, $borrower, $barcode, \%responses, $date);
}
}
@@ -200,7 +200,7 @@ my $title = <<"EOF";
 Circulation: Issues
-Branch: $branches->{$branch}->{'branchname'}  
+Branch: $branches->{$branch}->{'branchname'}  
Printer: $printers->{$printer}->{'printername'} Change Settings
@@ -215,7 +215,7 @@ my $titlenoborrower = <<"EOF";
 Circulation: Issues
-Branch: $branches->{$branch}->{'branchname'}  
+Branch: $branches->{$branch}->{'branchname'}  
Printer: $printers->{$printer}->{'printername'} Change Settings
@@ -248,8 +248,8 @@ if ($question) {
Issuing Question
-
-Attempting to issue $iteminformation->{'title'}
+
+Attempting to issue $iteminformation->{'title'}
by $iteminformation->{'author'} to $borrower->{'firstname'} $borrower->{'surname'}.
$question
@@ -406,7 +406,7 @@ if ($borrower) {
my $dd = $book->{'date_due'};
my $datedue = $book->{'date_due'};
#convert to nz style dates
- #this should be set with some kinda config variable
+ #this should be set with some kinda config variable
my @tempdate=split(/-/,$dd);
$dd="$tempdate[2]/$tempdate[1]/$tempdate[0]";
$datedue=~s/-//g;
@@ -422,7 +422,7 @@ if ($borrower) {
$book->{'author'}
$book->{'dewey'} $book->{'subclass'}
EOF
- }
+ }
# FIXME - For small and private libraries, it'd be nice if this
# table included a "Return" link next to each book, so that you
# don't have to remember the book's bar code and type it in on the
@@ -431,7 +431,7 @@ EOF
my $dd = $book->{'date_due'};
my $datedue = $book->{'date_due'};
#convert to nz style dates
- #this should be set with some kinda config variable
+ #this should be set with some kinda config variable
my @tempdate=split(/-/,$dd);
$dd="$tempdate[2]/$tempdate[1]/$tempdate[0]";
$datedue=~s/-//g;
@@ -553,8 +553,8 @@ sub cuecatbarcodedecode {
return $results[2];
} else {
return $barcode;
- }
-}
+ }
+}
sub fixdate {
my ($year, $month, $day) = @_;
@@ -618,13 +618,13 @@ sub patrontable {
($color eq $linecolor1) ? ($color=$linecolor2) : ($color=$linecolor1);
my ($iteminformation) = getiteminformation(\%env, $item->{'itemnumber'}, 0);
$itemswaiting.="
";
}
@@ -503,6 +488,4 @@ sub cuecatbarcodedecode {
return $results[2];
} else {
return $barcode;
- }
-}
-
+ }}
diff --git a/circ/selectbranchprinter.pl b/circ/selectbranchprinter.pl
index a8d5794cc1..e5feb6237a 100644
--- a/circ/selectbranchprinter.pl
+++ b/circ/selectbranchprinter.pl
@@ -26,7 +26,7 @@ use C4::Print;
use DBI;
-# this is a reorganisation of circulationold.pl
+# this is a reorganisation of circulationold.pl
# dividing it up into three scripts......
# this will be the first one that chooses branch and printer settings....
@@ -105,7 +105,7 @@ if ($printercount>1) {
EOF
} else {
my ($printer) = keys %$printers;
-}
+}
if ($branchcount>1) {
$branchform=<<"EOF";
@@ -113,7 +113,7 @@ if ($branchcount>1) {
EOF
} else {
my ($branch) = keys %$branches;
-}
+}
diff --git a/marc/File.pm b/marc/File.pm
index 1a33ef908c..e6624d572c 100644
--- a/marc/File.pm
+++ b/marc/File.pm
@@ -47,7 +47,7 @@ our $VERSION = '0.93';
use MARC::File::USMARC;
my $file = MARC::File::USMARC->in( $filename );
-
+
while ( my $marc = $file->next() ) {
# Do something
}
@@ -56,7 +56,7 @@ our $VERSION = '0.93';
=head1 EXPORT
-None.
+None.
=head1 METHODS
@@ -191,7 +191,7 @@ We only handle files for input right now.
=head1 LICENSE
-This code may be distributed under the same terms as Perl itself.
+This code may be distributed under the same terms as Perl itself.
Please note that these modules are not products of or supported by the
employers of the various contributors to the code.
diff --git a/marc/MARCdetail.pl b/marc/MARCdetail.pl
index 0451a8bbc2..ef6e99f563 100755
--- a/marc/MARCdetail.pl
+++ b/marc/MARCdetail.pl
@@ -27,9 +27,9 @@ use C4::Search;
use MARC::Record;
use C4::Biblio;
use C4::Catalogue;
-
+
my $query=new CGI;
-
+
my $biblionumber=$query->param('bib');
my $tag=$query->param('tag');
if (! defined $tag) { $tag='2XX';}
@@ -65,10 +65,10 @@ sub showmarcrecord {
# print $field->tag(), " ", $field->indicator(1),$field->indicator(2), "subf: ", $subf[$i][0]," =",$subf[$i][1]," <-- \n";
}
}
-
+
# fill template with arrays
$template->param(biblionumber => $biblionumber);
$template->param(marc =>\@loop_data);
print "Content-Type: text/html\n\n", $template->output;
-
+
}
diff --git a/marc/USMARC.pm b/marc/USMARC.pm
index beb4a76dd8..bb0451bd00 100644
--- a/marc/USMARC.pm
+++ b/marc/USMARC.pm
@@ -56,7 +56,7 @@ use constant DIRECTORY_ENTRY_LEN => 12;
use MARC::File::USMARC;
my $file = MARC::File::USMARC::in( $filename );
-
+
while ( my $marc = $file->next() ) {
# Do something
}
@@ -65,7 +65,7 @@ use constant DIRECTORY_ENTRY_LEN => 12;
=head1 EXPORT
-None.
+None.
=head1 METHODS
@@ -146,7 +146,7 @@ sub decode {
# Shouldn't be any non-digits anywhere in any directory entry
my @directory = unpack( "A3 A4 A5" x $nfields, $dir );
my @bad = grep /\D/, @directory;
- if ( @bad ) {
+ if ( @bad ) {
return $marc->_gripe( "Non-numeric entries in the tag directory: ", join( ", ", map { "\"$_\"" } @bad ) );
}
@@ -200,7 +200,7 @@ sub decode {
=head2 update_leader()
If any changes get made to the MARC record, the first 5 bytes of the
-leader (the length) will be invalid. This function updates the
+leader (the length) will be invalid. This function updates the
leader with the correct length of the record as it would be if
written out to a file.
@@ -246,14 +246,14 @@ sub _build_tag_directory {
$dataend += $len;
}
- my $baseaddress =
+ my $baseaddress =
LEADER_LEN + # better be 24
( @directory * DIRECTORY_ENTRY_LEN ) +
# all the directory entries
1; # end-of-field marker
- my $total =
+ my $total =
$baseaddress + # stuff before first field
$dataend + # Length of the fields
1; # End-of-record marker
@@ -297,7 +297,7 @@ use DBD::Oracle or DBD::Mysql.
=head1 LICENSE
-This code may be distributed under the same terms as Perl itself.
+This code may be distributed under the same terms as Perl itself.
Please note that these modules are not products of or supported by the
employers of the various contributors to the code.
diff --git a/misc/fines2.pl b/misc/fines2.pl
index 00f9197943..02bc13d87c 100755
--- a/misc/fines2.pl
+++ b/misc/fines2.pl
@@ -1,7 +1,7 @@
#!/usr/bin/perl
# This script loops through each overdue item, determines the fine,
-# and updates the total amount of fines due by each user. It relies on
+# and updates the total amount of fines due by each user. It relies on
# the existence of /tmp/fines, which is created by ???
# Doesnt really rely on it, it relys on being able to write to /tmp/
# It creates the fines file
@@ -80,7 +80,7 @@ my $maxFine=5;
#
for (my $i=0;$i<$numOverdueItems;$i++){
my @dates=split('-',$data->[$i]->{'date_due'});
- my $date2=Date_DaysSince1BC($dates[1],$dates[2],$dates[0]);
+ my $date2=Date_DaysSince1BC($dates[1],$dates[2],$dates[0]);
my $due="$dates[2]/$dates[1]/$dates[0]";
my $borrower=BorType($data->[$i]->{'borrowernumber'});
if ($date2 <= $date){
@@ -89,7 +89,7 @@ for (my $i=0;$i<$numOverdueItems;$i++){
my ($amount,$type,$printout)=
CalcFine($data->[$i]->{'itemnumber'},
$borrower->{'categorycode'},
- $difference);
+ $difference);
if ($amount > $maxFine){
$amount=$maxFine;
}
@@ -118,8 +118,8 @@ for (my $i=0;$i<$numOverdueItems;$i++){
}
print "$printout\t$borrower->{'cardnumber'}\t$borrower->{'categorycode'}\t$borrower->{'firstname'}\t$borrower->{'surname'}\t$data->[$i]->{'date_due'}\t$type\t$difference\t$borrower->{'emailaddress'}\t$borrower->{'phone'}\t$borrower->{'streetaddress'}\t$borrower->{'city'}\t$amount\n";
} else { # FIXME
- # if this is really useless, the whole else clause should be
- # deleted.
+ # if this is really useless, the whole else clause should be
+ # deleted.
#
# print "$borrower->{'cardnumber'}\t$borrower->{'categorycode'}\t0 fine\n";
}
@@ -128,7 +128,7 @@ for (my $i=0;$i<$numOverdueItems;$i++){
#
my $borrower=BorType($data->[$i]->{'borrowernumber'});
if ($borrower->{'cardnumber'} ne ''){
- my $cost=ReplacementCost($data->[$i]->{'itemnumber'});
+ my $cost=ReplacementCost($data->[$i]->{'itemnumber'});
my $dbh = C4::Context->dbh;
my $env;
my $accountno=C4::Circulation::Circ2::getnextacctno($env,$data->[$i]->{'borrowernumber'},$dbh);
diff --git a/misc/fixborrower.pl b/misc/fixborrower.pl
index 018641ed32..be091d84b8 100755
--- a/misc/fixborrower.pl
+++ b/misc/fixborrower.pl
@@ -28,7 +28,7 @@ use strict;
my $dbh = C4::Context->dbh;
my $query = "Select * from categories where (categorycode like 'L%' or categorycode like 'F%'
-or categorycode like 'S%' or categorycode like 'O%' or categorycode like 'H%') and (categorycode <>'HR'
+or categorycode like 'S%' or categorycode like 'O%' or categorycode like 'H%') and (categorycode <>'HR'
and categorycode <> 'ST')";
my $sth=$dbh->prepare($query);
@@ -43,9 +43,9 @@ while (my $data=$sth->fetchrow_hashref){
my $sth2=$dbh->prepare($query);
$sth2->execute;
$sth2->finish;
-
+
$temp=substr($data->{'categorycode'},1,1);
- $query="update borrowers set categorycode='$temp' where categorycode='$data->{'categorycode'}'";
+ $query="update borrowers set categorycode='$temp' where categorycode='$data->{'categorycode'}'";
$sth2=$dbh->prepare($query);
$sth2->execute;
$sth2->finish;
@@ -54,10 +54,10 @@ while (my $data=$sth->fetchrow_hashref){
$sth2=$dbh->prepare($query);
$sth2->execute;
$sth2->finish;
-
+
}
-$query = "Select * from categories where (categorycode like 'V%') and (categorycode <>'HR'
+$query = "Select * from categories where (categorycode like 'V%') and (categorycode <>'HR'
and categorycode <> 'ST')";
my $sth=$dbh->prepare($query); # FIXME - There's already a $sth in this scope
@@ -73,7 +73,7 @@ while (my $data=$sth->fetchrow_hashref){
$sth2->finish;
my $temp=substr($data->{'categorycode'},1,1);
- $query="update borrowers set categorycode='$temp' where categorycode='$data->{'categorycode'}'";
+ $query="update borrowers set categorycode='$temp' where categorycode='$data->{'categorycode'}'";
$sth2=$dbh->prepare($query);
$sth2->execute;
$sth2->finish;
@@ -97,7 +97,7 @@ while (my $data=$sth->fetchrow_hashref){
$sth2->execute;
$sth2->finish;
- $query="update borrowers set categorycode='W' where categorycode='$data->{'categorycode'}'";
+ $query="update borrowers set categorycode='W' where categorycode='$data->{'categorycode'}'";
$sth2=$dbh->prepare($query);
$sth2->execute;
$sth2->finish;
@@ -121,7 +121,7 @@ while (my $data=$sth->fetchrow_hashref){
$sth2->execute;
$sth2->finish;
- $query="update borrowers set categorycode='I' where categorycode='$data->{'categorycode'}'";
+ $query="update borrowers set categorycode='I' where categorycode='$data->{'categorycode'}'";
$sth2=$dbh->prepare($query);
$sth2->execute;
$sth2->finish;
@@ -145,7 +145,7 @@ while (my $data=$sth->fetchrow_hashref){
$sth2->execute;
$sth2->finish;
- $query="update borrowers set categorycode='A' where categorycode='$data->{'categorycode'}'";
+ $query="update borrowers set categorycode='A' where categorycode='$data->{'categorycode'}'";
$sth2=$dbh->prepare($query);
$sth2->execute;
$sth2->finish;
@@ -169,7 +169,7 @@ while (my $data=$sth->fetchrow_hashref){
$sth2->execute;
$sth2->finish;
- $query="update borrowers set categorycode='A' where categorycode='$data->{'categorycode'}'";
+ $query="update borrowers set categorycode='A' where categorycode='$data->{'categorycode'}'";
$sth2=$dbh->prepare($query);
$sth2->execute;
$sth2->finish;
@@ -193,7 +193,7 @@ while (my $data=$sth->fetchrow_hashref){
$sth2->execute;
$sth2->finish;
- $query="update borrowers set categorycode='L' where categorycode='$data->{'categorycode'}'";
+ $query="update borrowers set categorycode='L' where categorycode='$data->{'categorycode'}'";
$sth2=$dbh->prepare($query);
$sth2->execute;
$sth2->finish;
@@ -216,8 +216,8 @@ while (my $data=$sth->fetchrow_hashref){
my $sth2=$dbh->prepare($query);
$sth2->execute;
$sth2->finish;
-
- $query="update borrowers set categorycode='P' where categorycode='$data->{'categorycode'}'";
+
+ $query="update borrowers set categorycode='P' where categorycode='$data->{'categorycode'}'";
$sth2=$dbh->prepare($query);
$sth2->execute;
$sth2->finish;
@@ -231,7 +231,7 @@ while (my $data=$sth->fetchrow_hashref){
$sth->finish;
-my @queryValues =
+my @queryValues =
("insert into categories values ('E','Senior Citizen',5,99,0,'A',0,0,0,99,1)",
"insert into categories values ('A','Adult',5,99,0,'A',0,0,0,99,1)",
"insert into categories values ('C','Child',5,16,0,'A',0,0,0,99,0)",
@@ -241,7 +241,7 @@ my @queryValues =
"insert into categories values ('I','Institution',5,99,0,'A',0,0,0,99,0)",
"insert into categories values ('P','Privileged',5,99,0,'A',0,0,0,99,0)",
"insert into categories values ('L','Library',5,99,0,'A',0,0,0,99,0)"
- );
+ );
foreach $query (@queryValues) {
$sth=$dbh->prepare($query);
diff --git a/misc/fixorders.pl b/misc/fixorders.pl
index 57f04f2d4b..e85764cefd 100755
--- a/misc/fixorders.pl
+++ b/misc/fixorders.pl
@@ -28,7 +28,7 @@ $sth->execute;
my $number;
my $i=92000;
while (my $data=$sth->fetchrow_hashref){
- if ($data->{'ordernumber'} != $number){
+ if ($data->{'ordernumber'} != $number){
} else {
my $query="update aqorders set ordernumber=$i where ordernumber=$data->{'ordernumber'} and biblionumber=$data->{'biblionumber'}";
my $sth2=$dbh->prepare($query);
diff --git a/misc/makebaskets.pl b/misc/makebaskets.pl
index e4def82555..3e0b745f4c 100755
--- a/misc/makebaskets.pl
+++ b/misc/makebaskets.pl
@@ -25,8 +25,8 @@ my $dbh = C4::Context->dbh;
my $count=0;
my $basket='HLT-';
for (my $i=1;$i<59;$i++){
- my $query = "Select authorisedby,entrydate from aqorders where booksellerid='$i'";
- $query.=" group by authorisedby,entrydate order by entrydate";
+ my $query = "Select authorisedby,entrydate from aqorders where booksellerid='$i'";
+ $query.=" group by authorisedby,entrydate order by entrydate";
my $sth=$dbh->prepare($query);
$sth->execute;
while (my $data=$sth->fetchrow_hashref){
diff --git a/misc/makeformats.pl b/misc/makeformats.pl
index d99adb167f..66093238b4 100755
--- a/misc/makeformats.pl
+++ b/misc/makeformats.pl
@@ -45,6 +45,6 @@ while (my $data=$sth->fetchrow_hashref){
$sth2->execute;
$sth2->finish;
$bibitemno++
-
+
}
$sth->finish;
diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl
index 2aaeb85fb3..11c3ee41b7 100755
--- a/opac/opac-detail.pl
+++ b/opac/opac-detail.pl
@@ -5,7 +5,7 @@ use C4::Output; # contains gettemplate
use CGI;
use C4::Search;
use C4::Auth;
-
+
my $query=new CGI;
my ($loggedinuser, $cookie, $sessionID) = checkauth($query, 1);
diff --git a/opac/opac-moredetail.pl b/opac/opac-moredetail.pl
index 49b6b57c3f..4cc77b498f 100755
--- a/opac/opac-moredetail.pl
+++ b/opac/opac-moredetail.pl
@@ -43,14 +43,14 @@ my $count=@items;
my $i=0;
print center();
-my $dewey = $data->{'dewey'};
-$dewey =~ s/0+$//;
-if ($dewey eq "000.") { $dewey = "";};
-if ($dewey < 10){$dewey='00'.$dewey;}
-if ($dewey < 100 && $dewey > 10){$dewey='0'.$dewey;}
+my $dewey = $data->{'dewey'};
+$dewey =~ s/0+$//;
+if ($dewey eq "000.") { $dewey = "";};
+if ($dewey < 10){$dewey='00'.$dewey;}
+if ($dewey < 100 && $dewey > 10){$dewey='0'.$dewey;}
if ($dewey <= 0){
- $dewey='';
-}
+ $dewey='';
+}
$dewey=~ s/\.$//;
print <
@@ -73,8 +73,8 @@ print <