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

(-)a/catalogue/search.pl (-5 / +6 lines)
Lines 810-820 sub prepare_adv_search_types { Link Here
810
      ( C4::Context->preference("item-level_itypes") ) ? 'itype' : 'itemtype';
810
      ( C4::Context->preference("item-level_itypes") ) ? 'itype' : 'itemtype';
811
811
812
    # FIXME We should retrieve the ItemTypes from the cache
812
    # FIXME We should retrieve the ItemTypes from the cache
813
    my $itemtypes =
813
    my $itemtypes = {
814
      map {
814
        map {
815
        $_->itemtype =>
815
            $_->itemtype =>
816
          { %{ $_->unblessed }, description => $_->translated_description, }
816
              { %{ $_->unblessed }, description => $_->translated_description, }
817
      } @{ Koha::ItemTypes->search->as_list };
817
        } @{ Koha::ItemTypes->search->as_list }
818
    };
818
819
819
    my ( $cnt, @result );
820
    my ( $cnt, @result );
820
    foreach my $advanced_srch_type (@advanced_search_types) {
821
    foreach my $advanced_srch_type (@advanced_search_types) {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt (-1 / +1 lines)
Lines 4-9 Link Here
4
[% USE Koha %]
4
[% USE Koha %]
5
[% USE Biblio %]
5
[% USE Biblio %]
6
[% USE KohaDates %]
6
[% USE KohaDates %]
7
[% USE ItemTypes %]
7
[% PROCESS 'i18n.inc' %]
8
[% PROCESS 'i18n.inc' %]
8
[% SET footerjs = 1 %]
9
[% SET footerjs = 1 %]
9
[% USE AuthorisedValues %]
10
[% USE AuthorisedValues %]
10
- 

Return to bug 24975