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.github.io/kitodo-presentation/
GNU General Public License v3.0
39 stars 45 forks source link

[BUG] Exception when showing metadata of a document #1343

Closed thomaslow closed 1 month ago

thomaslow commented 2 months ago

Description

Argument 1 passed to Kitodo\Dlf\Common\MetsDocument::getLogicalStructure() must be of the type string, array given, called in /var/www/html/kitodo-presentation/Classes/Controller/MetadataController.php on line 313

Probably related to #1339 and #1317.

Reproduction

Steps to reproduce the behaviour:

  1. Select a document
  2. Open page with metadata widget
  3. Get Exception

Expected Behavior

Metadata is shown without exception.

Environment

sebastian-meyer commented 1 month ago

This is related to #1308.

We urgently need to fix metadata handling (it should be arrays everywhere, because every field can be multi-valued) and make sure, that all semi-fixes like #1317, #1339 and #1344 are reverted.