diff --git a/README.md b/README.md index 67dd15d..e36a77f 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ program. For an example, install the (which expands to just shy of a gigabyte): ```shell - wget https://exploreuk.uky.edu/fa/findingaid/xml.tar.gz + wget https://solrindex.uky.edu/fa/findingaid/xml.tar.gz tar zxf xml.tar.gz ``` diff --git a/app/assets/js/requests.js b/app/assets/js/requests.js index ed4a3b3..2d6bac3 100644 --- a/app/assets/js/requests.js +++ b/app/assets/js/requests.js @@ -198,14 +198,6 @@ var requests = (function() { ]; var subforms = [ - /* TODO: remove the datepicker --mps 2022-08-03 */ - - /* Manage the datepicker. - * - * This maintains a few hidden fields. It initializes - * the datepicker control, which must already appear in - * the DOM. - */ (function () { var id; var jid; @@ -234,34 +226,21 @@ var requests = (function() { } return { - init: function (id) { - $.getJSON("date.php", function (data) { - jid = '#' + id; - hidden = id + '-hidden'; - - /* Insert the fields which this subform must manage. */ - var subform_template = '
'; - $('.fa-request-fieldset').append( - subform_template.replace( - new RegExp('__HIDDEN__', 'g'), - hidden - ) - ); - - /* Add the datepicker. */ - $(jid).val(data.earliest); - $(jid).datepicker({ - showOn: "button", - minDate: new Date(data.earliest), - beforeShowDay: $.datepicker.noWeekends, - dateFormat: "mm/dd/yy" - }); - disable_form(); - - /* And we're done. */ - initialized = true; - }); - }, + init: function (id) { + jid = '#' + id; + hidden = id + '-hidden'; + + var subform_template = ''; + $('.fa-request-fieldset').append( + subform_template.replace( + new RegExp('__HIDDEN__', 'g'), + hidden + ) + ); + disable_form(); + + initialized = true; + }, enable: function () { for (var i = 0; i < hidden_fields.length; ++i) { $('#' + hidden + hidden_fields[i]).attr( diff --git a/app/views/findingaid/requests.mustache b/app/views/findingaid/requests.mustache index d241f8c..9833e75 100644 --- a/app/views/findingaid/requests.mustache +++ b/app/views/findingaid/requests.mustache @@ -25,10 +25,6 @@