#! /bin/ksh

report-header "Program Contacts"

line2="================================================================="
line1="-----------------------------------------------------------------"

echo "$line1
This report is a quick reference format of the HCI programs and
people to contact for more information.  To apply to a program,
see the report on programs, or see the data file for the program.
The entry for each program in this report includes:
 * the 'code' for the program, based on the institution and unit
 * the 'shortname' for the institution and academic unit
 * the contact person and their email address"

for i in ${*-*}
do
	echo "$line1 ${i##*/}"
	sssearch section=unit $i |
		ssformat -t "%shortname"
	sssearch section=program $i |
		ssfill -f contact |
			ssformat -t "%contact (%email)"
done 

exit
