bug 7284: fix package build problem, move BEGIN into new

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
This commit is contained in:
MJ Ray 2012-03-29 18:35:04 +01:00 committed by Jared Camins-Esakov
parent c25ab911c0
commit 53ef224eb2
2 changed files with 11 additions and 12 deletions

View File

@ -59,7 +59,17 @@ my %subdivisions = (
my $bib_heading_fields;
BEGIN {
=head1 METHODS
=head2 new
my $marc_handler = C4::Heading::UNIMARC->new();
=cut
sub new {
my $class = shift;
my $dbh = C4::Context->dbh;
my $sth = $dbh->prepare(
"SELECT tagfield, authtypecode
@ -74,18 +84,7 @@ BEGIN {
subfields => 'abcdefghjklmnopqrstvxyz',
};
}
}
=head1 METHODS
=head2 new
my $marc_handler = C4::Heading::UNIMARC->new();
=cut
sub new {
my $class = shift;
return bless {}, $class;
}