use C4::OAI::Sets;
use C4::Debug;
use Koha::Cache;
use Koha::Caches;
use Koha::Authority::Types;
use Koha::Acquisition::Currencies;
use Koha::SearchEngine;
use Date::Calc qw( Date_to_Days Today);
use C4::Context;
use constant ISO_DATE_FORMAT => "%04d-%02d-%02d";
use Koha;
use JSON;
use HTTP::Request;
use HTTP::Request::Common;
use LWP::Authen::Basic;
use C4::Branch; # Can be removed?
use Koha::DateUtils qw(dt_from_string);
use Koha::Libraries;
use DateTime::Format::MySQL;
use YAML;
use Koha::Database;
sub get_yaml {
my $yml_path = C4::Context->config('intranetdir') . '/admin/columns_settings.yml';
use DateTime::Set;
use DateTime::Duration;
use Carp;
sub new {
use Koha::Biblios;
use Koha::BiblioFramework;
use Koha::BiblioFrameworks;
my $input = new CGI;
my $frameworkcode = $input->param('frameworkcode') || q||;
use C4::Output;
# retrieve parameters
use CGI qw ( -utf8 );
my $query = CGI->new();
my $report_id = $query->param('id');
use DateTime;
use Koha::DateUtils;
use Module::Load::Conditional qw/check_install/;
use MARC::Field;
use C4::Biblio;
use Koha::Cache qw/flush_all/;
BEGIN {
use C4::Auth;
use C4::Calendar;
-