Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multivolume Work: page view: three "undefined" in navigation #350

Closed
BFallert opened this issue Jun 21, 2019 · 6 comments
Closed

Multivolume Work: page view: three "undefined" in navigation #350

BFallert opened this issue Jun 21, 2019 · 6 comments
Assignees
Labels
❌ duplicate A duplicate issue report or pull request. ⛔ invalid A non-reproducable or layer 8 problem.

Comments

@BFallert
Copy link
Collaborator

When i open a Multivolume Work in page view i see tree "undefined" in navigation:

<ul class="tx-dlf-navigation">
....
<li class="tx-dlf-navigation-edit">undefined</li>
<li class="tx-dlf-navigation-editRemove" style="padding-left: 4px;">undefined</li>
<li class="tx-dlf-navigation-magnifier" style="padding-left: 4px;">undefined</li>

You can see this in the Demo-Installation
Das Steinkohlenrevier von Lugau-Oelsnitz:
https://presentation-demo.kitodo.org/index.php?id=4&tx_dlf%5Bid%5D=797&tx_dlf%5Bpage%5D=1

image

For a volume or monograph, the following will be displayed instead
image

@sebastian-meyer sebastian-meyer added the 🐛 bug A non-security related bug. label Jun 21, 2019
@sebastian-meyer
Copy link
Member

@chrizzor May I assign this to you since it seems to be a bug with the basket feature?

@chrizzor
Copy link
Collaborator

Thanks for the advice.I take a look.

@chrizzor
Copy link
Collaborator

In my opinion this is not a bug with the basket feature or with the presentation extension at all. The undefined is generated from the javascript in the presentation-package extension.
@BFallert Can you create the same issue at the presentation-package

@BFallert
Copy link
Collaborator Author

BFallert commented Jun 25, 2019

@chrizzor i think this is nothing from the presentation-package, you can only hide the error there,
The presentation-package search a <div class="tx-dlf-navigation-edit">###EDITBUTTON###</div> and transform them to a li element. But the original ###EDITBUTTON### which is defined in the Plugin/PageView.php Line 116 or 119 is undefined.

I'm not completely sure, but as far as I can tell, this is the mistake.

Nevertheless, I have recreated the issue in kitodo / kitodo-demo (presentation package) as desired kitodo/kitodo-demo#12

@chrizzor
Copy link
Collaborator

The PageView plugin doesn't return any output in the given case, because of this if condition:
PageView.php

That's the reason why I would say that it is not a bug with the presentation extension.
The javascript in the presentation-package should be more robust and should show the buttons grayed out even if they are not available.

@sebastian-meyer sebastian-meyer added ❌ duplicate A duplicate issue report or pull request. ⛔ invalid A non-reproducable or layer 8 problem. and removed 🐛 bug A non-security related bug. labels Dec 4, 2019
@sebastian-meyer
Copy link
Member

Closing this because of #350 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❌ duplicate A duplicate issue report or pull request. ⛔ invalid A non-reproducable or layer 8 problem.
Projects
None yet
Development

No branches or pull requests

3 participants