From 618b6986f22b025089c21cb9ef4a315ed0b3a4ca Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 9 Jul 2024 16:30:07 +0200 Subject: [PATCH] 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 Signed-off-by: Pedro Amorim Signed-off-by: Katrin Fischer --- .../vue/components/ERM/EHoldingsLocalTitlesList.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalTitlesList.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalTitlesList.vue index 5785856ac8..2812e02fd6 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalTitlesList.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalTitlesList.vue @@ -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("
") }, }, ] -- 2.39.5