Embedded Metadata and HighWire fixes for preprint type (#3137) #3146
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
preferred. However, HW is not known to handle preprints distinctly
from (published) articles. In fact, in the HW translator preprints are
handled manually for special cases (bioRxiv/medRxiv). Therefore, in
EM, if type determined by non-HW already says "preprint", don't let HW
override that type. Especially, this keeps exports.itemType respected
(e.g. set by a translator that calls EM).
"Preprint PDF" as the PDF attachment name, rather than "Full Text
PDF".
easier to maintain, by
always an artifact arising from malformed HW metadata. This prevents
it from going into the extra.
In addition, failure to detect "multiple" by HW2.0 is addressed by improving the fallback-to-multiple logic and fixing the argument list of the call to
getSearchResults()
Fixes #3137