- Timestamp:
- May 8, 2015, 2:20:51 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20150419/oofview/cgi/dsgetindex.v1
r38253 r38254 75 75 $file = shift @dirs; 76 76 77 my $filelevel = "UNKNOWN"; 78 77 79 my $program; 78 80 if ($file) { 79 81 $program = "NONE"; 82 $filelevel = "FILE"; 80 83 } elsif ($fileset) { 81 84 $program = "dsfsindex"; 85 $filelevel = "FILESET"; 82 86 } elsif ($product) { 83 87 $program = "dsprodindex"; 84 88 $fileset = ""; 89 $filelevel = "PRODUCT"; 85 90 } else { 86 91 $program = "dsrootindex"; 87 92 $fileset = ""; 88 93 $product = ""; 94 $filelevel = "ROOT"; 89 95 } 90 96 … … 98 104 print "PRODUCT: $product\n"; 99 105 print "FILE: $filename\n"; 106 print "FILELEVEL: $filelevel\n"; 100 107 } 101 108 … … 104 111 close (FILE); 105 112 106 print @list; 113 foreach my $line (@list) { 114 if ($line =~ m/OOF/) { 115 print $line; 116 } 117 } 118 # print @list; 107 119 108 120 exit 0; … … 118 130 print "PRODUCT: $product\n"; 119 131 print "FILE: $filename\n"; 132 print "FILELEVEL: $filelevel\n"; 120 133 print "run fhead\n"; 121 134 } … … 138 151 print "PRODUCT: $product\n"; 139 152 print "FILE: $filename\n"; 153 print "FILELEVEL: $filelevel\n"; 140 154 } 141 155 … … 218 232 # return link 219 233 if ($program ne "dsrootindex") { 220 print a({-href=>" ./index.txt"}, "Text Version");234 print a({-href=>"$script_name$path_info/index.txt"}, "Text Version"); 221 235 } 222 236 … … 232 246 # no up link in dsroot 233 247 } else { 234 print a({-href=>" .."}, "Up to $script_name/$up");248 print a({-href=>"$script_name$up"}, "Up to $script_name$up"); 235 249 } 236 250 } … … 246 260 print '</table>'; 247 261 print p(); 262 print "<b>FILELEVEL: $filelevel</b>\n"; 248 263 print end_html(); 249 264 } … … 273 288 # First column is link to an entity down one level in data store (product, fileset, file) 274 289 # assumes id is always first field 275 my $wpath = " ./$toks[0]";290 my $wpath = "$script_name$path_info/$toks[0]"; 276 291 277 292 # if this is a file request, use a download cgi … … 303 318 $product =~ s/^\s+//; 304 319 $product =~ s/\s+$//; 305 print a({-href=>" ./$product/$fileset"}, $fileset);320 print a({-href=>"$script_name$product/$fileset"}, $fileset); 306 321 } 307 322 }
Note:
See TracChangeset
for help on using the changeset viewer.
