Ordening items on holding branch
Modification in order to include Nonmarc structure
This commit is contained in:
parent
8225550ca2
commit
86b0bf2fbc
|
|
@ -199,9 +199,9 @@ foreach my $field (@fields) {
|
|||
push(@big_array, \%this_row);
|
||||
}
|
||||
}
|
||||
if (my $subfcode=C4::Context->preference('SortItemsBy')){
|
||||
@big_array = sort {$a->{$subfcode} cmp $b->{$subfcode}} @big_array;
|
||||
}
|
||||
my ($holdingbrtagf,$holdingbrtagsubf) = &MARCfind_marc_from_kohafield($dbh,"items.holdingbranch",$itemtype);
|
||||
@big_array = sort {$a->{$holdingbrtagsubf} cmp $b->{$holdingbrtagsubf}} @big_array;
|
||||
|
||||
#fill big_row with missing datas
|
||||
foreach my $subfield_code (keys(%witness)) {
|
||||
for (my $i=0;$i<=$#big_array;$i++) {
|
||||
|
|
|
|||
|
|
@ -181,9 +181,8 @@ 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;
|
||||
}
|
||||
my ($holdingbrtagf,$holdingbrtagsubf) = &MARCfind_marc_from_kohafield($dbh,"items.holdingbranch",$itemtype);
|
||||
@big_array = sort {$a->{$holdingbrtagsubf} cmp $b->{$holdingbrtagsubf}} @big_array;
|
||||
|
||||
# now, construct template !
|
||||
my @item_value_loop;
|
||||
|
|
|
|||
|
|
@ -168,6 +168,8 @@ foreach my $field (@fields) {
|
|||
push(@big_array, \%this_row);
|
||||
}
|
||||
}
|
||||
my ($holdingbrtagf,$holdingbrtagsubf) = &MARCfind_marc_from_kohafield($dbh,"items.holdingbranch",$itemtype);
|
||||
@big_array = sort {$a->{$holdingbrtagsubf} cmp $b->{$holdingbrtagsubf}} @big_array;
|
||||
#fill big_row with missing datas
|
||||
foreach my $subfield_code (keys(%witness)) {
|
||||
for (my $i=0;$i<=$#big_array;$i++) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue