Lp
1723651: Use HTML5 Date Input Element For Holds in the OPAC
We switch from using HTML text input elements to using the new HTML5
date input element in holds forms for the thaw and expire dates. This
gives us the advantage of accepting dates in the user's native format
and presenting the backend with a date in ISO format. We can also set
a minimum date for expiration and thaw, which we do with a new TT2
macro, get_tomorrow_date. This allows us to avoid date validation to
check for dates in he past entered.
We add a check in opac/parts/place_hold.tt2 for the XUL staff client
and allow it to accept dates in the MM/DD/YYYY format because
XULRunner doesn't support the HTML5 date input element.
The expire and thaw date elements still accept dates in the MM/DD/YYYY
format as well as the YYYY-MM-DD format in the event that they degrade
to a text input. This is, unfortunately, only half-documented for the
XUL staff client user, since we can't really tell from the server if
the user's browser supports the HTML5 date input.
Signed-off-by: Jason Stephenson <jason@sigio.com>