Suggestions.pm - BEGIN block VERSION and vars related to export.
authorJoe Atzberger <joe.atzberger@liblime.com>
Mon, 7 Jan 2008 19:53:15 +0000 (13:53 -0600)
committerJoshua Ferraro <jmf@liblime.com>
Tue, 8 Jan 2008 02:02:48 +0000 (20:02 -0600)
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/Suggestions.pm

index 336e408..80e0fbc 100644 (file)
@@ -19,15 +19,29 @@ package C4::Suggestions;
 
 
 use strict;
-require Exporter;
 use C4::Context;
 use C4::Output;
 use C4::Dates qw(format_date);
 use Mail::Sendmail;
 use vars qw($VERSION @ISA @EXPORT);
 
-# set the version for version checking
-$VERSION = 3.01;
+BEGIN {
+       # set the version for version checking
+       $VERSION = 3.01;
+       require Exporter;
+       @ISA = qw(Exporter);
+       @EXPORT = qw(
+               &NewSuggestion
+               &SearchSuggestion
+               &GetSuggestion
+               &GetSuggestionByStatus
+               &DelSuggestion
+               &CountSuggestion
+               &ModStatus
+               &ConnectSuggestionAndBiblio
+               &GetSuggestionFromBiblionumber
+       );
+}
 
 =head1 NAME
 
@@ -54,21 +68,6 @@ Suggestions done by other borrowers can be seen when not "AVAILABLE"
 
 =head1 FUNCTIONS
 
-=cut
-
-@ISA = qw(Exporter);
-@EXPORT = qw(
-    &NewSuggestion
-    &SearchSuggestion
-    &GetSuggestion
-    &GetSuggestionByStatus
-    &DelSuggestion
-    &CountSuggestion
-    &ModStatus
-    &ConnectSuggestionAndBiblio
-    &GetSuggestionFromBiblionumber
- );
-
 =head2 SearchSuggestion
 
 (\@array) = &SearchSuggestion($user,$author,$title,$publishercode,$status,$suggestedbyme)