ASP Developing for Academic and Business Processes Page 7
So, the loop for paging is done, all the pages are written now (an example page in the image at right), so the next step is closing code to take care of letting me know what happened, so this is just a total page saved to a file as a log, really, but is output in html.
totlines = totlines + (series * 80) + paging|
totpages = series + 1
htmlOut = "D:\Webshare\wwwroot\asp\csfa\csfa_totals.html"
set output = conn1.opentextfile(htmlOut, 8, True)
output.writeline("<!-- DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 3.2 Final//EN'-->")
output.writeline("<title>Current Research in the Pleistocene - Volume 3, 1986</title>")
output.writeline("<body bgcolor=ffffff link=0000ff vlink=8e2323 alink=00009c>")
output.writeline("<basefont face='verdana,arial,helvetica' size=2 color=000000>")
output.writeline("<font size=4 color=800000 face='Arial,Helvetica,Verdana'>Current Research in the Pleistocene Volume 3, 1986</font><br>")
output.writeline("<font size=1>Records Processed: " & totlines & "</font><br>")
output.writeline("<font size=1>Pages Processed: " & totpages & "</font><br>")
output.writeline("<font size=1>Date: " & now() & " Seattle, WA</font><br>")
output.writeline("<font size=1>Dynamic Content Resources by<br><a href='http://www.mallard-design.com/'>Mallard Design Company</a></font>")
set rsInput = nothing
This coding is then modified for creating the author index by changing output and field names, with separately developed pages for bibliography. The content itself is plain html with few images, as content is added the tables are updated and subsequent builds will have the new information linked in. If the content had been already in electronic format, the project would be finished in five days for the amount of work. The editing is almost as slow as manual entry, so it's the bottleneck on this particular job.
Of course this is just the publishing end of the process, yet by establishing the databases with the information, future content manipulation is easy. Editing field separators into lists so they can be imported into spreadsheets and databases as fields is a key issue for this type of work, parsing fields with software is not as reliable as a human operator in this case, too many variables in the content, so using that expensive time to establish the data structure is as important as its' quality. Since quality is very important to academic content, this system really helps to organize and validate the data as it gets processed and yet is pretty easy to develop.
The next page has the entire code, the displayed code was tested was copied and pasted into a text editor, saved as an asp file and run.