<<

NAME

Koha::ERM::EUsage::COUNTER::5 - Koha COUNTER 5.1 Object class

API

Class Methods

new

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

_COUNTER_report_header

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

get_counter51_value

    Given a SUSHI response, get the value for the given key in the correct format for the COUNTER report
    https://counter5.cambridge.org/r51/sushi-docs/

get_mapped_SUSHI_values

    Given a SUSHI response, get the value for the given key in the correct format for the COUNTER report
    https://counter5.cambridge.org/r51/sushi-docs/

    It will return a string of the form "Name:Value;Name:Value;..."
    If the value is an array with a single element, just the value will be returned.
    If the value is an array with multiple elements, they will be joined with "|"

_get_SUSHI_Name_Value

Returns "Value" of a given "Name"

_get_SUSHI_Type_Value

Returns "Value" of a given "Type"

_get_COUNTER_row_usages

Returns the total and monthly usages for a row

get_SUSHI_metric_types

    Given a SUSHI report row, return a sorted list of all the metric types

_COUNTER_report_body

Return the COUNTER report body as an array

_COUNTER_title_report_row

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

_COUNTER_titles_report_column_headings

Return titles report column headings

get_report_type_specific_fields

Returns the specific fields for a given report_type

<<