BUG6091 Remove undeclared syspref OPACAdvSearchInputCount
authorFridolyn SOMERS <fridolyn.somers@progilone.fr>
Wed, 6 Apr 2011 14:04:55 +0000 (16:04 +0200)
committerChris Cormack <chrisc@catalyst.net.nz>
Sat, 28 May 2011 07:03:33 +0000 (19:03 +1200)
Signed-off-by: Ian Walls <ian.walls@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
catalogue/search.pl
opac/opac-search.pl

index e1e9a98..a41b18a 100755 (executable)
@@ -297,7 +297,7 @@ if ( $template_type eq 'advsearch' ) {
     # shouldn't appear on the first one, scan indexes should, adding a new
     # box should only appear on the last, etc.
     my @search_boxes_array;
-    my $search_boxes_count = C4::Context->preference("OPACAdvSearchInputCount") || 3; # FIXME: using OPAC sysprefs?
+    my $search_boxes_count = 3; # begin whith 3 boxes
     # FIXME: all this junk can be done in TMPL using __first__ and __last__
     for (my $i=1;$i<=$search_boxes_count;$i++) {
         # if it's the first one, don't display boolean option, but show scan indexes
index 9b78069..7f247c7 100755 (executable)
@@ -215,7 +215,7 @@ if ( $template_type && $template_type eq 'advsearch' ) {
     # shouldn't appear on the first one, scan indexes should, adding a new
     # box should only appear on the last, etc.
     my @search_boxes_array;
-    my $search_boxes_count = C4::Context->preference("OPACAdvSearchInputCount") || 3;
+    my $search_boxes_count = 3; # begin whith 3 boxes
     for (my $i=1;$i<=$search_boxes_count;$i++) {
         # if it's the first one, don't display boolean option, but show scan indexes
         if ($i==1) {