/[nn.old]/trunk/search/nn-swish.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/search/nn-swish.cgi

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

revision 77 by dpavlin, Wed Jun 26 09:42:48 2002 UTC revision 78 by dpavlin, Wed Jun 26 12:14:54 2002 UTC
# Line 54  if (param('search')) { Line 54  if (param('search')) {
54  #                       my @fields = $hit->field_names;  #                       my @fields = $hit->field_names;
55  #                       print "Field '$_' = '", $hit->$_, "'<br>\n" for sort @fields;  #                       print "Field '$_' = '", $hit->$_, "'<br>\n" for sort @fields;
56                  },                  },
57                  maxhits => param('max_hits'),                  maxhits => param('max_hits') || $max_hits,
58          );          );
59    
60          die $SWISH::errstr unless $sh;          die $SWISH::errstr unless $sh;
# Line 62  if (param('search')) { Line 62  if (param('search')) {
62          $hits = $sh->query("naslov_czs=($s)");          $hits = $sh->query("naslov_czs=($s)");
63    
64          if ($hits > 0) {          if ($hits > 0) {
65                  print p,hr,"Prikazujem $hits zakona (maks. ",param('max_hits'),")... <small>($s)</small>";                  print p,hr,"Prikazujem $hits zakona (maks. ",param('max_hits') || $max_hits,")... <small>($s)</small>";
66          } else {          } else {
67                  print p,"Nije našen niti jedan zakon... <small>($s, ",$sh->errstr,")</small>";                  print p,"Nije našen niti jedan zakon... <small>($s, ",$sh->errstr,")</small>";
68          }          }

Legend:
Removed from v.77  
changed lines
  Added in v.78

  ViewVC Help
Powered by ViewVC 1.1.26