use Carp;
use Data::Dumper;
-use MARC::Record;
-use MFHD::Caption;
-use MFHD::Holding;
+use base 'MARC::Record';
-our @ISA;
-
-@ISA = qw(MARC::Record);
+use OpenILS::Utils::MFHD::Caption;
+use OpenILS::Utils::MFHD::Holding;
sub new {
my $proto = shift;
use Carp;
use DateTime;
-use MARC::Field;
-our @ISA = qw(MARC::Field);
+use base 'MARC::Field';
sub new
{
# Initialize $weeknopat to be '(01|02|03|...|51|52|53)'
$weeknopat = '(';
foreach my $weekno (1..52) {
- $weeknopat .= sprintf("%02d|", $weekno);
+ $weeknopat .= sprintf('%02d|', $weekno);
}
$weeknopat .= '53)';
use Data::Dumper;
-use MARC::Field;
-
-our @ISA = qw(MARC::Field);
+use base 'MARC::Field';
sub new {
my $proto = shift;
sub format {
my $self = shift;
my $caption = $self->{_mfhdh_CAPTION};
- my $str = "";
+ my $str = '';
if ($caption->enumeration_is_chronology) {
# if issues are identified by chronology only, then the
# a caption enclosed in parentheses is not displayed
$capstr = '';
}
- $str .= ($key eq 'a' ? "" : ':') . $capstr . $self->{_mfhdh_SUBFIELDS}->{$key}->{HOLDINGS};
+ $str .= ($key eq 'a' ? '' : ':') . $capstr . $self->{_mfhdh_SUBFIELDS}->{$key}->{HOLDINGS};
}
# Chronology