fix for JATS export with funding sources elements in odd positions
This fixes the JATS generation code for an edge case when a funding source or award ID paragraph is the last element in a container, like in this example:
(It's on Kotahi Dev here: https://kotahidev.cloud68.co/kotahi/versions/a4a58a10-c3d8-4051-82f3-2d0e0cd05442/production )
There the second paragraph is tagged as Funding source
; it's inside an Abstract
section. The code to export JATS was failing because it looked to see if the next paragraph after a Funding source
was an Award ID
so they could be wrapped up in a JATS <award-group>
element (which doesn't exist in the Wax interface). Now this particular case (which shouldn't actually be something people are doing!) will not fail.