Bug 29113: Hide code for additional contents and generate it
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 4 Oct 2021 14:28:49 +0000 (16:28 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 25 Nov 2021 08:48:49 +0000 (09:48 +0100)
commit264ac5fd2dbb97c5f3f875559c95a19ce49c6aea
treea552e143426ddbe93340700e85e9dc42bad97b26
parentfb2e8e3450963aa3bdfee4fa1ddd9837e4224732
Bug 29113: Hide code for additional contents and generate it

additional_contents.code is used to group DB rows together. Each row
represent one content in a given language, and the code is used to know
they are translation of the lang='default' one.

It's not really useful for the end user and we could hide it and
generate it.

Test plan:
Create/Edit/Delete additional contents (news and HTML customizations)
and confirm that they are correctly grouped together.
You need several languages installed to test this patch correctly.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt
tools/additional-contents.pl