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

(-)a/C4/Search.pm (-9 / +8 lines)
Lines 1302-1308 sub buildQuery { Link Here
1302
    warn "QUERY BEFORE LIMITS: >$query<" if $DEBUG;
1302
    warn "QUERY BEFORE LIMITS: >$query<" if $DEBUG;
1303
1303
1304
    # add limits
1304
    # add limits
1305
    my $group_OR_limits;
1305
    my %group_OR_limits;
1306
    my $availability_limit;
1306
    my $availability_limit;
1307
    foreach my $this_limit (@limits) {
1307
    foreach my $this_limit (@limits) {
1308
        if ( $this_limit =~ /available/ ) {
1308
        if ( $this_limit =~ /available/ ) {
Lines 1319-1335 sub buildQuery { Link Here
1319
        # group_OR_limits, prefixed by mc-
1319
        # group_OR_limits, prefixed by mc-
1320
        # OR every member of the group
1320
        # OR every member of the group
1321
        elsif ( $this_limit =~ /mc/ ) {
1321
        elsif ( $this_limit =~ /mc/ ) {
1322
        
1322
            my ($k,$v) = split(/:/, $this_limit,2);
1323
            if ( $this_limit =~ /mc-ccode:/ ) {
1323
            if ( $k !~ /mc-i(tem)?type/ ) {
1324
                # in case the mc-ccode value has complicating chars like ()'s inside it we wrap in quotes
1324
                # in case the mc-ccode value has complicating chars like ()'s inside it we wrap in quotes
1325
                $this_limit =~ tr/"//d;
1325
                $this_limit =~ tr/"//d;
1326
                my ($k,$v) = split(/:/, $this_limit,2);
1327
                $this_limit = $k.":\"".$v."\"";
1326
                $this_limit = $k.":\"".$v."\"";
1328
            }
1327
            }
1329
1328
1330
            $group_OR_limits .= " or " if $group_OR_limits;
1329
            $group_OR_limits{$k} .= " or " if $group_OR_limits{$k};
1331
            $limit_desc      .= " or " if $group_OR_limits;
1330
            $limit_desc      .= " or " if $group_OR_limits{$k};
1332
            $group_OR_limits .= "$this_limit";
1331
            $group_OR_limits{$k} .= "$this_limit";
1333
            $limit_cgi       .= "&limit=$this_limit";
1332
            $limit_cgi       .= "&limit=$this_limit";
1334
            $limit_desc      .= " $this_limit";
1333
            $limit_desc      .= " $this_limit";
1335
        }
1334
        }
Lines 1352-1360 sub buildQuery { Link Here
1352
            }
1351
            }
1353
        }
1352
        }
1354
    }
1353
    }
1355
    if ($group_OR_limits) {
1354
    foreach my $k (keys (%group_OR_limits)) {
1356
        $limit .= " and " if ( $query || $limit );
1355
        $limit .= " and " if ( $query || $limit );
1357
        $limit .= "($group_OR_limits)";
1356
        $limit .= "($group_OR_limits{$k})";
1358
    }
1357
    }
1359
    if ($availability_limit) {
1358
    if ($availability_limit) {
1360
        $limit .= " and " if ( $query || $limit );
1359
        $limit .= " and " if ( $query || $limit );
(-)a/catalogue/search.pl (-27 / +33 lines)
Lines 239-282 my $categories = GetBranchCategories(undef,'searchdomain'); Link Here
239
$template->param(branchloop => \@branch_loop, searchdomainloop => $categories);
239
$template->param(branchloop => \@branch_loop, searchdomainloop => $categories);
240
240
241
# load the Type stuff
241
# load the Type stuff
242
# load the Type stuff
243
my $itemtypes = GetItemTypes;
242
my $itemtypes = GetItemTypes;
244
# the index parameter is different for item-level itemtypes
243
# the index parameter is different for item-level itemtypes
245
my $itype_or_itemtype = (C4::Context->preference("item-level_itypes"))?'itype':'itemtype';
244
my $itype_or_itemtype = (C4::Context->preference("item-level_itypes"))?'itype':'itemtype';
246
my @itemtypesloop;
245
my @advancedsearchesloop;
247
my $selected=1;
248
my $cnt;
246
my $cnt;
249
my $advanced_search_types = C4::Context->preference("AdvancedSearchTypes");
247
my $advanced_search_types = C4::Context->preference("AdvancedSearchTypes") || "itemtypes";
250
248
my @advanced_search_types = split(/\|/, $advanced_search_types);
251
if (!$advanced_search_types or $advanced_search_types eq 'itemtypes') {                                                                 foreach my $thisitemtype ( sort {$itemtypes->{$a}->{'description'} cmp $itemtypes->{$b}->{'description'} } keys %$itemtypes ) {
249
252
    my %row =(  number=>$cnt++,
250
foreach my $advanced_srch_type (@advanced_search_types) {
253
                ccl => qq($itype_or_itemtype,phr),
251
   if ($advanced_srch_type eq 'itemtypes') {
252
   # itemtype is a special case, since it's not defined in authorized values
253
        my @itypesloop;
254
	foreach my $thisitemtype ( sort {$itemtypes->{$a}->{'description'} cmp $itemtypes->{$b}->{'description'} } keys %$itemtypes ) {
255
	    my %row =(  number=>$cnt++,
256
		ccl => "$itype_or_itemtype,phr",
254
                code => $thisitemtype,
257
                code => $thisitemtype,
255
                selected => $selected,
256
                description => $itemtypes->{$thisitemtype}->{'description'},
258
                description => $itemtypes->{$thisitemtype}->{'description'},
257
                count5 => $cnt % 4,
259
                imageurl=> getitemtypeimagelocation( 'opac', $itemtypes->{$thisitemtype}->{'imageurl'} ),
258
                imageurl=> getitemtypeimagelocation( 'intranet', $itemtypes->{$thisitemtype}->{'imageurl'} ),
259
            );
260
            );
260
        $selected = 0 if ($selected) ;
261
    	    push @itypesloop, \%row;
261
        push @itemtypesloop, \%row;
262
	}
262
    }
263
        my %search_code = (  advanced_search_type => $advanced_srch_type,
263
    $template->param(itemtypeloop => \@itemtypesloop);
264
                             code_loop => \@itypesloop );
264
} else {
265
        push @advancedsearchesloop, \%search_code;
265
    my $advsearchtypes = GetAuthorisedValues($advanced_search_types);
266
    } else {
266
    for my $thisitemtype (sort {$a->{'lib'} cmp $b->{'lib'}} @$advsearchtypes) {
267
    # covers all the other cases: non-itemtype authorized values 
267
        my %row =(
268
       my $advsearchtypes = GetAuthorisedValues($advanced_srch_type, '', 'opac');
268
                number=>$cnt++,
269
        my @authvalueloop;
269
                ccl => $advanced_search_types,
270
	for my $thisitemtype (@$advsearchtypes) {
271
		my %row =(
272
				number=>$cnt++,
273
				ccl => $advanced_srch_type,
270
                code => $thisitemtype->{authorised_value},
274
                code => $thisitemtype->{authorised_value},
271
                selected => $selected,
272
                description => $thisitemtype->{'lib'},
275
                description => $thisitemtype->{'lib'},
273
                count5 => $cnt % 4,
276
                imageurl => getitemtypeimagelocation( 'intranet', $thisitemtype->{'imageurl'} ),
274
                imageurl=> getitemtypeimagelocation( 'intranet', $thisitemtype->{'imageurl'} ),
277
                );
275
            );
278
		push @authvalueloop, \%row;
276
        push @itemtypesloop, \%row;
279
	}
280
        my %search_code = (  advanced_search_type => $advanced_srch_type,
281
                             code_loop => \@authvalueloop );
282
        push @advancedsearchesloop, \%search_code;
277
    }
283
    }
278
    $template->param(itemtypeloop => \@itemtypesloop);
279
}
284
}
285
$template->param(advancedsearchesloop => \@advancedsearchesloop);
280
286
281
# The following should only be loaded if we're bringing up the advanced search template
287
# The following should only be loaded if we're bringing up the advanced search template
282
if ( $template_type eq 'advsearch' ) {
288
if ( $template_type eq 'advsearch' ) {
(-)a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css (-6 / +10 lines)
Lines 1998-2029 fieldset.rows+h3 {clear:both;padding-top:.5em;} Link Here
1998
    padding-left:20px
1998
    padding-left:20px
1999
}
1999
}
2000
2000
2001
#advanced-search fieldset {
2001
.adsearch {
2002
    margin: 0;
2003
}
2004
2005
.advsearch fieldset {
2002
	border : 1px solid #EEE;
2006
	border : 1px solid #EEE;
2003
	-moz-border-radius : 3px;
2007
	-moz-border-radius : 3px;
2004
	border-radius : 3px;
2008
	border-radius : 3px;
2005
}
2009
}
2006
2010
2007
#advanced-search fieldset.action {
2011
.advsearch fieldset.action {
2008
	border : 0;
2012
	border : 0;
2009
}
2013
}
2010
2014
2011
#advanced-search fieldset fieldset {
2015
.advsearch fieldset fieldset {
2012
	border : 1px solid #EEE;
2016
	border : 1px solid #EEE;
2013
	margin : 0;
2017
	margin : 0;
2014
	padding : .3em .5em;
2018
	padding : .3em .5em;
2015
	-moz-border-radius : 0;
2019
	-moz-border-radius : 0;
2016
	border-radius : 0;
2020
	border-radius : 0;
2017
}
2021
}
2018
#advanced-search fieldset fieldset+fieldset {
2022
.advsearch fieldset fieldset+fieldset {
2019
	border-top : 0;
2023
	border-top : 0;
2020
}
2024
}
2021
#advanced-search table {
2025
.advsearch table {
2022
	border-spacing : 5px;
2026
	border-spacing : 5px;
2023
	border-collapse : separate;
2027
	border-collapse : separate;
2024
	border-width : 0;
2028
	border-width : 0;
2025
}
2029
}
2026
#advanced-search td {
2030
.advsearch td {
2027
	border : 1px solid #EEE;
2031
	border : 1px solid #EEE;
2028
	padding : 0.3em 0.4em;
2032
	padding : 0.3em 0.4em;
2029
}
2033
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref (-5 / +3 lines)
Lines 71-82 Searching: Link Here
71
            - subdivisions for searches generated by clicking on subject tracings.
