OhioLINK History of Philosophy Website
Brian J. Rosmaita
Department of Philosophy
Kent State University
brosmait@kent.edu
This document sets out the basic directory structure and filenaming protocols for the OhioLINK History of Philosophy Instructional Website. Its intended audience is the website development team. No knowledge of the contents of this document is necessary for persons interested in navigating the website via a web browser.
This document will be continually updated as work on the website progresses.
The directory structure for the website is as follows:
The file exercise.perl in the perl subdirectory contains two perl subroutines used in the dynamic generation of the exercises for each class. In order for these to function correctly, correct data must be maintained in the perl data structures defined in the file data.perl. See the comments in that file for information on how to make changes.
In what follows, the subroutines are first described, and then an example of their usage is given.
This subroutine returns as output the HTML code for the top of an HTML page for an exercise. (The kind of the exercise (i.e., micro or macro) is supplied as a parameter.) It expects the following 5 string parameters in the following order. (Each string must be enclosed in quotation marks as shown below.)
This subroutine returns as output the HTML code for the bottom of an HTML page for an exercise. (The kind of the exercise (i.e., micro or macro) is supplied as a parameter.) It expects the following 5 string parameters in the following order:
Suppose that Professor Patrick Ewing has contributed the exercises for his American Philosophy class taught in Fall 1997. Suppose that one of the exercises is as follows:
Macro 3:
Basketball and Philosophy
For the final macro writing exercise in this course, you are to access OhioLINK and use three different types of bibliographic resources to write a paper on the philosophical impact of basketball on the development of twentieth-century American philosophy.
The paper is due on Friday, December 3.
Following the filename protocols explained above, the perl script to generate this file will be named pe_f97_macro-3.cgi (and will be located in the 31020 subdirectory).
The first line in the file must be:
#!/usr/bin/perl
This tells the server to treat the document as perl code. The next two lines make available the predefined data structures and subroutines described above:
require "../perl/data.perl"; require "../perl/exercise.perl";
Next, perl code to send the correct MIME header, which will tell the client software to treat this file as containing HTML, must be included:
print "Content-type: text/html\n\n";
Next, the predefined subroutine ExHtmlTop is called:
print &ExHtmlTop( "American Philosophy", "Macro", "3", "Basketball and Philosophy", "Patrick Ewing" );
Before entering the exercise itself, the following perl language marking must be inserted into the document. (Note the concluding semicolon.) It will allow the exercise to be entered into the file in "normal" HTML format.
print <<END_OF_EXERCISE;
At this point, the exercise itself is entered in HTML format:
<P> For the final macro writing exercise in this course, you are to access OhioLINK and use three different types of bibliographic resources to write a paper on the philosophical impact of basketball on the development of twentieth-century American philosophy. <P> The paper is due on Friday, December 3. </P>
A perl label is now inserted on a line by itself to mark the end of the exercise. (Note that there is no semicolon.)
END_OF_EXERCISE
Finally, the predefined subroutine ExHtmlBot is called to provide the bottom of the document:
print &ExHtmlBot( "American Philosophy", "Fall 1997", "Macro", "3", "Patrick Ewing" );
And that's all! Just be sure to make the file world-executable
so that the web server can execute it. E.g., if the file is named
filename.cgi, then issue the command
chmod a+x filename.cgi
at the UNIX prompt to modify its attributes.
Just so you can see it in one piece, the file pe_f97_macro-3.cgi will contain:
#!/usr/bin/perl require "../perl/data.perl"; require "../perl/exercise.perl"; print "Content-type: text/html\n\n"; print &ExHtmlTop( "American Philosophy", "Macro", "3", "Basketball and Philosophy", "Patrick Ewing" ); print <<END_OF_EXERCISE; <P> For the final macro writing exercise in this course, you are to access OhioLINK and use three different types of bibliographic resources to write a paper on the philosophical impact of basketball on the development of twentieth-century American philosophy. <P> The paper is due on Friday, December 3. </P> END_OF_EXERCISE print &ExHtmlBot( "American Philosophy", "Fall 1997", "Macro", "3", "Patrick Ewing" ); # end of file #
When a client selects the hyperlink to pe_f97_macro-3.cgi, the following output stream is produced:
Content-type: text/html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<LINK REV="made" HREF="mailto:philo@kent.edu">
<TITLE>American Philosophy: Macro 3</TITLE>
</head>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#23238E" VLINK="#009C31">
<P align=right><font size="-1">
OhioLINK History of Philosophy Website</font>
<H1 align=center>
American Philosophy<br>
Macro Writing Assignment 3:<br>
Basketball and Philosophy
</H1>
<P align=center>Professor <A HREF="../contrib/p_ewing.html">Patrick Ewing</A></P>
<hr>
<P>
For the final macro writing exercise in this
course, you are to access OhioLINK and use
three different types of bibliographic
resources to write a paper on the
philosophical impact of basketball
on the development of twentieth-century
American philosophy.
<P>
The paper is due on Friday, December 3.
</P>
<hr>
<P>
<font size="+3">T</font>his page is part of the
OhioLINK History of Philosophy Instructional
Website designed and developed by the
<A HREF="http://www.kent.edu/philo">Department of Philosophy</A>
at Kent State University. We are interested in any comments you may
have concerning this
<A HREF="../wic_req.html#Macro">Macro Writing Exercise</A>.
Send e-mail to the KSU Department of Philosophy
<A HREF="mailto:philo@kent.edu"
TITLE="comment on Patrick Ewing American Philosophy Fall 1997 Macro 3">
Instructional Website Development Team</A>
or directly to Professor
<A HREF="mailto:pewing@knicks.losers.com"
TITLE="comment on American Philosophy Fall 1997 Macro 3">Patrick Ewing</A>,
who designed this exercise.
</P>
<hr>
<P align=center>
<A HREF="pe_f97_home.html">Return to the Fall 1997 (this class) Homepage</A><br\
><br>
<A HREF="index.html">Return to the American Philosophy Homepage</A><br><br>
<A HREF="../index.html">
Return to the OhioLINK History of Philosophy Homepage</A>
</P>
<address>
<A TITLE="Validate this page for yourself!"
HREF="http://validator.w3.org/check?uri=http://iws.ohiolink.edu/philosophy/patrick.html">
<IMG SRC="w3c_32.gif" WIDTH="88" HEIGHT="31" BORDER="0"
ALIGN="RIGHT" ALT="Valid HTML 3.2 !"></A>
<p align=right><em> Fall 1997.<br>
KSU Department of Philosophy </em></p>
</address>
</BODY>
</HTML>
Follow this link to see how the document will appear in the browser you are using now.
[ Return to the OhioLINK History of Philosophy Homepage ]
KSU Department of Philosophy
This page was last modified Fri 9 Jul 1999 at 21:37:23 EDT.