Bug 31239: (QA follow-up) Fixing ternary formatting

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 4481817701)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit fd2bc6b897)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
This commit is contained in:
Marcel de Rooy 2022-09-16 09:41:59 +00:00 committed by Arthur Suzuki
parent da04cc1fac
commit f4e145bf01
1 changed files with 5 additions and 4 deletions

View File

@ -193,10 +193,11 @@ use C4::Biblio qw( GetMarcFromKohaField );
my $kohafield = $v->{kohafield};
my ( $table, $column ) = split '\.', $kohafield;
while ( my $i = $items->next ) {
my $value =
$table eq 'items' ? $i->$column
: $table eq 'biblio' ? $i->biblio->$column
: $i->biblioitem->$column;
my $value = $table eq 'items'
? $i->$column
: $table eq 'biblio'
? $i->biblio->$column
: $i->biblioitem->$column;
$output .= " {" . $i->itemnumber . " => " . $value . "}";
}
new_item(