Closed snorri closed 8 years ago
This is an issue in Catmandu core, Catmandu->fixer($fixer) should just echo the fixer if it's already a fixer. It will be fixed in a bugfix release later today.
Fixed in the dev branch. Sending a pull request in a minute
This should be fixed in Catmandu core. Creating a new Fix object every time is not efficient.
fixed in 0.0308
Specifying a fix in the config:
results in the following error (Perl v5.22.1) when fetching a record (ListRecords, GetRecord): "Useless use of single ref constructor in void context" (Catmandu::Fix::_build_fixer).
The cause of the error seems to be that
$format->{fix}
is set toCatmandu::Fix
object (inDancer/Plugin/Catmandu/OAI.pm
, line 111):$format->{fix} = Catmandu::Fix->new(fixes => $fix);
It is then passed as a fix parameter to
Catmandu::Exporter::Template
, in line 419:Commenting out line 111 in
Dancer/Plugin/Catmandu/OAI.pm
avoids the error and the fix is executed correctly.