Doubt assoc type metrics OJS 3.0

Hi everybody

I have a doubt respect to the values of the field assoc type in the new version of OJS, the old vallues are the next:

256 - view Home page
257 - view abstract (article)
259 - view table contents of journal
260 - download (article)

somebody can help me and tell me with the update database version 3.0, what are the new values in the table metrics?

than you very much for the help

Hi @christian_criollo,

You can find out the assoc_type values by looking for ASSOC_TYPE_… constants in PHP. These are generally in lib/pkp/classes/core/PKPApplication.inc.php and classes/core/Application.inc.php, e.g. for OMP master:

define('ASSOC_TYPE_PRODUCTION_ASSIGNMENT',      0x0000202);
define('ASSOC_TYPE_SUBMISSION_FILE',            0x0000203);
define('ASSOC_TYPE_REVIEW_RESPONSE',            0x0000204);
define('ASSOC_TYPE_REVIEW_ASSIGNMENT',          0x0000205);
define('ASSOC_TYPE_SUBMISSION_EMAIL_LOG_ENTRY', 0x0000206);
define('ASSOC_TYPE_WORKFLOW_STAGE',             0x0000207);
define('ASSOC_TYPE_NOTE',                       0x0000208);
define('ASSOC_TYPE_REPRESENTATION',             0x0000209);
define('ASSOC_TYPE_ANNOUNCEMENT',               0x000020A);
define('ASSOC_TYPE_REVIEW_ROUND',               0x000020B);
define('ASSOC_TYPE_SUBMISSION_FILES',           0x000020F);
define('ASSOC_TYPE_PUBLISHED_SUBMISSION',       0x0000210);
define('ASSOC_TYPE_PLUGIN',                     0x0000211);
define('ASSOC_TYPE_SECTION',                    0x0000212);
define('ASSOC_TYPE_USER',                       0x0001000); // This value used because of bug #6068
define('ASSOC_TYPE_USER_GROUP',                 0x0100002);
define('ASSOC_TYPE_CITATION',                   0x0100003);
define('ASSOC_TYPE_AUTHOR',                     0x0100004);
define('ASSOC_TYPE_EDITOR',                     0x0100005);
define('ASSOC_TYPE_USER_ROLES',                 0x0100007);
define('ASSOC_TYPE_ACCESSIBLE_WORKFLOW_STAGES', 0x0100008);
define('ASSOC_TYPE_SUBMISSION',                 0x0100009);
define('ASSOC_TYPE_QUERY',                      0x010000a);
define('ASSOC_TYPE_QUEUED_PAYMENT',             0x010000b);

…and…

define('ASSOC_TYPE_MONOGRAPH',                  ASSOC_TYPE_SUBMISSION);
define('ASSOC_TYPE_PUBLISHED_MONOGRAPH',        ASSOC_TYPE_PUBLISHED_SUBMISSION);
define('ASSOC_TYPE_PUBLICATION_FORMAT',         ASSOC_TYPE_REPRESENTATION);

define('ASSOC_TYPE_PRESS',                      0x0000200);
define('ASSOC_TYPE_CATEGORY',                   0x000020D);
define('ASSOC_TYPE_SERIES',                     ASSOC_TYPE_SECTION);

Just make sure you’re checking the values for your version of the software – these do change occasionally! (When that happens, the upgrade scripts will take care of existing content.)

Regards,
Alec Smecher
Public Knowledge Project Team

Thanks asmecher for the help