From a602c6d6eb01fe5df66c11e93eba525e150099ac Mon Sep 17 00:00:00 2001 From: Joshua Ferraro Date: Tue, 4 Dec 2007 19:03:35 -0600 Subject: [PATCH] cleanup for serials and members for Dates --- members/boraccount.pl | 2 +- members/guarantor_search.pl | 6 ++---- members/memberentry.pl | 2 +- serials/acqui-search-result.pl | 4 +--- serials/checkexpiration.pl | 2 +- serials/reorder_members.pl | 1 - serials/serials-collection.pl | 2 +- serials/serials-edit.pl | 2 +- serials/serials-recieve.pl | 2 +- serials/statecollection.pl | 2 +- serials/subscription-add.pl | 2 +- serials/subscription-detail.pl | 2 +- serials/subscription-renew.pl | 3 +-- 13 files changed, 13 insertions(+), 19 deletions(-) diff --git a/members/boraccount.pl b/members/boraccount.pl index 96da012b76..59b62ca747 100755 --- a/members/boraccount.pl +++ b/members/boraccount.pl @@ -25,7 +25,7 @@ use strict; use C4::Auth; use C4::Output; -use C4::Dates; +use C4::Dates qw/format_date/; use CGI; use C4::Members; diff --git a/members/guarantor_search.pl b/members/guarantor_search.pl index 4e0d37a0a4..f1f1a5650c 100755 --- a/members/guarantor_search.pl +++ b/members/guarantor_search.pl @@ -24,9 +24,7 @@ use strict; use C4::Auth; use C4::Output; use CGI; - -#op -use C4::Dates; +use C4::Dates qw/format_date/; use C4::Members; my $input = new CGI; @@ -102,4 +100,4 @@ $template->param( resultsloop => \@resultsdata ); -output_html_with_http_headers $input, $cookie, $template->output; \ No newline at end of file +output_html_with_http_headers $input, $cookie, $template->output; diff --git a/members/memberentry.pl b/members/memberentry.pl index 41502022d1..809ff48bef 100755 --- a/members/memberentry.pl +++ b/members/memberentry.pl @@ -32,7 +32,7 @@ use C4::Context; use C4::Output; use C4::Members; use C4::Koha; -use C4::Dates; +use C4::Dates qw/format_date format_date_in_iso/; use C4::Input; use C4::Log; use C4::Branch; # GetBranches diff --git a/serials/acqui-search-result.pl b/serials/acqui-search-result.pl index c943eb9416..6066bdde34 100755 --- a/serials/acqui-search-result.pl +++ b/serials/acqui-search-result.pl @@ -44,10 +44,8 @@ use C4::Auth; use C4::Biblio; use C4::Output; use CGI; - - use C4::Acquisition; -use C4::Dates; +use C4::Dates qw/format_date/; use C4::Bookseller; my $query=new CGI; diff --git a/serials/checkexpiration.pl b/serials/checkexpiration.pl index 374c94b933..5461aa6946 100755 --- a/serials/checkexpiration.pl +++ b/serials/checkexpiration.pl @@ -48,7 +48,7 @@ use C4::Auth; use C4::Serials; # GetExpirationDate use C4::Output; use C4::Context; -use C4::Dates; +use C4::Dates qw/format_date format_date_in_iso/; use Date::Calc qw/Today Date_to_Days/; my $query = new CGI; diff --git a/serials/reorder_members.pl b/serials/reorder_members.pl index d118f94d66..d82f2d7a89 100755 --- a/serials/reorder_members.pl +++ b/serials/reorder_members.pl @@ -10,7 +10,6 @@ use C4::Auth; use C4::Context; use C4::Output; use C4::Koha; -use C4::Dates; use C4::Acquisition; use C4::Serials; diff --git a/serials/serials-collection.pl b/serials/serials-collection.pl index c24cf9e19f..057f668fe2 100755 --- a/serials/serials-collection.pl +++ b/serials/serials-collection.pl @@ -22,7 +22,7 @@ use strict; use CGI; use C4::Auth; use C4::Koha; -use C4::Dates; +use C4::Dates qw/format_date/; use C4::Serials; use C4::Letters; use C4::Output; diff --git a/serials/serials-edit.pl b/serials/serials-edit.pl index 5bc4f8faf6..70e2208f8e 100755 --- a/serials/serials-edit.pl +++ b/serials/serials-edit.pl @@ -65,7 +65,7 @@ op can be : use strict; use CGI; use C4::Auth; -use C4::Dates; +use C4::Dates qw/format_date format_date_in_iso/; use C4::Biblio; use C4::Koha; use C4::Output; diff --git a/serials/serials-recieve.pl b/serials/serials-recieve.pl index f743e71298..55c6be2fb2 100755 --- a/serials/serials-recieve.pl +++ b/serials/serials-recieve.pl @@ -65,7 +65,7 @@ op can be : use strict; use CGI; use C4::Auth; -use C4::Dates; +use C4::Dates qw/format_date format_date_in_iso/; use C4::Biblio; use C4::Koha; use C4::Output; diff --git a/serials/statecollection.pl b/serials/statecollection.pl index 1e26fed341..715260a3c1 100755 --- a/serials/statecollection.pl +++ b/serials/statecollection.pl @@ -19,7 +19,7 @@ use strict; use CGI; use C4::Auth; -use C4::Dates; +use C4::Dates qw/format_date format_date_in_iso/; use C4::Output; use C4::Context; use C4::Serials; diff --git a/serials/subscription-add.pl b/serials/subscription-add.pl index 7b407e8640..1dda18e002 100755 --- a/serials/subscription-add.pl +++ b/serials/subscription-add.pl @@ -20,7 +20,7 @@ use CGI; use Date::Calc qw(Today Day_of_Year Week_of_Year Add_Delta_Days); use C4::Koha; use C4::Auth; -use C4::Dates; +use C4::Dates qw/format_date format_date_in_iso/; use C4::Acquisition; use C4::Output; use C4::Context; diff --git a/serials/subscription-detail.pl b/serials/subscription-detail.pl index c1c465deec..170273455b 100755 --- a/serials/subscription-detail.pl +++ b/serials/subscription-detail.pl @@ -19,7 +19,7 @@ use strict; use CGI; use C4::Auth; use C4::Koha; -use C4::Dates; +use C4::Dates qw/format_date/; use C4::Serials; use C4::Output; use C4::Context; diff --git a/serials/subscription-renew.pl b/serials/subscription-renew.pl index 72b101b76e..484fbfbf9f 100755 --- a/serials/subscription-renew.pl +++ b/serials/subscription-renew.pl @@ -49,8 +49,7 @@ require Exporter; use CGI; use C4::Koha; use C4::Auth; -use C4::Dates; - +use C4::Dates qw/format_date/; use C4::Context; use C4::Auth; use C4::Output; -- 2.39.5