/[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 1242 by dpavlin, Sun Jul 12 18:18:57 2009 UTC revision 1248 by dpavlin, Fri Jul 24 09:14:29 2009 UTC
# Line 282  if ( my $search = param('search') ) { Line 282  if ( my $search = param('search') ) {
282    
283                  while ( my $result = $swish_results->next_result ) {                  while ( my $result = $swish_results->next_result ) {
284    
285                          my $data = from_json( $result->property('data'), {utf8 => 1} );                          my $data = $result->property('data');
   
286                          dump_yaml( 'data', $data );                          dump_yaml( 'data', $data );
287                            # FIXME if we produce valid json we shouldn't need eval here!
288                            eval { $data = from_json( $data, {utf8 => 1} ); };
289                            if ( $@ ) {
290                                    warn "ERROR: $@ from ",dump( $data );
291                                    next;
292                            }
293    
294                          my $li_class = '';                          my $li_class = '';
295                          $li_class = qq| class="z"| if $nr % 2 == 0;                          $li_class = qq| class="z"| if $nr % 2 == 0;

Legend:
Removed from v.1242  
changed lines
  Added in v.1248

  ViewVC Help
Powered by ViewVC 1.1.26