diff --git a/cgi/search.pl b/cgi/search.pl index e7dab14..02835df 100755 --- a/cgi/search.pl +++ b/cgi/search.pl @@ -383,10 +383,21 @@ if ($action eq 'display') { } ); + # Match the product editing form for these ambiguous search criteria. + # Reuse existing translation keys rather than changing taxonomy plurals. + my %search_field_label_keys = ( + labels => 'labels', + emb_codes => 'emb_codes', + purchase_places => 'purchase_places', + ); + foreach my $field (@search_fields) { my $label; - if ((not defined $tags_fields{$field}) and (lang($field) ne '')) { + if (exists $search_field_label_keys{$field}) { + $label = lang($search_field_label_keys{$field}); + } + elsif ((not defined $tags_fields{$field}) and (lang($field) ne '')) { $label = lc(lang($field)); } else {