|
|
@ -121,7 +121,7 @@ defmodule DecentralisedBookIndexWeb.BookLive.Show do
|
|
|
|
authors_string =
|
|
|
|
authors_string =
|
|
|
|
author_roles
|
|
|
|
author_roles
|
|
|
|
|> Enum.map(fn author_role ->
|
|
|
|
|> Enum.map(fn author_role ->
|
|
|
|
if author_role.role == "" do
|
|
|
|
if author_role.role in ["", nil] do
|
|
|
|
{"#{author_role.author.name}", author_role.author.id}
|
|
|
|
{"#{author_role.author.name}", author_role.author.id}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{"#{author_role.author.name} (#{author_role.role})", author_role.author.id}
|
|
|
|
{"#{author_role.author.name} (#{author_role.role})", author_role.author.id}
|
|
|
|