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] Namespace for `DOMXPath` missing in MetsDocument #1321

Open BFallert opened 2 months ago

BFallert commented 2 months ago

Description

When I want to save a document in Typo3 BE, I get several error messages. The error message occurs both when I want to save the data record without or with changes.

Each of the two lines is repeated x times:

12 times: PHP Warning Core: Error handler (BE): PHP Warning: DOMXPath::evaluate(): Undefined namespace prefix in /var/www/typo3/packages/bfallert/presentation/Classes/Common/MetsDocument.php line 797

6 time: PHP Warning Core: Error handler (BE): PHP Warning: DOMXPath::evaluate(): Undefined namespace prefix in /var/www/typo3/packages/bfallert/presentation/Classes/Common/MetsDocument.php line 850

Reproduction

Steps to reproduce the behaviour:

  1. Open Typo3-BE
  2. Select your "Data-Folder"
  3. Select / Click on "List"
  4. Scroll down to "Documents"
  5. Select a document
  6. Click on "edit record"
  7. Click on "Save"
  8. See the error

Expected Behavior

No error message

Screenshots and Examples

image

Environment

Additional Context

Add any other context about the problem here.

sebastian-meyer commented 1 month ago

Did you change any of the pre-defined metadata mappings?

The error suggest that maybe some mapping is missing a mandatory namespace for an element...