Bug 37277: Detach identifiers on the local title list view

If a local title has both ISBN (Print) and ISBN (Online) the 2 values
are concanetate on the same line without space on the the local title
list view.

With this patch they are now separated by a new line.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 618b6986f2)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2024-07-09 16:30:07 +02:00 committed by Lucas Gass
parent 79eb94bcc4
commit 2b0ac7096f
1 changed files with 6 additions and 6 deletions

View File

@ -223,22 +223,22 @@ export default {
render: function (data, type, row, meta) {
let print_identifier = row.print_identifier
let online_identifier = row.online_identifier
return (
(print_identifier
return [
print_identifier
? escape_str(
__("ISBN (Print): %s").format(
print_identifier
)
)
: "") +
(online_identifier
: "",
online_identifier
? escape_str(
__("ISBN (Online): %s").format(
online_identifier
)
)
: "")
)
: "",
].join("<br/>")
},
},
]