Skip to content

Plugin should give a more precise error description if articles cannot be exported #24

@BartChris

Description

@BartChris

The export of articles might fail for different reasons, e.g. if the genre of the submission/article has the wrong category

if ($genre->getCategory() != GENRE_CATEGORY_DOCUMENT) {

The error message if something cannot be exported is always the same and indicates missing pdf or epub files. This is confusing if there is in fact a PDF but the export fails for other reasons.

if (!$this->canBeExported($submission, $issue, $galleys, $supplementaryGalleys)) {

msgstr "The article {$param} cannot be exported because it does not have a PDF or an EPUB galley."

Would it be possible to supply error messages which indicate what the actual problem is? Thanks a lot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions