View | Details | Raw Unified | Return to bug 14100
Collapse All | Expand All

(-)a/C4/Search.pm (-3 / +3 lines)
Lines 570-576 sub getRecords { Link Here
570
                                    {
570
                                    {
571
                                        $facet_label_value =
571
                                        $facet_label_value =
572
                                          $itemtypes->{$one_facet}
572
                                          $itemtypes->{$one_facet}
573
                                          ->{'description'};
573
                                          ->{translated_description};
574
                                    }
574
                                    }
575
                                }
575
                                }
576
576
Lines 1948-1954 sub searchResults { Link Here
1948
1948
1949
		# edition information, if any
1949
		# edition information, if any
1950
        $oldbiblio->{edition} = $oldbiblio->{editionstatement};
1950
        $oldbiblio->{edition} = $oldbiblio->{editionstatement};
1951
		$oldbiblio->{description} = $itemtypes{ $oldbiblio->{itemtype} }->{description};
1951
        $oldbiblio->{description} = $itemtypes{ $oldbiblio->{itemtype} }->{translated_description};
1952
 # Build summary if there is one (the summary is defined in the itemtypes table)
1952
 # Build summary if there is one (the summary is defined in the itemtypes table)
1953
 # FIXME: is this used anywhere, I think it can be commented out? -- JF
1953
 # FIXME: is this used anywhere, I think it can be commented out? -- JF
1954
        if ( $itemtypes{ $oldbiblio->{itemtype} }->{summary} ) {
1954
        if ( $itemtypes{ $oldbiblio->{itemtype} }->{summary} ) {
Lines 2060-2066 sub searchResults { Link Here
2060
            foreach my $code ( keys %subfieldstosearch ) {
2060
            foreach my $code ( keys %subfieldstosearch ) {
2061
                $item->{$code} = $field->subfield( $subfieldstosearch{$code} );
2061
                $item->{$code} = $field->subfield( $subfieldstosearch{$code} );
2062
            }
2062
            }
2063
            $item->{description} = $itemtypes{ $item->{itype} }{description};
2063
            $item->{description} = $itemtypes{ $item->{itype} }{translated_description};
2064
2064
2065
	        # OPAC hidden items
2065
	        # OPAC hidden items
2066
            if ($is_opac) {
2066
            if ($is_opac) {
(-)a/catalogue/search.pl (-1 / +1 lines)
Lines 262-268 foreach my $advanced_srch_type (@advanced_search_types) { Link Here
262
   if ($advanced_srch_type eq 'itemtypes') {
262
   if ($advanced_srch_type eq 'itemtypes') {
263
   # itemtype is a special case, since it's not defined in authorized values
263
   # itemtype is a special case, since it's not defined in authorized values
264
        my @itypesloop;
264
        my @itypesloop;
265
	foreach my $thisitemtype ( sort {$itemtypes->{$a}->{'description'} cmp $itemtypes->{$b}->{'description'} } keys %$itemtypes ) {
265
        foreach my $thisitemtype ( sort {$itemtypes->{$a}->{translated_description} cmp $itemtypes->{$b}->{translated_description} } keys %$itemtypes ) {
266
	    my %row =(  number=>$cnt++,
266
	    my %row =(  number=>$cnt++,
267
		ccl => "$itype_or_itemtype,phr",
267
		ccl => "$itype_or_itemtype,phr",
268
                code => $thisitemtype,
268
                code => $thisitemtype,
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-topissues.inc (-1 / +1 lines)
Lines 41-47 Link Here
41
                                [% ELSE %]
41
                                [% ELSE %]
42
                                    <option value="[% itemtype.itemtype %]">
42
                                    <option value="[% itemtype.itemtype %]">
43
                                [% END %]
43
                                [% END %]
44
                                    [% itemtype.description %]
44
                                    [% itemtype.translated_description %]
45
                                </option>
45
                                </option>
46
                            [% END %]
46
                            [% END %]
47
                        </select>
47
                        </select>
(-)a/opac/opac-search.pl (-2 / +2 lines)
Lines 236-248 foreach my $advanced_srch_type (@advanced_search_types) { Link Here
236
   if ($advanced_srch_type eq 'itemtypes') {
236
   if ($advanced_srch_type eq 'itemtypes') {
237
   # itemtype is a special case, since it's not defined in authorized values
237
   # itemtype is a special case, since it's not defined in authorized values
238
        my @itypesloop;
238
        my @itypesloop;
239
	foreach my $thisitemtype ( sort {$itemtypes->{$a}->{'description'} cmp $itemtypes->{$b}->{'description'} } keys %$itemtypes ) {
239
        foreach my $thisitemtype ( sort {$itemtypes->{$a}->{translated_description} cmp $itemtypes->{$b}->{translated_description} } keys %$itemtypes ) {
240
            next if $hidingrules->{itype} && any { $_ eq $thisitemtype } @{$hidingrules->{itype}};
240
            next if $hidingrules->{itype} && any { $_ eq $thisitemtype } @{$hidingrules->{itype}};
241
            next if $hidingrules->{itemtype} && any { $_ eq $thisitemtype } @{$hidingrules->{itemtype}};
241
            next if $hidingrules->{itemtype} && any { $_ eq $thisitemtype } @{$hidingrules->{itemtype}};
242
	    my %row =(  number=>$cnt++,
242
	    my %row =(  number=>$cnt++,
243
		ccl => "$itype_or_itemtype,phr",
243
		ccl => "$itype_or_itemtype,phr",
244
                code => $thisitemtype,
244
                code => $thisitemtype,
245
                description => $itemtypes->{$thisitemtype}->{'description'},
245
                description => $itemtypes->{$thisitemtype}->{translated_description},
246
                imageurl=> getitemtypeimagelocation( 'opac', $itemtypes->{$thisitemtype}->{'imageurl'} ),
246
                imageurl=> getitemtypeimagelocation( 'opac', $itemtypes->{$thisitemtype}->{'imageurl'} ),
247
                cat => $itemtypes->{$thisitemtype}->{'iscat'},
247
                cat => $itemtypes->{$thisitemtype}->{'iscat'},
248
                hideinopac => $itemtypes->{$thisitemtype}->{'hideinopac'},
248
                hideinopac => $itemtypes->{$thisitemtype}->{'hideinopac'},
(-)a/opac/opac-topissues.pl (+1 lines)
Lines 25-30 use warnings; Link Here
25
use CGI qw ( -utf8 );
25
use CGI qw ( -utf8 );
26
use C4::Auth;
26
use C4::Auth;
27
use C4::Context;
27
use C4::Context;
28
use C4::Languages;
28
use C4::Search;
29
use C4::Search;
29
use C4::Output;
30
use C4::Output;
30
use C4::Koha;
31
use C4::Koha;
(-)a/reports/bor_issues_top.pl (-2 / +1 lines)
Lines 125-131 my $itemtypes = GetItemTypes; Link Here
125
my @itemtypeloop;
125
my @itemtypeloop;
126
foreach (sort {$itemtypes->{$a}->{translated_description} cmp $itemtypes->{$b}->{translated_description}} keys %$itemtypes) {
126
foreach (sort {$itemtypes->{$a}->{translated_description} cmp $itemtypes->{$b}->{translated_description}} keys %$itemtypes) {
127
	my %row = (value => $_,
127
	my %row = (value => $_,
128
               description => $itemtypes->{$_}->{translated_description},
128
               translated_description => $itemtypes->{$_}->{translated_description},
129
              );
129
              );
130
    push @itemtypeloop, \%row;
130
    push @itemtypeloop, \%row;
131
}
131
}
132
- 

Return to bug 14100