/** * Return locale message key describing event type. * @return string */ function getEventTitle() { switch ($this->getData('eventType')) { default: return parent::getEventTitle(); } }
/** * Return locale message key describing event type. * @return string */ function getEventTitle() { switch ($this->getData('eventType')) { // General events case MONOGRAPH_LOG_MONOGRAPH_SUBMIT: return 'submission.event.general.monographSubmitted'; case MONOGRAPH_LOG_METADATA_UPDATE: return 'submission.event.general.metadataUpdated'; case MONOGRAPH_LOG_SUPPFILE_UPDATE: return 'submission.event.general.suppFileUpdated'; case MONOGRAPH_LOG_MONOGRAPH_PUBLISH: return 'submission.event.general.monographPublished'; // Author events // Author events case MONOGRAPH_LOG_AUTHOR_REVISION: return 'submission.event.author.authorRevision'; // Editor events // Editor events case MONOGRAPH_LOG_EDITOR_ASSIGN: return 'submission.event.editor.editorAssigned'; case MONOGRAPH_LOG_EDITOR_UNASSIGN: return 'submission.event.editor.editorUnassigned'; case MONOGRAPH_LOG_EDITOR_DECISION: return 'submission.event.editor.editorDecision'; case MONOGRAPH_LOG_EDITOR_FILE: return 'submission.event.editor.editorFile'; case MONOGRAPH_LOG_EDITOR_ARCHIVE: return 'submission.event.editor.submissionArchived'; case MONOGRAPH_LOG_EDITOR_RESTORE: return 'submission.event.editor.submissionRestored'; // Reviewer events // Reviewer events case MONOGRAPH_LOG_REVIEW_ASSIGN: return 'submission.event.reviewer.reviewerAssigned'; case MONOGRAPH_LOG_REVIEW_UNASSIGN: return 'submission.event.reviewer.reviewerUnassigned'; case MONOGRAPH_LOG_REVIEW_INITIATE: return 'submission.event.reviewer.reviewInitiated'; case MONOGRAPH_LOG_REVIEW_CANCEL: return 'submission.event.reviewer.reviewCancelled'; case MONOGRAPH_LOG_REVIEW_REINITIATE: return 'submission.event.reviewer.reviewReinitiated'; case MONOGRAPH_LOG_REVIEW_CONFIRM_BY_PROXY: return 'submission.event.reviewer.reviewAcceptedByProxy'; case MONOGRAPH_LOG_REVIEW_ACCEPT: return 'submission.event.reviewer.reviewAccepted'; case MONOGRAPH_LOG_REVIEW_DECLINE: return 'submission.event.reviewer.reviewDeclined'; case MONOGRAPH_LOG_REVIEW_REVISION: return 'submission.event.reviewer.reviewRevision'; case MONOGRAPH_LOG_REVIEW_RECOMMENDATION: return 'submission.event.reviewer.reviewRecommendation'; case MONOGRAPH_LOG_REVIEW_RATE: return 'submission.event.reviewer.reviewerRated'; case MONOGRAPH_LOG_REVIEW_SET_DUE_DATE: return 'submission.event.reviewer.reviewDueDate'; case MONOGRAPH_LOG_REVIEW_RESUBMIT: return 'submission.event.reviewer.reviewResubmitted'; case MONOGRAPH_LOG_REVIEW_FILE: return 'submission.event.reviewer.reviewFile'; // Copyeditor events // Copyeditor events case MONOGRAPH_LOG_COPYEDIT_ASSIGN: return 'submission.event.copyedit.copyeditorAssigned'; case MONOGRAPH_LOG_COPYEDIT_UNASSIGN: return 'submission.event.copyedit.copyeditorUnassigned'; case MONOGRAPH_LOG_COPYEDIT_INITIATE: return 'submission.event.copyedit.copyeditInitiated'; case MONOGRAPH_LOG_COPYEDIT_REVISION: return 'submission.event.copyedit.copyeditRevision'; case MONOGRAPH_LOG_COPYEDIT_INITIAL: return 'submission.event.copyedit.copyeditInitialCompleted'; case MONOGRAPH_LOG_COPYEDIT_FINAL: return 'submission.event.copyedit.copyeditFinalCompleted'; case MONOGRAPH_LOG_COPYEDIT_SET_FILE: return 'submission.event.copyedit.copyeditSetFile'; // Proofreader events // Proofreader events case MONOGRAPH_LOG_PROOFREAD_ASSIGN: return 'submission.event.proofread.proofreaderAssigned'; case MONOGRAPH_LOG_PROOFREAD_UNASSIGN: return 'submission.event.proofread.proofreaderUnassigned'; case MONOGRAPH_LOG_PROOFREAD_INITIATE: return 'submission.event.proofread.proofreadInitiated'; case MONOGRAPH_LOG_PROOFREAD_REVISION: return 'submission.event.proofread.proofreadRevision'; case MONOGRAPH_LOG_PROOFREAD_COMPLETE: return 'submission.event.proofread.proofreadCompleted'; // Layout events // Layout events case MONOGRAPH_LOG_LAYOUT_ASSIGN: return 'submission.event.layout.layoutEditorAssigned'; case MONOGRAPH_LOG_LAYOUT_UNASSIGN: return 'submission.event.layout.layoutEditorUnassigned'; case MONOGRAPH_LOG_LAYOUT_INITIATE: return 'submission.event.layout.layoutInitiated'; case MONOGRAPH_LOG_LAYOUT_GALLEY: return 'submission.event.layout.layoutGalleyCreated'; case MONOGRAPH_LOG_LAYOUT_COMPLETE: return 'submission.event.layout.layoutComplete'; // Production events // Production events case MONOGRAPH_LOG_PRODUCTION_ASSIGN: return 'submission.event.production.productionEditorAssigned'; default: return parent::getEventTitle(); } }