Updates for N3-Editing refactoring into JAVA code as well as integration of data and object property editing into same JAVA controller/freemarker templates. These changes should not affect the current jsp-based N3Editing which is being used throughout the system.

This commit is contained in:
hjkhjk54 2011-08-15 21:46:02 +00:00
parent 8597505e05
commit 5ece405f94
10 changed files with 1194 additions and 448 deletions

View file

@ -0,0 +1,27 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<h2>${editConfiguration.formTitle}</h2>
<#assign predicateProperty = "${editConfiguration.predicateProperty}" />
<#assign literalValues = "${editConfiguration.dataLiteralValuesAsString}" />
<form class="editForm" action = "${submitUrl}" method="post">
<input type="hidden" name="editKey" id="editKey" value="${editKey}" />
<#if editConfiguration.propertyPublicDescription?has_content>
<label for="${editConfiguration.dataLiteral}"><p class="propEntryHelpText">${predicateProperty.publicDescription}</p></label>
</#if>
<p>${editConfiguration.propertyPublicDescription}</p>
<input rows="2" type="textarea"
id="${editConfiguration.dataLiteral}" name="${editConfiguration.dataLiteral}"
value="${literalValues}"/>
<div style="margin-top: 0.2em">
<input type="submit" id="submit" value="${editConfiguration.submitLabel}" cancel="true"/>
</div>
</#if>
</form>
<#--ToDo: Include delete portion-->

View file

@ -1,21 +1,32 @@
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<h2>${formTitle}</h2>
<h2>${editConfiguration.formTitle}</h2>
<#assign form ="/edit/processRdfForm2.jsp">
<#assign predicateProperty = "${editConfiguration.predicateProperty}" />
<#assign formUrl ="${form?url}">
<#if ${predicate.selectFromExisting} == true>
<#if ${rangeOptionsExist} == true >
<form class="editForm" action = "${formUrl}">
<#if predicate.publicDescription??>
<p>${predicate.publicDescription}</p>
<input type="text" id="objectVar" size="80" />
<#if editConfiguration.propertySelectFromExisting = true>
<#if editConfiguration.rangeOptionsExist = true >
<#assign rangeOptionKeys = editConfiguration.rangeOptions?keys />
<form class="editForm" action = "${submitUrl}">
<input type="hidden" name="editKey" id="editKey" value="${editKey}" />
<#if editConfiguration.propertyPublicDescription?has_content>
<p>${editConfiguration.propertyPublicDescription}</p>
<select type="text" id="objectVar" name="objectVar">
<#list rangeOptionKeys as key>
<option value="${key}"
<#if editConfiguration.objectUri?has_content && editConfiguration.objectUri = key>
selected
</#if>
>${editConfiguration.rangeOptions[key]}</option>
</#list>
</select>
<div style="margin-top: 0.2em">
<input type="submit" id="submit" value="${submitLabel}" cancel="true"/>
<input type="submit" id="submit" value="${editConfiguration.submitLabel}" cancel="true"/>
</div>
</#if>
</form>
<#else>
<p> There are no entries in the system from which to select. </p>
</#if>
</#if>