Koha::UI::Table::Builder::Items
Helper to build a table with a list of items with all their information.
Items' attributes that are mapped and not mapped will be listed in the table.
Only attributes that have been defined only once will be displayed (empty string is considered as not defined).
my $table = Koha::UI::Table::Builder::Items->new( { itemnumbers => \@itemnumbers } );
Constructor.
my $items_table = Koha::UI::Table::Builder::Items->new( { itemnumbers => \@itemnumbers } ) ->build_table; my $items = $items_table->{items}; my $headers = $items_table->{headers};
Build the headers and rows for the table.
Use it with: [% PROCESS items_table_batchmod headers => headers, items => items %]
Build the headers given the items' info.