Insert date from date picker as tagged elements
Posted: Fri Feb 07, 2025 8:46 pm
Is it possible (if not, this is a feature request) to prompt a user to select a date in a calendar-style date picker and then insert that value as a tagged XML fragment?
I'm working on a little tool to add JATS markup to an article that has been retracted. Using InsertFragmentOperation, I'm currently inserting this:
But I'd prefer to present the user with a date picker and have that converted to the necessary markup. Is this already possible, in a way I just haven't found yet?
I'm working on a little tool to add JATS markup to an article that has been retracted. Using InsertFragmentOperation, I'm currently inserting this:
Code: Select all
<pub-history>
<event event-type="${ask('Event type:', combobox, ('retraction':'Retraction';'removal':'Removal'; 'expression_of_concern':'Expression of concern'), 'retraction')}">
<date>
<day>${ask('Day:', generic)}</day>
<month>${ask('Month:', generic)}</month>
<year>${ask('Year:', generic)}</year>
</date>
</event>
</pub-history>