inveniosoftware / inveniosoftware/cookiecutter-invenio-instance

Preview file: Preview button is showing full screen file

Open
#274 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
6
Forks
38
PR merge metrics
No merged PRs in 30d

Description

Package version (if known):

## Describe the bug
When clicking on file preview the entire page reloads and shows the preview of the file, but it should preview the file in the iframe.

## Steps to Reproduce
1. Upload some .pdf files
2. Search for the record and access the details
3. Click on the preview for one of the uploaded files
4. The page reloads to show only the preview of the file

## Expected behavior
It should reload only the iframe and not the entire page

## Screenshots (if applicable)
![image](https://user-images.githubusercontent.com/15194802/101937286-f50ecb80-3be1-11eb-8b17-4ad87cbd4fe2.png)

## Additional context
Maybe it's necessary to touch `invenio-previewer`

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue by uploading a PDF, opening its record details, and clicking the preview button. Trace the preview button and iframe integration, including the possible invenio-previewer dependency; done means the iframe updates while the surrounding page remains loaded.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.