kitodo / kitodo-presentation

Kitodo.Presentation is a feature-rich framework for building a METS- or IIIF-based digital library. It is part of the Kitodo Digital Library Suite.
https://kitodo.org
GNU General Public License v3.0
38 stars 45 forks source link

Missing format validation of fulltext parsing #197

Closed albig closed 6 years ago

albig commented 7 years ago

Kitodo.Presentation supports fulltexts in ALTO-XML format. TEI will be supported soon.

On parsing the given file, there is no check the format is supported.

The result are several Javascript errors like this:

Uncaught TypeError: Cannot read property 'getTextblocks' of undefined

This should be improved. Maybe together with the TEI-Feature. Introducing this feature, we have to decide, which parser should be used depending on the file format.

sebastian-meyer commented 6 years ago

Paging @tinrie about this.