Bug 31370 - Additional contents: Preview of default content only
Summary: Additional contents: Preview of default content only
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Tools (show other bugs)
Version: master
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-16 14:34 UTC by Caroline Cyr La Rose
Modified: 2022-08-21 21:24 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Caroline Cyr La Rose 2022-08-16 14:34:22 UTC
I noticed this while testing bug 29782. I think the root problem is the same, but the problem it causes is minor compared to the created items not showing up at all.

When only the language tabs are filled, the preview modal is empty.

To test:
1) In a multilanguage installation, go to Tools > HTML customizations
2) Click "New entry"
3) Do not fill the "Default" tab, fill only the language tabs (title and content)
4) Save 
5) Click "Preview content"

It will say "Preview of" followed by empty title (default title) and empty content (default content).

I'm not sure what we would want to appear? All languages one after the other? A tabbed modal (is that possible?)? Different preview buttons?
Comment 1 Marcel de Rooy 2022-08-16 14:39:31 UTC
Good observation. The ac page assumes the presence of a default record which kind of functions as an umbrella for the other languages. So it shows the default in the preview only (by design).
I am not sure if it is needed to show a preview of the other languages though. But thats just my idea now.
Comment 2 Katrin Fischer 2022-08-21 21:24:29 UTC
I think it would be nice if we could see all languages and maybe 'page' through the preview. It would help with checking that all translations have been added and appear correctly and save some time when looking for mistakes etc. compared to checking in the OPAC. But enhancement is probably right here.