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

(-)a/C4/Koha.pm (-2 / +2 lines)
Lines 42-48 BEGIN { Link Here
42
		&subfield_is_koha_internal_p
42
		&subfield_is_koha_internal_p
43
		&GetPrinters &GetPrinter
43
		&GetPrinters &GetPrinter
44
		&GetItemTypes &getitemtypeinfo
44
		&GetItemTypes &getitemtypeinfo
45
		&GetItemTypesCategorized &GetItemTypesByCategory 
45
        &GetItemTypesCategorized &GetItemTypesByCategory 
46
		&GetSupportName &GetSupportList
46
		&GetSupportName &GetSupportList
47
		&get_itemtypeinfos_of
47
		&get_itemtypeinfos_of
48
		&getframeworks &getframeworkinfo
48
		&getframeworks &getframeworkinfo
Lines 285-291 sub GetItemTypesCategorized { Link Here
285
        UNION
285
        UNION
286
        SELECT DISTINCT searchcategory AS `itemtype`, authorised_values.lib_opac AS description, authorised_values.imageurl AS imageurl, hideinopac, 1 as 'iscat'
286
        SELECT DISTINCT searchcategory AS `itemtype`, authorised_values.lib_opac AS description, authorised_values.imageurl AS imageurl, hideinopac, 1 as 'iscat'
287
            FROM itemtypes
287
            FROM itemtypes
288
	    LEFT JOIN authorised_values ON searchcategory = authorised_value WHERE searchcategory > ''
288
        LEFT JOIN authorised_values ON searchcategory = authorised_value WHERE searchcategory > ''
289
        |;
289
        |;
290
    my $sth = $dbh->prepare($query);
290
    my $sth = $dbh->prepare($query);
291
    $sth->execute;
291
    $sth->execute;
(-)a/opac/opac-search.pl (-3 / +2 lines)
Lines 225-231 foreach my $advanced_srch_type (@advanced_search_types) { Link Here
225
                searchcategory => $itemtypes->{$thisitemtype}->{'searchcategory'},
225
                searchcategory => $itemtypes->{$thisitemtype}->{'searchcategory'},
226
            );
226
            );
227
        if ( !$itemtypes->{$thisitemtype}->{'hideinopac'} ) {
227
        if ( !$itemtypes->{$thisitemtype}->{'hideinopac'} ) {
228
	        push @itypesloop, \%row;
228
            push @itypesloop, \%row;
229
        }
229
        }
230
	}
230
	}
231
        my %search_code = (  advanced_search_type => $advanced_srch_type,
231
        my %search_code = (  advanced_search_type => $advanced_srch_type,
Lines 408-414 if ($operands[0] && !$operands[1]) { Link Here
408
my @limits = $cgi->param('limit');
408
my @limits = $cgi->param('limit');
409
409
410
if (@searchCategories > 0) {
410
if (@searchCategories > 0) {
411
	my @tabcat;
411
    my @tabcat;
412
    foreach my $typecategory (@searchCategories) {
412
    foreach my $typecategory (@searchCategories) {
413
        push (@tabcat, GetItemTypesByCategory($typecategory));
413
        push (@tabcat, GetItemTypesByCategory($typecategory));
414
    }
414
    }
415
- 

Return to bug 10937