Insert date from date picker as tagged elements
Are you missing a feature? Request its implementation here.
-
- Posts: 71
- Joined: Sat Jan 07, 2017 1:23 am
Insert date from date picker as tagged elements
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>
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Insert date from date picker as tagged elements
Hi,
I'm afraid we do not have such a feature for the $ask editor variable. Also the $ask editor variable would return a single output but you seem to want to split that output in three different fields so not sure how that would play with our current implementation of these editor variables.
For working in the Author visual editor besides the InsertFragmentOperation there is also a JSOperation which would allow one to use Javascript in order to create more complex workflows.
There are some samples here, for example a JSOperation which shows a dialog to the end user and then inserts XML content in the document:
https://github.com/oxygenxml/javascript ... XMLFrag.js
That particular dialog would need to be implemented in Java Swing.
Regards,
Radu
I'm afraid we do not have such a feature for the $ask editor variable. Also the $ask editor variable would return a single output but you seem to want to split that output in three different fields so not sure how that would play with our current implementation of these editor variables.
For working in the Author visual editor besides the InsertFragmentOperation there is also a JSOperation which would allow one to use Javascript in order to create more complex workflows.
There are some samples here, for example a JSOperation which shows a dialog to the end user and then inserts XML content in the document:
https://github.com/oxygenxml/javascript ... XMLFrag.js
That particular dialog would need to be implemented in Java Swing.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service