71
            - subdivisions for searches generated by clicking on subject tracings.
72
    Search Form:
72
    Search Form:
73
        -
73
        -
74
            - Show checkboxes to search by
74
            - Show checkboxes for the
75
            - pref: AdvancedSearchTypes
75
            - pref: AdvancedSearchTypes
76
              choices:
76
              class: long
77
                  itemtypes: itemtype
77
            - "item fields on the OPAC and staff advanced search pages, in the order listed. 'itemtypes', 'ccode' and 'loc' supported at this time."
78
                  ccode: collection code
79
            - on the OPAC and staff advanced search pages.
80
        -
78
        -
81
            - By default,
79
            - By default,
82
            - pref: expandedSearchOption
80
            - pref: expandedSearchOption
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt (-18 / +32 lines)
Lines 15-20 Link Here
15
	}
15
	}
16
	$(document).ready(function() {
16
	$(document).ready(function() {
17
		$("input[name=q]:eq(0)").focus();
17
		$("input[name=q]:eq(0)").focus();
18
                $('#advsearches > ul').tabs();
18
	});
19
	});
19
</script>
20
</script>
20
</head>
21
</head>
Lines 92-118 Link Here
92
            <a href="/cgi-bin/koha/catalogue/search.pl?do=Clear">[New search]</a>
