- Timestamp:
- 2019-09-09T13:04:34+12:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/classify/List.pm
r33454 r33460 80 80 'desc' => "{List.level_partition.approximate_size}"}, 81 81 { 'name' => "constant_size", 82 'desc' => "{List.level_partition.constant_size}" }, 82 'desc' => "{List.level_partition.constant_size}" }, 83 { 'name' => "all_values", 84 'desc' => "{List.level_partition.all_values}" }, 83 85 { 'name' => "none", 84 86 'desc' => "{List.level_partition.none}" } ]; … … 89 91 'constant_size' => 1, 90 92 'approximate_size' => 1, 93 'all_values' => 1, 91 94 'none' => 1}; 92 95 … … 99 102 'desc' => "{List.level_partition.per_number}" }, 100 103 { 'name' => "single_partition", 101 'desc' => "{List.level_partition _single}" },104 'desc' => "{List.level_partition.single}" }, 102 105 { 'name' => "approximate_size", 103 106 'desc' => "{List.level_partition.approximate_size_numeric}"}, 104 107 { 'name' => "constant_size", 105 108 'desc' => "{List.level_partition.constant_size}" }, 109 { 'name' => "all_values", 110 'desc' => "{List.level_partition.all_values}" }, 106 111 { 'name' => "none", 107 112 'desc' => "{List.level_partition.none}" } ]; … … 114 119 'single_partition' => 1, 115 120 'approximate_size' => 1, 121 'all_values' => 1, 116 122 'none' =>1 }; 117 123 … … 202 208 203 209 { 'name' => "numbers_first", 204 'desc' => "{List.numbers_first ",210 'desc' => "{List.numbers_first}", 205 211 'type' => 'flag'}, 206 212 … … 223 229 'desc' => "{List.metadata_sort.unicode} {List.sort_using_unicode_collation}", 224 230 'type' => "flag" }, 225 226 { 'name' => "use_hlist_for", 227 'desc' => "{List.use_hlist_for}", 228 'type' => "string" }, 229 231 230 232 {'name' => "filter_metadata", 231 233 'desc' => "{List.filter_metadata}", … … 698 700 # Otherwise just add all the values to a VList 699 701 else { 702 if ($partition_type_within_level =~ /^all_values$/i) { 703 $classifier_node->{'childtype'} = "HList"; 704 $self->{$metadata_group. ".bookshelf_type"} = "always"; 705 } 700 706 $self->add_vlist(\@metadata_groups, $classifier_node, \%metadata_value_to_OIDs_hash); 701 707 } … … 743 749 # Otherwise just add all the values to a VList 744 750 else { 751 if ($numeric_partition_type_within_level =~ /^all_values$/i) { 752 $classifier_node->{'childtype'} = "HList"; 753 $self->{$metadata_group. ".bookshelf_type"} = "always"; 754 } 755 745 756 $self->add_vlist(\@metadata_groups, $classifier_node, $numeric_metadata_value_to_OIDs_hash_ref); 746 757 }
Note:
See TracChangeset
for help on using the changeset viewer.