adsabs / ADSManualParser

Sets up a working environment for curators to manually process publisher metadata for the Classic backoffice
GNU General Public License v3.0
0 stars 3 forks source link

Subtitles being handled incorrectly by translator #55

Open seasidesparrow opened 8 months ago

seasidesparrow commented 8 months ago

The translator is currently written to assume that the contents of the subtitle element are a string, but they should actually be treated like an object of type Title.json. When ManualParser tries to write a classic record for an input file having a subtitle specified, it will generate a failure about being unable to concatenate a variable of type dict to a string, which happens when the subtitle is appended to the title.

To fix, instead of passing the subtitle object from the parser, in translator, pass sub_title.get("textEnglish", "")