Lines 752-762
if( my $default_location = C4::Context->preference('NewItemsDefaultLocation') )
Link Here
|
752 |
} |
752 |
} |
753 |
|
753 |
|
754 |
my @ig = Koha::Biblio::ItemGroups->search({ biblio_id => $biblionumber })->as_list(); |
754 |
my @ig = Koha::Biblio::ItemGroups->search({ biblio_id => $biblionumber })->as_list(); |
|
|
755 |
#sort by display order |
756 |
my @sorted_ig = sort { $a->display_order <=> $b->display_order } @ig; |
755 |
# what's the next op ? it's what we are not in : an add if we're editing, otherwise, and edit. |
757 |
# what's the next op ? it's what we are not in : an add if we're editing, otherwise, and edit. |
756 |
$template->param( |
758 |
$template->param( |
757 |
biblio => $biblio, |
759 |
biblio => $biblio, |
758 |
items => \@items, |
760 |
items => \@items, |
759 |
item_groups => \@ig, |
761 |
item_groups => \@sorted_ig, |
760 |
item_header_loop => \@header_value_loop, |
762 |
item_header_loop => \@header_value_loop, |
761 |
subfields => $subfields, |
763 |
subfields => $subfields, |
762 |
itemnumber => $itemnumber, |
764 |
itemnumber => $itemnumber, |
763 |
- |
|
|