Code cleaning : Some subs renamed.
authortoins <toins>
Wed, 19 Jul 2006 08:58:38 +0000 (08:58 +0000)
committertoins <toins>
Wed, 19 Jul 2006 08:58:38 +0000 (08:58 +0000)
serials/lateissues.pl
serials/serials-recieve.pl
serials/subscription-add.pl
tools/overduerules.pl
value_builder/unimarc_field_4XX.pl

index 179265b..2762d4a 100755 (executable)
@@ -72,7 +72,7 @@ my @lateissues;
 @lateissues = GetLateIssues($supplierid) if $supplierid;
 my @supplierinfo;
 my $nothing;
-($nothing,@supplierinfo)=bookseller($supplierid) if $supplierid;
+($nothing,@supplierinfo)=GetBookSeller($supplierid) if $supplierid;
 
 my ($template, $loggedinuser, $cookie)
 = get_template_and_user({template_name => "serials/lateissues.tmpl",
index 6827dbd..b00d18d 100755 (executable)
@@ -142,7 +142,7 @@ if (C4::Context->preference("serialsadditems")){
     my $bibid=MARCfind_MARCbibid_from_oldbiblionumber($dbh,$subscription->{biblionumber});
     my $fwk=MARCfind_frameworkcode($dbh,$bibid);
 
-    my $branches = getbranches;
+    my $branches = GetBranches;
     my @branchloop;
     foreach my $thisbranch (keys %$branches) {
         my %row =(value => $thisbranch,
index 9c6a42d..ec4d7c5 100755 (executable)
@@ -173,8 +173,9 @@ if ($op eq 'mod') {
         "dow$dow" => 1,
         );
 }
-##FIXME : Looks like never used.
-(my $temp,@budgets) = bookfunds($homebranch);
+@budgets = GetBookFunds($homebranch);
+my $temp = scalar(@budgets);
+
 # find default value & set it for the template
 for (my $i=0;$i<$#budgets;$i++) {
     if ($budgets[$i]->{'aqbudgetid'} eq $aqbudgetid) {
index 02503ef..c863775 100755 (executable)
@@ -121,7 +121,7 @@ if ($op eq 'save') {
        }
        unless ($err) {$template->param(datasaved=>1);}
 }
-my $branches = getbranches;
+my $branches = GetBranches;
 my @branchloop;
 foreach my $thisbranch (keys %$branches) {
        my $selected = 1 if $thisbranch eq $branch;
index caf43da..ab56d99 100755 (executable)
@@ -357,7 +357,7 @@ sub plugin {
                my @branchloop;
                my @select_branch;
                my %select_branches;
-               my $branches=getbranches;
+               my $branches=GetBranches;
                push @select_branch, "";
                $select_branches{''} = "";
                foreach my $thisbranch (keys %$branches){