write php to update hist.js file
The course listings etc. on the history dept site rely on a javascript array in a file called hist.js. The dept has had a number of requests to change the course titles, descriptions etc. to keep them in accord with what is on the calendar site. I took code from the philosophy site and modified it so that when a specific php page is called from the browser, it goes to the uvic calendar site, grabs the appropriate information, transforms that into a properly formatted etc. javascript array and then writes it into the file hist.js.
Only thing to do manually is once a year the Year variable has to changed to the current academic year. As always, the list of which courses are currently offered (kept in a separate js file in the same folder) must be edited manually.
This code could easily be re-used for any other department wanting similar capabilities.