|
|
@ -157,14 +157,9 @@ fun NewsResourceAuthors(
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
if (authors.isNotEmpty()) {
|
|
|
|
if (authors.isNotEmpty()) {
|
|
|
|
// display all authors
|
|
|
|
// display all authors
|
|
|
|
val authorName = StringBuilder()
|
|
|
|
val authorNameFormatted =
|
|
|
|
authors.forEachIndexed { index, author ->
|
|
|
|
authors.joinToString(separator = ", ") { author -> author.name }
|
|
|
|
authorName
|
|
|
|
.uppercase(Locale.getDefault())
|
|
|
|
.append(author.name)
|
|
|
|
|
|
|
|
.append(if (index == authors.lastIndex) "" else ", ")
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
val authorNameFormatted = "$authorName".uppercase(Locale.getDefault())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
val authorImageUrl = authors[0].imageUrl
|
|
|
|
val authorImageUrl = authors[0].imageUrl
|
|
|
|
|
|
|
|
|
|
|
|