sub _fm_link_from_class {
my ($class, $field) = @_;
- return Fieldmapper->publish_fieldmapper->{$class}{links}{$field};
+ return OpenILS::Application->publish_fieldmapper->{$class}{links}{$field};
}
sub _flattened_search_single_flesh_wad {
sub _fm_hint_by_class {
my $class = shift;
- return Fieldmapper->publish_fieldmapper->{$class}->{hint};
+ return OpenILS::Application->publish_fieldmapper->{$class}->{hint};
}
sub _fm_class_by_hint {
my $hint = shift;
my ($class) = grep {
- Fieldmapper->publish_fieldmapper->{$_}->{hint} eq $hint
- } keys %{ Fieldmapper->publish_fieldmapper };
+ OpenILS::Application->publish_fieldmapper->{$_}->{hint} eq $hint
+ } keys %{ OpenILS::Application->publish_fieldmapper };
return $class;
}
my $hint = shift;
my ($class) = grep {
- Fieldmapper->publish_fieldmapper->{$_}->{hint} eq $hint
- } keys %{ Fieldmapper->publish_fieldmapper };
+ OpenILS::Application->publish_fieldmapper->{$_}->{hint} eq $hint
+ } keys %{ OpenILS::Application->publish_fieldmapper };
return $class;
}
my $step = shift(@$path);
- my $fhint = Fieldmapper->publish_fieldmapper->{$context->class_name}{links}{$step}{class};
+ my $fhint = OpenILS::Application->publish_fieldmapper->{$context->class_name}{links}{$step}{class};
my $fclass = $self->_fm_class_by_hint( $fhint );
OpenSRF::EX::ERROR->throw(
"$step is not a field on ".$context->class_name." Please repair the environment.")
unless $fhint;
- my $ffield = Fieldmapper->publish_fieldmapper->{$context->class_name}{links}{$step}{key};
- my $rtype = Fieldmapper->publish_fieldmapper->{$context->class_name}{links}{$step}{reltype};
+ my $ffield = OpenILS::Application->publish_fieldmapper->{$context->class_name}{links}{$step}{key};
+ my $rtype = OpenILS::Application->publish_fieldmapper->{$context->class_name}{links}{$step}{reltype};
my $meth = 'retrieve_';
my $multi = 0;
$obj = $_object_by_path_cache{$def_id}{$str_path}{$step}{$ffield}{$lval} ||
(
(grep /cstore/, @{
- Fieldmapper->publish_fieldmapper->{$fclass}{controller}
+ OpenILS::Application->publish_fieldmapper->{$fclass}{controller}
}) ? $ed : ($red ||= new_rstore_editor(xact=>1))
)->$meth( ($multi) ? { $ffield => $lval } : $lval);