-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin should give a more precise error description if articles cannot be exported #24
Comments
Hi @BartChris , I completely agree with you that any kind of error should be reported indicating the actual problem. What kind of problem did you observe that was not reported or reported by a misleading error message? Can you provide more information on the actual type of error you observed? The lines of code you referenced above should only filter out galleys of file types the DNB does not accept (e.g. HTML, XML, exe, sh, ...). The message indicates the type of files the DNB accepts. The only other reason for filtering out galleys may be the IP filtering of remote galleys. But this is handled by a separate exception and should be corretly reported. Otherwise this code has nothing to do with other errors that might prevent deposition of an article. I am happy to discuss any improvments but I need more information on the actual error. Do you use remote galleys or IP filtering? Do you export supplementary files? Best wishes, |
In our system we stumbled over the problem that the submission had the wrong category, so that check here failed: Line 1193 in aa5b0e7
The error message indicated a missing PDF, but the articles had the wrong category assigned. |
OK, I understand. So would it be sufficient to modify the error message like this: "The article {$param} cannot be exported because it has no galley labeled as document or supplementray galley, or the galley type is not PDF or EPUB." ? |
Thanks a lot. This sounds good. Would it maybe be more correct to say |
This error message is shown for both document galleys and supplementary galleys. What about: "The article {$param} (or one of its supplementary galleys) cannot be exported because it has no galley file labeled as document or the file type of the galley or supplementary galley is not PDF or EPUB." |
Sounds good! |
I updated the locales on the 3.3 and 3.4 branches. The changes will be distributed with the next releases. |
The export of articles might fail for different reasons, e.g. if the genre of the submission/article has the wrong category
dnb/DNBExportPlugin.php
Line 1193 in aa5b0e7
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.
dnb/DNBExportPlugin.php
Line 780 in aa5b0e7
dnb/locale/en/locale.po
Line 133 in aa5b0e7
Would it be possible to supply error messages which indicate what the actual problem is? Thanks a lot.
The text was updated successfully, but these errors were encountered: