#! /bin/ksh

# makecontents: make html page of table of contents of the accepted papers

bib=./hph.bib    # intermediate file of all the accepted papers
hphdir=.
abstractdir=$hphdir/Abstracts # where to store the individual paper entries
contents=$hphdir/contents.html # where to store the table of contents

echo "$0: making table of contents: $contents"
	(
	echo "<title>HF Perspectives on HCI</title>"
	makeheader "Table of Contents" contents.html
	echo "<br><b>Human Factors Perspectives on Human-Computer Interaction:</b>"
	echo "<i>Selections from Proceedings of Human Factors and Ergonomics Society Annual Meetings, 1983-1994</i>"
	echo "<p>Edited by Gary Perlman, Georgia K. Green, and Michael S. Wogalter"
	echo "<p>Published by the Human Factors and Ergonomics Society"
	echo "<p><b>Table of Contents</b>"
	for year in 83 84 85 86 87 88 89 90 91 92 93 94
	do
		echo "<h3>19$year</h3>"
		echo "<ol>"
		sssearch D=$year $bib |
			ssformat -t "<li><a href=$abstractdir/%I.html>%H</a>
			<br>(%B)"
		echo "</ol>"
	done
	) > $contents

