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>
This commit is contained in:
Marcel de Rooy 2022-09-16 09:41:59 +00:00 committed by Lucas Gass
parent 2e363d0d0c
commit fd2bc6b897
1 changed files with 5 additions and 4 deletions

View File

@ -242,10 +242,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(