<<

NAME

Koha::ERM::EUsage::SushiCounter - Koha SushiCounter Object class

API

Class Methods

new

    my $sushi_counter =
        Koha::ERM::EUsage::SushiCounter->new( { response => decode_json( $response->decoded_content ) } );

get_COUNTER_from_SUSHI

    $self->get_COUNTER_from_SUSHI;

Get the COUNTER file generated from the SUSHI response

Internal methods

_build_COUNTER_report_file

Build the COUNTER file https://cop5.projectcounter.org/en/5.0.2/03-specifications/02-formats-for-counter-reports.html#report-header

_COUNTER_report_header

Return a COUNTER report header https://cop5.projectcounter.org/en/5.0.2/04-reports/03-title-reports.html

_COUNTER_item_report_row

Return a COUNTER item for the COUNTER items report body https://cop5.projectcounter.org/en/5.0.2/04-reports/04-item-reports.html#column-headings-elements

_COUNTER_database_report_row

Return a COUNTER database for the COUNTER databases report body https://cop5.projectcounter.org/en/5.0.2/04-reports/02-database-reports.html#column-headings-elements

_COUNTER_platform_report_row

Return a COUNTER platform for the COUNTER platforms report body https://cop5.projectcounter.org/en/5.0.2/04-reports/01-platform-reports.html#column-headings-elements

_COUNTER_title_report_row

Return a COUNTER title for the COUNTER titles report body https://cop5.projectcounter.org/en/5.0.2/04-reports/03-title-reports.html#column-headings-elements

_COUNTER_report_row

Return a COUNTER row for the COUNTER report body

_get_COUNTER_row_usages

Returns the total and monthly usages for a row

_COUNTER_report_body

Return the COUNTER report body as an array

_get_SUSHI_Name_Value

Returns "Value" of a given "Name"

_get_SUSHI_Type_Value

Returns "Value" of a given "Type"

_COUNTER_report_column_headings

Returns column headings by report type Check the report type from the COUNTER header and return column headings accordingly

_COUNTER_items_report_column_headings

Return items report column headings

_COUNTER_databases_report_column_headings

Return databases report column headings

_COUNTER_platforms_report_column_headings

Return platforms report column headings

_COUNTER_titles_report_column_headings

Return titles report column headings

_get_usage_months

Return report usage months. Formatted for column headings if $column_headings_formatting

get_report_type_specific_fields

Returns the specific fields for a given report_type

_type

<<