Lines 104-110
if ( $count == 1 ) {
Link Here
|
104 |
|
104 |
|
105 |
my (@itemtypesloop,@locationloop,@ccodeloop); |
105 |
my (@itemtypesloop,@locationloop,@ccodeloop); |
106 |
my $itemtypes = GetItemTypes; |
106 |
my $itemtypes = GetItemTypes; |
107 |
foreach my $thisitemtype (sort keys %$itemtypes) { |
107 |
foreach my $thisitemtype (sort {$itemtypes->{$a}->{'description'} cmp $itemtypes->{$b}->{'description'}} keys %$itemtypes) { |
108 |
push @itemtypesloop, { |
108 |
push @itemtypesloop, { |
109 |
value => $thisitemtype, |
109 |
value => $thisitemtype, |
110 |
description => $itemtypes->{$thisitemtype}->{'description'}, |
110 |
description => $itemtypes->{$thisitemtype}->{'description'}, |
Lines 112-125
if ( $count == 1 ) {
Link Here
|
112 |
}; |
112 |
}; |
113 |
} |
113 |
} |
114 |
my $locs = GetKohaAuthorisedValues( 'items.location' ); |
114 |
my $locs = GetKohaAuthorisedValues( 'items.location' ); |
115 |
foreach my $thisloc (sort keys %$locs) { |
115 |
foreach my $thisloc (sort {$locs->{$a} cmp $locs->{$b}} keys %$locs) { |
116 |
push @locationloop, { |
116 |
push @locationloop, { |
117 |
value => $thisloc, |
117 |
value => $thisloc, |
118 |
description => $locs->{$thisloc}, |
118 |
description => $locs->{$thisloc}, |
119 |
}; |
119 |
}; |
120 |
} |
120 |
} |
121 |
my $ccodes = GetKohaAuthorisedValues( 'items.ccode' ); |
121 |
my $ccodes = GetKohaAuthorisedValues( 'items.ccode' ); |
122 |
foreach my $thisccode (sort keys %$ccodes) { |
122 |
foreach my $thisccode (sort {$ccodes->{$a} cmp $ccodes->{$b}} keys %$ccodes) { |
123 |
push @ccodeloop, { |
123 |
push @ccodeloop, { |
124 |
value => $thisccode, |
124 |
value => $thisccode, |
125 |
description => $ccodes->{$thisccode}, |
125 |
description => $ccodes->{$thisccode}, |
126 |
- |
|
|