From 280e629836093c9d801710ce8b02f95f9872c933 Mon Sep 17 00:00:00 2001 From: hdl Date: Wed, 28 Sep 2005 14:43:12 +0000 Subject: [PATCH] ordening items by branch --- acqui.simple/additem.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/acqui.simple/additem.pl b/acqui.simple/additem.pl index 9603281e80..df407bbe26 100755 --- a/acqui.simple/additem.pl +++ b/acqui.simple/additem.pl @@ -181,6 +181,10 @@ foreach my $subfield_code (keys(%witness)) { $big_array[$i]{$subfield_code}=" " unless ($big_array[$i]{$subfield_code}); } } +if (my $subfcode=C4::Context->preference('SortItemsBy')){ + @big_array = sort {$a->{$subfcode} cmp $b->{$subfcode}} @big_array; +} + # now, construct template ! my @item_value_loop; my @header_value_loop; -- 2.39.5