Cookies are not set on documents without full-text
Closed this issue · 2 comments
albig commented
In the current release 5.2.0, cookies are not set due to JavaScript errors if the document has no full-text.
Uncaught TypeError: Cannot read property 'split' of undefined
at dlfViewer.displayHighlightWord (merged-7c58897ed0ac76746819ed3f2a9d1051.js?1621370002:4513)
at dlfViewer.<anonymous> (merged-7c58897ed0ac76746819ed3f2a9d1051.js?1621370002:4623)
The cookies are used e.g. to save the zoom level.
albig commented
Dear @beatrycze-volk, could you please have a look at this issue? I assume it is a bug in Kitodo.Presentation. Is it only because of a missing configuration? Or because there is no full-text available? Anyway, we should catch this JavaScript exception.
Examples:
working (with full-text):
Error (without full-text, both Kitodo.Presentation 3.2):
- https://dfg-viewer.de/show?tx_dlf%5Bdouble%5D=0&tx_dlf%5Bid%5D=http%3A%2F%2Fdigital.slub-dresden.de%2Foai%2F%3Fverb%3DGetRecord%26metadataPrefix%3Dmets%26identifier%3Doai%3Ade%3Aslub-dresden%3Adb%3Aid-263566811&tx_dlf%5Bpage%5D=2&cHash=e1096fbb7baf54e24c87d664de02f78c
- https://sachsen.digital/werkansicht/32775/2/0?tx_dlf%5Bpagegrid%5D=0&cHash=1346c77757f1aeb3c6a4c389ae6a385d
If this must be fixed in Kitodo.Presentation, please open an issue there and fix it.
albig commented
Solved by Kitodo.Presentation 3.2.1.