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 commit4481817701) Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> (cherry picked from commitfd2bc6b897) Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
This commit is contained in:
parent
da04cc1fac
commit
f4e145bf01
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue