Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down
51 changes: 15 additions & 36 deletions app/assets/js/requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 = '<div id="__HIDDEN__"><input id="__HIDDEN__-visit" type="hidden" name value="on"><input id="__HIDDEN__-user-review" type="hidden" name value="No"></div>';
$('.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 = '<div id="__HIDDEN__"><input id="__HIDDEN__-visit" type="hidden" name value="on"><input id="__HIDDEN__-user-review" type="hidden" name value="No"></div>';
$('.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(
Expand Down
4 changes: 0 additions & 4 deletions app/views/findingaid/requests.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@
<br>
<div class="fa-options" id="fa-schedule-retrieval-options">
<p>Submit a request for SCRC materials.</p>
<!--
<label for="ScheduledDate">When do you plan on visiting the Breckinridge Research Room?</label>
<input type="text" id="fa-datepicker" name="ScheduledDate" value="01/01/1900">
-->
</div>
<div class="fa-options" id="fa-request-reproductions-options">
<label for="ItemInfo3">Pages/Items to be Reproduced
Expand Down
49 changes: 0 additions & 49 deletions public/date.php

This file was deleted.

Loading