From d126742c41fccfbba1ae820ca22cc2c394fbe6d9 Mon Sep 17 00:00:00 2001 From: kados Date: Sat, 10 Mar 2007 06:28:06 +0000 Subject: [PATCH] finish fixing spelling error on department --- C4/Circulation/Circ2.pm | 8 ++++---- C4/Koha.pm | 14 +++++++------- circ/branchoverdues.pl | 6 +++--- .../value_builder/unimarc_field_100.tmpl | 8 ++++---- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/C4/Circulation/Circ2.pm b/C4/Circulation/Circ2.pm index f310881c77..261af3d5b7 100755 --- a/C4/Circulation/Circ2.pm +++ b/C4/Circulation/Circ2.pm @@ -2900,14 +2900,14 @@ return ($notified); =head2 GetOverduesForBranch Sql request for display all information for branchoverdues.pl -2 possibilities : with or without departement . +2 possibilities : with or without department . display is filtered by branch =cut sub GetOverduesForBranch { - my ( $branch, $departement) = @_; - if ( not $departement ) { + my ( $branch, $department) = @_; + if ( not $department ) { my $dbh = C4::Context->dbh; my $sth = $dbh->prepare(" SELECT @@ -2998,7 +2998,7 @@ sub GetOverduesForBranch { AND (issues.date_due <= NOW()) ORDER BY borrowers.surname " ); - $sth->execute( $branch, $departement); + $sth->execute( $branch, $department); my @getoverdues; my $i = 0; while ( my $data = $sth->fetchrow_hashref ) { diff --git a/C4/Koha.pm b/C4/Koha.pm index b458b27cc9..f2256ae654 100644 --- a/C4/Koha.pm +++ b/C4/Koha.pm @@ -70,8 +70,8 @@ Koha.pm provides many functions for Koha scripts. &getitemtypeimagesrcfromurl &get_infos_of &get_notforloan_label_of - &GetDepartements - &GetDepartementLib + &GetDepartments + &GetDepartmentLib &getitemtypeimagedir &getitemtypeimagesrc &GetAuthorisedValues @@ -1088,24 +1088,24 @@ sub displaySecondaryServers { return; #$secondary_servers_loop; } -sub GetDepartements { +sub GetDepartments { my $dbh = C4::Context->dbh; my $sth = $dbh->prepare( "SELECT authorised_value,lib FROM authorised_values WHERE category='DPT' " ); $sth->execute; - my @getdepartements; + my @getdepartments; my $i = 0; while ( my $data = $sth->fetchrow_hashref ) { - $getdepartements[$i] = $data; + $getdepartments[$i] = $data; $i++; } $sth->finish; - return (@getdepartements); + return (@getdepartments); } -sub GetDepartementLib { +sub GetDepartmentLib { my ($authorisedvalue) = @_; my $dbh = C4::Context->dbh; my $sth = $dbh->prepare( diff --git a/circ/branchoverdues.pl b/circ/branchoverdues.pl index f51a79d710..2503283084 100755 --- a/circ/branchoverdues.pl +++ b/circ/branchoverdues.pl @@ -24,7 +24,7 @@ use C4::Interface::CGI::Output; use C4::Auth; use C4::Date; use C4::Circulation::Circ2; # AddNotifyLine -use C4::Koha; # GetDepartement... +use C4::Koha; # GetDepartment... use Mail::Sendmail; use Getopt::Long; use Date::Calc qw/Today Today_and_Now Now/; @@ -104,7 +104,7 @@ my @getoverdues = GetOverduesForBranch( $default, $department ); # filter by department if ($department) { - my ( $departmentlib, $departmentValue ) = GetDepartementLib($department); + my ( $departmentlib, $departmentValue ) = GetDepartmentLib($department); $template->param( department => $departmentlib, departmentValue => $departmentValue, @@ -113,7 +113,7 @@ if ($department) { else { # initiate the selector of departments ..... - my @getdepartments = GetDepartements(); + my @getdepartments = GetDepartments(); my @departmentsloop; foreach my $dpt (@getdepartments) { my %department; diff --git a/koha-tmpl/intranet-tmpl/prog/en/cataloguing/value_builder/unimarc_field_100.tmpl b/koha-tmpl/intranet-tmpl/prog/en/cataloguing/value_builder/unimarc_field_100.tmpl index bc6e78c41e..79a7328a72 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/cataloguing/value_builder/unimarc_field_100.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/cataloguing/value_builder/unimarc_field_100.tmpl @@ -320,9 +320,9 @@ - + - + - -- 2.20.1