Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

VIVO includes a custom form generator for this relationship. The custom entry form looks like this:

How is it created?

...

The creation of custom entry forms is an arcane and eldritch art, for which little documentation is available.

Each form requires a Java class known as a EditConfigurationGenerator. The generator describes the data structure being created, lists the SPARQL queries used, and includes a reference to the Freemarker template that will render the form.

You can start by examining the existing generators in this directory
[VIVO]/api/src/main/java/edu/cornell/mannlib/vitro/webapp/edit/n3editing/configuration/generators

and the Freemarker templates found here
[VIVO]/

...

webapp/src/

...

main/

...

webapp/

...

templates/

...

freemarker/

...

edit/forms

There is also a short page of technical description called Implementing custom forms using N3 editing.


—