eprintsug / rioxx2

Support for the RIOXX 2.0 Application Profile
4 stars 5 forks source link

Autofill override fields when "use override" selected #10

Open davidmce opened 9 years ago

davidmce commented 9 years ago

If the default mapping is correct, but a start date is missing (very common I would expect), you need to override the default mapping. When you do this, the old mapping should fill the "License URL" box, so the user only has to enter the date.

davidmce commented 9 years ago

This could be done on all override fields. The default mapping could be pre-filled into the override field. If this was done, a clear button would need to be added.

drtjmb commented 9 years ago

Would need to think about this in more detail - currently the empty/non-empty override field is used to indicate the existence or non-existence of an override. So if we start autofilling the field need to make sure that this doesn't cause an override to be assumed when in fact there isn't one.

drtjmb commented 9 years ago

Would need some JS to fetch the current derived value (ajax call or embedded in form) and populate the override field.