=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
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 ) {
&getitemtypeimagesrcfromurl
&get_infos_of
&get_notforloan_label_of
- &GetDepartements
- &GetDepartementLib
+ &GetDepartments
+ &GetDepartmentLib
&getitemtypeimagedir
&getitemtypeimagesrc
&GetAuthorisedValues
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(
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/;
# filter by department
if ($department) {
- my ( $departmentlib, $departmentValue ) = GetDepartementLib($department);
+ my ( $departmentlib, $departmentValue ) = GetDepartmentLib($department);
$template->param(
department => $departmentlib,
departmentValue => $departmentValue,
else {
# initiate the selector of departments .....
- my @getdepartments = GetDepartements();
+ my @getdepartments = GetDepartments();
my @departmentsloop;
foreach my $dpt (@getdepartments) {
my %department;
<option value="b">etat/province</option>
<!-- /TMPL_IF -->
<!-- TMPL_IF name="f8c" -->
- <option value="c" SELECTED>compte/departement</option>
+ <option value="c" SELECTED>compte/department</option>
<!-- TMPL_ELSE -->
- <option value="c">compte/departement</option>
+ <option value="c">compte/department</option>
<!-- /TMPL_IF -->
<!-- TMPL_IF name="f8d" -->
<option value="d"
<!-- /TMPL_IF -->
<!-- TMPL_IF name="f8e" -->
<option value="e"
- SELECTED>multi-local(inter-departemental,
+ SELECTED>multi-local(inter-departmental,
etc. sous le niveau national)</option>
<!-- TMPL_ELSE -->
- <option value="e">multi-local(inter-departemental,
+ <option value="e">multi-local(inter-departmental,
etc. sous le niveau national)</option>
<!-- /TMPL_IF -->