ID assignment and indexing via Plugin or Authormode Action
Posted: Mon Nov 05, 2018 6:16 pm
Hello
we are currently developing a custom author-mode framework for a project that includes large amounts of "TEI-esque" XML Datasets (e.g. for persons or places). I have come pretty far working with the built-in functions and existing plugins but have reached a point at which I might need to dive deeper.
Researchers will be adding new data to an existing database using the author-mode in Oxygen. We need to manage ID assignment and indexing.
At the point of creating a new file from a template(eg. for a new person),
1. Oxygen should get an ID from a server-side JSON file and
2, prompt the User ( via a Popup Window) to enter the name of the person
3, The ID and name should then be written into the respective elements/attributes within the XML file and into the filename
4. and both (ID and Name) be sent back to the server for indexing purposes.
I am currently looking at the sample-plugins from the SDK (workspace-access in particular) Would that be the right approach to implementing this? Could this also be done with the JS Operations from author mode? (My JS skills are more robust than my JAVA skills)
Any ideas at how to best approach this would be much appreciated.
Thank you
Andreas
we are currently developing a custom author-mode framework for a project that includes large amounts of "TEI-esque" XML Datasets (e.g. for persons or places). I have come pretty far working with the built-in functions and existing plugins but have reached a point at which I might need to dive deeper.
Researchers will be adding new data to an existing database using the author-mode in Oxygen. We need to manage ID assignment and indexing.
At the point of creating a new file from a template(eg. for a new person),
1. Oxygen should get an ID from a server-side JSON file and
2, prompt the User ( via a Popup Window) to enter the name of the person
3, The ID and name should then be written into the respective elements/attributes within the XML file and into the filename
4. and both (ID and Name) be sent back to the server for indexing purposes.
I am currently looking at the sample-plugins from the SDK (workspace-access in particular) Would that be the right approach to implementing this? Could this also be done with the JS Operations from author mode? (My JS skills are more robust than my JAVA skills)
Any ideas at how to best approach this would be much appreciated.
Thank you
Andreas