Thanks to RIT for making some improvements to the code. We've added it to the Open Source distributed on this site.
Here's a message from Jon Jiras explaining more:
"Our web master Patrick Haney (firstname.lastname@example.org) rewrote the utils.js file
the Univeristy of Minnesota uses for date validation on the assignment
calculator. I think he improved it considerably. Feel free to use it
and/or incorporate it into the general distrubution of the assignement
Instead of complaining to the user that they entered a month or date
with a leading zero, Patrick's script simply removes the leading zero
and continues normally. It allows users to enter leading zeros (or not)
-- whichever they prefer -- without poping up an error message. In
addition, it still does not allow the user to enter invalid months,
dates greater then the number of days in the specified month, or alpha
characters. And it gives much more descriptive error messages whenever
one of these events happens.
Thanks for a great program! It's getting rave reviews here. We'll
probably add the email features soon.
Library Software Specialist
Rochester Institute of Technology
Rochester, NY 14623
Many of you have asked for the code that the U of M uses to send email reminders to people that want to be reminded when different steps of the research process are due for their assignments. Well, here it is! I sincerely hope that these instructions will make sense, but there is a possibility that you will have some questions regarding setting up this new AC version. If you have any questions, please use the comments function of this blog entry so that everyone may benefit from your question, and hopefully the answer!
These instructions are based on the use of a MySQL database. If you are using another type of database please consider sharing any modifications necessary to get the AC to work.
Now all you need to do is download the new zip file for the new version of the AC. This new version obviously has some changes to the existing files and also adds some files:
In order to install this new version of the Assignment Calculator follow these (hopefully) simple instructions. You will need:
+---------+-----------------+------+-----+---------+-----------+ | Field | Type | Null | Key | Default | Extra | +---------+-----------------+------+-----+---------+-----------+ |mail_id |int(5) unsigned | |PRI |NULL |auto_increment | |datum |varchar(8) |YES | |NULL | | |step |char(2) | | | | | |email |varchar(100) | | | | | |name |varchar(255) | | | | | +---------+-----------------+------+-----+---------+-----------+
This is where the email reminders will reside. You will also need to give your web server access to insert data into this table.
Again, if you have any problems please leave a comment. However, if they are problems dealing with your database you may need to solve those on your own! If you want to give it a try before you download, I have installed and configured it so that you can both calculate and send your self some emails.