Versions Compared

Key

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

This document describes how to implement custom forms for use in Vitro/VIVO using what we call N3 editing or the N3 editing system.

Overview

The Vitro/VIVO system comes with basic RDF editing capabilities to add object and datatype statements to individuals.  Frequently, people deploying Vitro/VIVO desire a web form which allows editing of multiple properties and individuals on the same form.  A contact information form would be an example of a feature that would be implemented with a custom form in Vitro/VIVO.
 

The creation of a custom forms in Vitro/VIVO is done in two parts.  The first is an implementation of the java interface EditConfigurationGenerator and the second is a FreeMarker template for the presentation.  The EditConfigurationGenerator creates a EditConfiguration that controls how the values from the form will be used in the editing of the RDF, server side validation, which template to use, and other aspects of the edit.  The FreeMarker template controls the HTML and Javascript for the form.

...