93
            <a href="/cgi-bin/koha/catalogue/search.pl?do=Clear">[New search]</a>
93
            </fieldset>
94
            </fieldset>
94
<!-- /SEARCH BUTTONS -->
95
<!-- /SEARCH BUTTONS -->
95
96
</div>
96
<!-- ITEMTYPE LIMITS -->
97
<!-- MC-TYPE LIMITS -->
97
	<fieldset id="itemtypelist">
98
    <div class="yui-g">
98
     <legend>Limit to any of the following</legend>
99
      <div id="advsearches" class="toptabs">
100
      <ul>
101
      [% FOREACH advsearchloo IN advancedsearchesloop %]
102
        <li id="advsearch-tab-[% advsearchloo.advanced_search_type %]">
103
           <a href="/cgi-bin/koha/opac-search.pl#advsearch-[% advsearchloo.advanced_search_type %]">
104
           [% IF ( advsearchloo.advanced_search_type == 'itemtypes' ) %]Item Type
105
           [% ELSIF ( advsearchloo.advanced_search_type == 'ccode' ) %]Collection
106
           [% ELSIF ( advsearchloo.advanced_search_type == 'loc' ) %]Shelving Location
107
           [% ELSE %]Something Else
108
           [% END %]
109
           </a>
110
        </li>                                                 
111
      [% END %]
112
      </ul>
