Process for short results, which are clickable and show the full results (the easiest way to do this is to build two scripts and have the output of the first do a search of the second).
  1. Create a script and modify the display properties so that it properly displays your short results.
  2. Save that script to your hard drive.
  3. Jump back to Display Options and modify the display properties so that is properly displays your long results.
  4. Save that script to your hard drive with a DIFFERENT name.
  5. In the script that produces SHORT results, look in Step K and find where your search results are printed on the screen. In most scripts, this is either Step K10, or K15.
  6. Add a hyperlink INSIDE the PRINT statement where you want the link to appear that looks like the following:
    print "[blah...] <A href=\"script2.cgi?RecordNumber=$loopsaround\">Hyperlink Text</A> [blah...]\n";
    
    Where:
       [blah...] is opening and closing display and/or table codes that you don't need to modify.
       "script2.cgi" is the name of your script that produces long results
       "Hyperlink Text" is the text that will appear on the screen as a link
       [be sure to include the ? and the two escaped quote marks
    
  7. You are done with the Short Results script. Send it to your server and test to make sure that it works... at least as far as producing hyperlinks of the text that you want.
  8. Open your long results script and paste the following line into Step E, just before the first occurrence of Step E1:
      $RecordNumber=$query->param('RecordNumber');
    
  9. Delete all steps from H4 through H12 EXCEPT H9 (depending on your script, you may or may not have most of these steps).
  10. After completing the above step, make sure that you have a SINGLE closing curly bracket } immediately before Step J begins:
      }
    
      #STEP J================================
    
  11. Immediately BEFORE the above }, insert the following:
      if ($loopsaround==$RecordNumber){
      push(@keepers,$line);}
    
    Note that the insertion of the above now makes TWO closing curly brackets the last two characters before Step J begins and the whole thing looks like:
      if ($loopsaround==$RecordNumber){
      push(@keepers,$line);}
      }
    
      #STEP J================================
    
    
  12. That's all the required steps. You will probably want to delete ALL of Step G5 in the long results script. This is where the "You Searched For" information is usually printed and doesn't really apply in the detail screen.