/[webpac2]/trunk/vhost/webpac2.cgi
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/vhost/webpac2.cgi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1329 by dpavlin, Mon Mar 8 17:28:02 2010 UTC revision 1330 by dpavlin, Sun Mar 21 20:58:57 2010 UTC
# Line 262  if ( my $search = param('search') ) { Line 262  if ( my $search = param('search') ) {
262          $q .= ' AND ((' . join(') OR (', map { "input=\"$_\"" } @only_input) . '))' if @only_input;          $q .= ' AND ((' . join(') OR (', map { "input=\"$_\"" } @only_input) . '))' if @only_input;
263    
264          warn "# query: $q\n";          warn "# query: $q\n";
265          my $swish_results = $swish->query( $q );          my $search_obj = $swish->new_search_object;
266            if ( my $sort = param('sort') ) {
267                    $search_obj->set_sort( $sort );
268            }
269            my $swish_results = $search_obj->execute( $q );
270    
271          dump_yaml( 'swish_results', $swish_results );          dump_yaml( 'swish_results', $swish_results );
272    

Legend:
Removed from v.1329  
changed lines
  Added in v.1330

  ViewVC Help
Powered by ViewVC 1.1.26