Bug 27451

Summary: Split opac_news.lang into two distinct fields for location and language
Product: Koha Reporter: Josef Moravec <josef.moravec>
Component: DatabaseAssignee: Josef Moravec <josef.moravec>
Status: RESOLVED DUPLICATE QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: jonathan.druart, martin.renvoize
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 22544    
Bug Blocks: 9081, 24346, 22663, 24220, 24221, 24223, 24224, 24766, 26801    

Description Josef Moravec 2021-01-16 16:32:02 UTC

    
Comment 1 Jonathan Druart 2021-01-20 09:50:31 UTC
Why? Can you explain a bit please?
Comment 2 Josef Moravec 2021-01-20 10:07:27 UTC
The 'lang' field now holds information about language and display location. These two string are concatenated by '_'. So data in lang field are not atomic. This leads to not very flexible design...
Comment 3 Katrin Fischer 2021-02-06 18:57:23 UTC
I think Josef is right about the cleaner design and it will also make it a little nicer to add an 'all languages' like I think we really should have for the logo and such. It also makes reporting and querying on the data nicer.
Comment 4 Jonathan Druart 2021-03-11 09:29:42 UTC
Shouldn't we actually implement the same behaviour and UI than for the notice templates?
https://snipboard.io/Ol8fZY.jpg

We would have a short list of the different block/content/news to edit, then a form with a list of the languages (vs the long ugly dropdown list we have now).
It will also add the ability to have a default value.
Comment 5 Martin Renvoize 2021-03-11 09:31:42 UTC
100% agree with that approach Jonathan :)
Comment 6 Jonathan Druart 2021-07-12 08:27:08 UTC
Done on bug 24387.

*** This bug has been marked as a duplicate of bug 24387 ***