113
    [% FOREACH advsearchloo IN advancedsearchesloop %]
114
    <div id="advsearch-[% advsearchloo.advanced_search_type %]" class="advsearch">
115
    <fieldset>
116
    <legend>Limit to any of the following:</legend>
99
    <table>
117
    <table>
100
        <tr>
118
        <tr>
101
      [% FOREACH itemtypeloo IN itemtypeloop %]
119
    [% FOREACH itemtypeloo IN advsearchloo.code_loop %]
102
        <td>
120
        <td><input type="checkbox" id="[% itemtypeloo.ccl %]-[% itemtypeloo.number %]" name="limit" value="mc-[% itemtypeloo.ccl %]:[% itemtypeloo.code %]"/><label for="[% itemtypeloo.ccl %]-[% itemtypeloo.number %]">[% UNLESS ( noItemTypeImages ) %][% IF ( itemtypeloo.imageurl ) %]<img border="0" src="[% itemtypeloo.imageurl %]" alt="[% itemtypeloo.description %]" />[% END %]&nbsp;[% END %]
103
        [% UNLESS ( noItemTypeImages ) %]
121
        [% itemtypeloo.description %]</label></td>
104
        [% IF ( itemtypeloo.imageurl ) %]<img border="0" src="[% itemtypeloo.imageurl %]" alt="[% itemtypeloo.description %]" />[% END %]
122
        [% UNLESS ( loop.count % 5 ) %]</tr><tr>[% END %]
105
        [% END %]
123
    [% END %]
106
		<input type="checkbox" id="[% itemtypeloo.ccl %]-[% itemtypeloo.number %]" name="limit" value="mc-[% itemtypeloo.ccl %]:[% itemtypeloo.code %]" />&nbsp;
124
        </tr>
107
        <label for="[% itemtypeloo.ccl %]-[% itemtypeloo.number %]">[% itemtypeloo.description %]</label></td>
108
        [% UNLESS ( itemtypeloo.count5 ) %]</tr><tr>[% END %]
109
      [% END %]
110
	  <!-- FIXME: for validation, avoid generating empty row -->
111
      </tr>
112
    </table>
125
    </table>
113
	</fieldset>
126
    </fieldset>
114
<!-- /ITEMTYPE LIMITS -->
127
    </div>
115
128
    [% END %]
129
<!-- /MC-TYPE LIMIT -->
116
[% IF ( expanded_options ) %]
130
[% IF ( expanded_options ) %]
117
<!-- BASIC LIMITS -->
131
<!-- BASIC LIMITS -->
118
 <fieldset id="basiclimits">
132
 <fieldset id="basiclimits">
(-)a/koha-tmpl/opac-tmpl/prog/en/css/opac.css (-3 / +3 lines)
Lines 648-654 input.deleteshelf:active { Link Here
648
}
648
}
649
649
650
/* the itemtype list in advanced search */
650
/* the itemtype list in advanced search */
651
#advsearch-itemtype table {
651
.advsearch table {
652
	border-collapse : separate;
652
	border-collapse : separate;
653
	border-spacing : 3px;
653
	border-spacing : 3px;
654
	border : 0px;
654
	border : 0px;
Lines 657-670 input.deleteshelf:active { Link Here
657
	border : 0px solid #D8DEB8;
657
	border : 0px solid #D8DEB8;
658
}
658
}
659
659
660
#advsearch-itemtype table tr td {
660
.advsearch table tr td {
661
	background-color : #F8F8EB;
661
	background-color : #F8F8EB;
662
	border : 0px;
662
	border : 0px;
663
	margin : 0px;
663
	margin : 0px;
664
	width : 700px;
664
	width : 700px;
665
}
665
}
666
666
667
#advsearch-itemtype td {
667
.advsearch td {
668
	font-size : 0.8em;
668
	font-size : 0.8em;
669
	background-color : #F8F8EB;
669
	background-color : #F8F8EB;
670
}
670
}
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tt (-3 / +26 lines)
Lines 3-8 Link Here
3
    Catalog &rsaquo; Advanced Search
3
    Catalog &rsaquo; Advanced Search
4
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
5
</head>
5
</head>
6
<script type="text/javascript" language="javascript">//<![CDATA[
7
            $(document).ready(function() {
8
            $('#advsearches > ul').tabs();
9
});
10
    //]]>
