Check abstract parsing in case of conversion Error
@andynicholson I was checking the issue #679 (closed). I realized the following things:
-
At line https://gitlab.coko.foundation/ncbi/ncbi/-/blob/develop/server/services/handleNcbiMessage/bookComponentConversion.js#L72 we don't do the same checks as we do higher in the code for the abstract field.
-
Checking the bookComponent of issue #679 (closed) we can see that two upload versions happened. At the first one, we had a successful conversion but for the second one, a conversion error occurred. The second time failed because the abstract was an array (this should be a string) and it was coming from the DB. (which means that the first version saved the abstract inside the metadata column as an array which it shouldn't )
We need to simulate a chapter with the same files and check that abstract is saved correctly in case of a conversion error.
@andynicholson this is a tricky case. Please let's discuss it if the issue is not clear.