use OpenILS::Utils::Fieldmapper;
use OpenSRF::Utils::SettingsClient;
-use DateTime;
-use DateTime::Format::ISO8601;
+use DateTime;
+use DateTime::Format::ISO8601;
use DateTime::Set;
use DateTime::SpanSet;
-my $_dt_parser = DateTime::Format::ISO8601->new;
+my $_dt_parser = DateTime::Format::ISO8601->new;
my $log = 'OpenSRF::Utils::Logger';
$begin = $_dt_parser->parse_datetime( cleanse_ISO8601($_b->{start}) );
}
}
-
+
if ( $end_hoo && $direction >= 0 && $end_hoo->intersects($end) ) {
my $hoo_intersection = $end_hoo->intersection( $end );
$end = $hoo_intersection->max;
}
}
}
-
+
if ( $direction >= 0 ) {
my $end_dow = $_dt_parser->parse_datetime( $end )->day_of_week_0;
my $end_open_meth = "dow_".$end_dow."_open";
my $end_close_meth = "dow_".$end_dow."_close";
-
+
$count = 1;
while ($hoo->$end_open_meth eq '00:00:00' and $hoo->$end_close_meth eq '00:00:00') {
$end = cleanse_ISO8601($_dt_parser->parse_datetime( $end )->add( days => 1)->strftime('%FT%T%z'));
sub _clean_regex_chars {
my ($search) = @_;
- # Escape metacharacters for SIMILAR TO
+ # Escape metacharacters for SIMILAR TO
# (http://www.postgresql.org/docs/8.4/interactive/functions-matching.html)
$search =~ s/\_/\\_/g;
$search =~ s/\%/\\%/g;
my $self = shift;
my $client = shift;
my @list = @_;
-
+
@list = ($list[0]) unless ($self->api_name =~ /batch/o);
for my $sc (@list) {
my $self = shift;
my $client = shift;
my $ou = ''.shift();
-
+
return undef unless ($ou);
my $s_table = actor::stat_cat->table;
my $client = shift;
my $ou = ''.shift();
my $sc = ''.shift();
-
+
return undef unless ($ou);
my $s_table = actor::stat_cat_entry->table;
my $client = shift;
my $ou = ''.shift();
my $sc = ''.shift();
-
+
return undef unless ($ou);
my $s_table = actor::stat_cat_entry_default->table;
my $client = shift;
my $ou = ''.shift();
my $sc = ''.shift();
-
+
return undef unless ($ou);
my $s_table = actor::stat_cat_entry_default->table;