11
</script>
6
<body id="advsearch"><div id="doc3" class="yui-t7">
12
<body id="advsearch"><div id="doc3" class="yui-t7">
7
<div id="bd">
13
<div id="bd">
8
[% INCLUDE 'masthead.inc' %]
14
[% INCLUDE 'masthead.inc' %]
Lines 130-150 Link Here
130
</div>
136
</div>
131
</div>
137
</div>
132
    <div class="yui-g">
138
    <div class="yui-g">
139
      <div id="advsearches" class="toptabs">
140
      <ul>
141
      [% FOREACH advsearchloo IN advancedsearchesloop %]
142
        <li id="advsearch-tab-[% advsearchloo.advanced_search_type %]">
143
           <a href="/cgi-bin/koha/opac-search.pl#advsearch-[% advsearchloo.advanced_search_type %]">
144
           [% IF ( advsearchloo.advanced_search_type == 'itemtypes' ) %]Item Type
145
           [% ELSIF ( advsearchloo.advanced_search_type == 'ccode' ) %]Collection
146
           [% ELSIF ( advsearchloo.advanced_search_type == 'loc' ) %]Shelving Location
147
           [% ELSE %]Something Else
148
           [% END %]
149
           </a>
150
        </li>
151
      [% END %]
152
      </ul>
133
<!-- /BOOLEAN SEARCH OPTIONS -->
153
<!-- /BOOLEAN SEARCH OPTIONS -->
134
    <div id="advsearch-itemtype" class="container">
154
    [% FOREACH advsearchloo IN advancedsearchesloop %]
155
    <div id="advsearch-[% advsearchloo.advanced_search_type %]" class="container advsearch">
135
    <fieldset>
156
    <fieldset>
136
    <legend>Limit to any of the following:</legend>
157
    <legend>Limit to any of the following:</legend>
137
    <table>
158
    <table>
138
        <tr>
159
        <tr>
139
    [% FOREACH itemtypeloo IN itemtypeloop %]
160
    [% FOREACH itemtypeloo IN advsearchloo.code_loop %]
140
        <td><input type="checkbox" id="[% itemtypeloo.ccl %]-[% itemtypeloo.number %]" name="limit" value="mc-[% itemtypeloo.ccl %]:[% itemtypeloo.code %]"/><label for="[% itemtypeloo.ccl %]-[% itemtypeloo.number %]">[% UNLESS ( noItemTypeImages ) %][% IF ( itemtypeloo.imageurl ) %]<img border="0" src="[% itemtypeloo.imageurl %]" alt="[% itemtypeloo.description %]" />[% END %]&nbsp;[% END %]
161
        <td><input type="checkbox" id="[% itemtypeloo.ccl %]-[% itemtypeloo.number %]" name="limit" value="mc-[% itemtypeloo.ccl %]:[% itemtypeloo.code %]"/><label for="[% itemtypeloo.ccl %]-[% itemtypeloo.number %]">[% UNLESS ( noItemTypeImages ) %][% IF ( itemtypeloo.imageurl ) %]<img border="0" src="[% itemtypeloo.imageurl %]" alt="[% itemtypeloo.description %]" />[% END %]&nbsp;[% END %]
141
        [% itemtypeloo.description %]</label></td>
162
        [% itemtypeloo.description %]</label></td>
142
        [% UNLESS ( itemtypeloo.count5 ) %][% UNLESS ( loop.last ) %]</tr><tr>[% END %][% END %]
163
        [% UNLESS ( loop.count % 5 ) %]</tr><tr>[% END %]
143
    [% END %]
164
    [% END %]
144
        </tr>
165
        </tr>
145
    </table>
166
    </table>
146
    </fieldset>
167
    </fieldset>
147
    </div>
168
    </div>
169
    [% END %]
170
    </div>
148
    <div id="langfilter">
171
    <div id="langfilter">
149
    <fieldset><legend>Language</legend>
172
    <fieldset><legend>Language</legend>
150
    <!-- LANGUAGE LIMIT -->
173
    <!-- LANGUAGE LIMIT -->
(-)a/opac/opac-search.pl (-19 / +25 lines)
Lines 157-196 $template->param(search_languages_loop => $languages_limit_loop,); Link Here
157
my $itemtypes = GetItemTypes;
157
my $itemtypes = GetItemTypes;
158
# the index parameter is different for item-level itemtypes
158
# the index parameter is different for item-level itemtypes
159
my $itype_or_itemtype = (C4::Context->preference("item-level_itypes"))?'itype':'itemtype';
159
my $itype_or_itemtype = (C4::Context->preference("item-level_itypes"))?'itype':'itemtype';
160
my @itemtypesloop;
160
my @advancedsearchesloop;
161
my $selected=1;
162
my $cnt;
161
my $cnt;
163
my $advanced_search_types = C4::Context->preference("AdvancedSearchTypes");
162
my $advanced_search_types = C4::Context->preference("AdvancedSearchTypes") || "itemtypes";
163
my @advanced_search_types = split(/\|/, $advanced_search_types);
164
164
165
if (!$advanced_search_types or $advanced_search_types eq 'itemtypes') {
165
foreach my $advanced_srch_type (@advanced_search_types) {   
166
   if ($advanced_srch_type eq 'itemtypes') {
167
   # itemtype is a special case, since it's not defined in authorized values
168
        my @itypesloop;
166
	foreach my $thisitemtype ( sort {$itemtypes->{$a}->{'description'} cmp $itemtypes->{$b}->{'description'} } keys %$itemtypes ) {
169
	foreach my $thisitemtype ( sort {$itemtypes->{$a}->{'description'} cmp $itemtypes->{$b}->{'description'} } keys %$itemtypes ) {
167
	    my %row =(  number=>$cnt++,
170
	    my %row =(  number=>$cnt++,
168
		ccl => "$itype_or_itemtype,phr",
171
		ccl => "$itype_or_itemtype,phr",
169
                code => $thisitemtype,
172
                code => $thisitemtype,
170
                selected => $selected,
171
                description => $itemtypes->{$thisitemtype}->{'description'},
173
                description => $itemtypes->{$thisitemtype}->{'description'},
172
                count5 => $cnt % 4,
173
                imageurl=> getitemtypeimagelocation( 'opac', $itemtypes->{$thisitemtype}->{'imageurl'} ),
174
                imageurl=> getitemtypeimagelocation( 'opac', $itemtypes->{$thisitemtype}->{'imageurl'} ),
174
            );
175
            );
175
    	$selected = 0; # set to zero after first pass through
176
    	    push @itypesloop, \%row;
176
    	push @itemtypesloop, \%row;
177
	}
177
	}
178
} else {
178
        my %search_code = (  advanced_search_type => $advanced_srch_type,
179
    my $advsearchtypes = GetAuthorisedValues($advanced_search_types, '', 'opac');
179
                             code_loop => \@itypesloop );
180
        push @advancedsearchesloop, \%search_code;
181
    } else {
182
    # covers all the other cases: non-itemtype authorized values 
183
       my $advsearchtypes = GetAuthorisedValues($advanced_srch_type, '', 'opac');
184
        my @authvalueloop;
180
	for my $thisitemtype (@$advsearchtypes) {
185
	for my $thisitemtype (@$advsearchtypes) {
181
		my %row =(
186
		my %row =(
182
				number=>$cnt++,
187
				number=>$cnt++,
183
				ccl => $advanced_search_types,
188
				ccl => $advanced_srch_type,
184
                code => $thisitemtype->{authorised_value},
189
                code => $thisitemtype->{authorised_value},
185
                selected => $selected,
190
                description => $thisitemtype->{'lib_opac'} || $thisitemtype->{'lib'},
186
                description => $thisitemtype->{'lib'},
191
                imageurl => getitemtypeimagelocation( 'opac', $thisitemtype->{'imageurl'} ),
187
                count5 => $cnt % 4,
192
                );
188
                imageurl=> getitemtypeimagelocation( 'opac', $thisitemtype->{'imageurl'} ),
193
		push @authvalueloop, \%row;
189
            );
190
		push @itemtypesloop, \%row;
191
	}
194
	}
195
        my %search_code = (  advanced_search_type => $advanced_srch_type,
196
                             code_loop => \@authvalueloop );
197
        push @advancedsearchesloop, \%search_code;
198
    }
192
}
199
}
193
$template->param(itemtypeloop => \@itemtypesloop);
200
$template->param(advancedsearchesloop => \@advancedsearchesloop);
194
201
195
# # load the itypes (Called item types in the template -- just authorized values for searching)
202
# # load the itypes (Called item types in the template -- just authorized values for searching)
196
# my ($itypecount,@itype_loop) = GetCcodes();
203
# my ($itypecount,@itype_loop) = GetCcodes();
197
- 

Return to bug 7031