Bug 31370

Summary: Additional contents: Preview of default content only
Product: Koha Reporter: Caroline Cyr La Rose <caroline.cyr-la-rose>
Component: ToolsAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: m.de.rooy
Version: master   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29782
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

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.