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:
parent
2e363d0d0c
commit
fd2bc6b897
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue