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

(-)a/catalogue/search.pl (-1 / +1 lines)
Lines 297-303 if ( $template_type eq 'advsearch' ) { Link Here
297
    # shouldn't appear on the first one, scan indexes should, adding a new
297
    # shouldn't appear on the first one, scan indexes should, adding a new
298
    # box should only appear on the last, etc.
298
    # box should only appear on the last, etc.
299
    my @search_boxes_array;
299
    my @search_boxes_array;
300
    my $search_boxes_count = C4::Context->preference("OPACAdvSearchInputCount") || 3; # FIXME: using OPAC sysprefs?
300
    my $search_boxes_count = 3; # begin whith 3 boxes
301
    # FIXME: all this junk can be done in TMPL using __first__ and __last__
301
    # FIXME: all this junk can be done in TMPL using __first__ and __last__
302
    for (my $i=1;$i<=$search_boxes_count;$i++) {
302
    for (my $i=1;$i<=$search_boxes_count;$i++) {
303
        # if it's the first one, don't display boolean option, but show scan indexes
303
        # if it's the first one, don't display boolean option, but show scan indexes
(-)a/opac/opac-search.pl (-2 / +1 lines)
Lines 215-221 if ( $template_type && $template_type eq 'advsearch' ) { Link Here
215
    # shouldn't appear on the first one, scan indexes should, adding a new
215
    # shouldn't appear on the first one, scan indexes should, adding a new
216
    # box should only appear on the last, etc.
216
    # box should only appear on the last, etc.
217
    my @search_boxes_array;
217
    my @search_boxes_array;
218
    my $search_boxes_count = C4::Context->preference("OPACAdvSearchInputCount") || 3;
218
    my $search_boxes_count = 3; # begin whith 3 boxes
219
    for (my $i=1;$i<=$search_boxes_count;$i++) {
219
    for (my $i=1;$i<=$search_boxes_count;$i++) {
220
        # if it's the first one, don't display boolean option, but show scan indexes
220
        # if it's the first one, don't display boolean option, but show scan indexes
221
        if ($i==1) {
221
        if ($i==1) {
222
- 

Return to bug 6091