improvements to blank node handling in bulk deletion
This commit is contained in:
parent
cef7b583e2
commit
b480cb2eea
78 changed files with 5882 additions and 605 deletions
|
@ -1,16 +1,16 @@
|
|||
<%-- $This file is distributed under the terms of the license in /doc/license.txt$ --%>
|
||||
|
||||
<%@ taglib prefix="form" uri="http://vitro.mannlib.cornell.edu/edit/tags" %>
|
||||
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
|
||||
<%-- colspan set to 4 in DatapropRetryController.java --%>
|
||||
<tr class="editformcell">
|
||||
<td valign="top" colspan="1">
|
||||
<b>Public Name</b><br/><i>as will display on public pages</i><br/>
|
||||
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
|
||||
<%-- colspan set to 4 in DatapropRetryController.java --%>
|
||||
<tr class="editformcell">
|
||||
<td valign="top" colspan="1">
|
||||
<b>Public Name</b><br/><i>as will display on public pages</i><br/>
|
||||
<input name="PublicName" value="<form:value name="PublicName"/>"/>
|
||||
<c:set var="PublicNameError"><form:error name="PublicName"/></c:set>
|
||||
<c:if test="${!empty PublicNameError}">
|
||||
<span class="notice"><c:out value="${PublicNameError}"/></span>
|
||||
</c:if>
|
||||
</c:if>
|
||||
</td>
|
||||
<td valign="top" colspan="1">
|
||||
<b>Property Group</b><br/>
|
||||
|
@ -27,10 +27,10 @@
|
|||
<b>Update Level</b><br /><i>(specify least restrictive level allowed)</i><br />
|
||||
<select name="ProhibitedFromUpdateBelowRoleLevelUsingRoleUri"><form:option name="ProhibitedFromUpdateBelowRoleLevelUsingRoleUri"/></select>
|
||||
</td>
|
||||
</tr>
|
||||
</tr>
|
||||
<tr class="editformcell">
|
||||
<!-- c:set var="existingLocalName" value="<form:value name='LocalName'/>"/ -->
|
||||
<td valign="top" colspan="2">
|
||||
<!-- c:set var="existingLocalName" value="<form:value name='LocalName'/>"/ -->
|
||||
<td valign="top" colspan="2">
|
||||
<b>Ontology</b><br/>
|
||||
<c:choose>
|
||||
<c:when test="${_action eq 'update'}">
|
||||
|
@ -45,42 +45,42 @@
|
|||
<form:option name="Namespace"/>
|
||||
</select>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</td>
|
||||
<td valign="top" colspan="2">
|
||||
</c:choose>
|
||||
</td>
|
||||
<td valign="top" colspan="2">
|
||||
<b>Local Name*</b>
|
||||
<c:choose>
|
||||
<c:when test="${_action eq 'update'}">
|
||||
<br/><i>Change only via the "change URI" button on the previous screen</i><br/>
|
||||
<br/><i>Change only via the "change URI" button on the previous screen</i><br/>
|
||||
<input name="LocalName" value="<form:value name="LocalName"/>" disabled="disabled"/>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<i>(must be a valid XML name)<br/>startLowercaseAndUseCamelStyle</i><br/>
|
||||
<input name="LocalName" value="<form:value name="LocalName"/>"/>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</c:choose>
|
||||
<c:set var="LocalNameError"><form:error name="LocalName"/></c:set>
|
||||
<c:if test="${!empty LocalNameError}">
|
||||
<span class="notice"><c:out value="${LocalNameError}"/></span>
|
||||
</c:if>
|
||||
</c:if>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="editformcell">
|
||||
<td valign="top" colspan="2">
|
||||
<b>Domain Class</b><br/>
|
||||
<select name="DomainClassURI">
|
||||
<form:option name="DomainClassURI"/>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="editformcell">
|
||||
<td valign="top" colspan="2">
|
||||
<b>Range Datatype</b><br/>
|
||||
<select name="RangeDatatypeURI">
|
||||
<form:option name="RangeDatatypeURI"/>
|
||||
</select>
|
||||
</tr>
|
||||
|
||||
<tr class="editformcell">
|
||||
<td valign="top" colspan="2">
|
||||
<b>Domain Class</b><br/>
|
||||
<select name="DomainClassURI">
|
||||
<form:option name="DomainClassURI"/>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="editformcell">
|
||||
<td valign="top" colspan="2">
|
||||
<b>Range Datatype</b><br/>
|
||||
<select name="RangeDatatypeURI">
|
||||
<form:option name="RangeDatatypeURI"/>
|
||||
</select>
|
||||
</td>
|
||||
<td valign="bottom" colspan="2">
|
||||
<c:set var="functionalLabel" value="<b>Functional property</b> <i>(has at most one value for each individual)</i>" />
|
||||
|
@ -92,7 +92,7 @@
|
|||
<input name="Functional" type="checkbox" value="TRUE"/>${functionalLabel}
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</td>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="editformcell">
|
||||
|
@ -104,17 +104,17 @@
|
|||
<span class="notice"><c:out value="${ExampleError}"/></span>
|
||||
</c:if>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="editformcell">
|
||||
<td valign="top" colspan="4">
|
||||
<b>Description</b> for ontology editors<br/>
|
||||
</tr>
|
||||
|
||||
<tr class="editformcell">
|
||||
<td valign="top" colspan="4">
|
||||
<b>Description</b> for ontology editors<br/>
|
||||
<textarea name="Description"><form:value name="Description"/></textarea>
|
||||
<c:set var="DescriptionError"><form:error name="Description"/></c:set>
|
||||
<c:if test="${!empty DescriptionError}">
|
||||
<span class="notice"><c:out value="${DescriptionError}"/></span>
|
||||
</c:if>
|
||||
</td>
|
||||
</c:if>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="editformcell">
|
||||
|
@ -126,24 +126,24 @@
|
|||
<span class="notice"><c:out value="${PublicDescriptionError}"/></span>
|
||||
</c:if>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="editformcell">
|
||||
<td valign="top" colspan="1">
|
||||
<b>Display Tier</b><br/>
|
||||
</tr>
|
||||
|
||||
<tr class="editformcell">
|
||||
<td valign="top" colspan="1">
|
||||
<b>Display Tier</b><br/>
|
||||
<input name="DisplayTier" value="<form:value name="DisplayTier"/>"/>
|
||||
<c:set var="DisplayTierError"><form:error name="DisplayTier"/></c:set>
|
||||
<c:if test="${!empty DisplayTierError}">
|
||||
<span class="notice"><c:out value="${DisplayTierError}"/></span>
|
||||
</c:if>
|
||||
</td>
|
||||
<td valign="top" colspan="1">
|
||||
<b>Display Limit</b><br/>
|
||||
</c:if>
|
||||
</td>
|
||||
<td valign="top" colspan="1">
|
||||
<b>Data Entry Limit</b><br/>
|
||||
<input name="DisplayLimit" value="<form:value name="DisplayLimit"/>"/>
|
||||
<c:set var="DisplayLimitError"><form:error name="DisplayLimit"/></c:set>
|
||||
<c:if test="${!empty DisplayLimitError}">
|
||||
<span class="notice"><c:out value="${DisplayLimitError}"/></span>
|
||||
</c:if>
|
||||
</c:if>
|
||||
</td>
|
||||
<td valign="top" colspan="1">
|
||||
<em>Optional: <b>custom entry form</b></em><br />
|
||||
|
@ -155,4 +155,4 @@
|
|||
</td>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<#--Save to variable indicated in generator -->
|
||||
|
||||
<#assign htmlExists = false/>
|
||||
<#if variableName?has_content>
|
||||
<#assign htmlExists = true />
|
||||
</#if>
|
||||
<#if htmlExists>
|
||||
${.globals[variableName]}
|
||||
<#else>
|
||||
No HTML specified.
|
||||
</#if>
|
||||
|
||||
|
|
@ -6,6 +6,7 @@
|
|||
<#assign subjectUri = individual.controlPanelUrl()?split("=") >
|
||||
<#list propertyGroups.all as group>
|
||||
<#assign groupName = group.getName(nameForOtherGroup)>
|
||||
<#assign verbose = (verbosePropertySwitch.currentValue)!false>
|
||||
|
||||
<section class="property-group" role="region">
|
||||
<nav class="scroll-up" role="navigation">
|
||||
|
@ -29,13 +30,13 @@
|
|||
<#-- Property display name -->
|
||||
<#if property.localName == "authorInAuthorship" >
|
||||
<h3 id="${property.localName}">${property.name} <@p.addLink property editable /> <@p.verboseDisplay property />
|
||||
<a id="managePropLink" href="${urls.base}/managePublications?subjectUri=${subjectUri[1]!}" title="manage publications" <#if verbosePropertySwitch.currentValue>style="padding-top:10px"</#if> >
|
||||
<a id="managePropLink" href="${urls.base}/managePublications?subjectUri=${subjectUri[1]!}" title="manage publications" <#if verbose>style="padding-top:10px"</#if> >
|
||||
manage publications
|
||||
</a>
|
||||
</h3>
|
||||
<#elseif property.localName == "hasResearcherRole">
|
||||
<h3 id="${property.localName}">${property.name} <@p.addLink property editable /> <@p.verboseDisplay property />
|
||||
<a id="managePropLink" href="${urls.base}/manageGrants?subjectUri=${subjectUri[1]!}" title="manage grants & projects" <#if verbosePropertySwitch.currentValue>style="padding-top:10px"</#if> >
|
||||
<a id="managePropLink" href="${urls.base}/manageGrants?subjectUri=${subjectUri[1]!}" title="manage grants & projects" <#if verbose>style="padding-top:10px"</#if> >
|
||||
manage grants & projects
|
||||
</a>
|
||||
</h3>
|
||||
|
|
|
@ -48,6 +48,30 @@
|
|||
</#list>
|
||||
</ul>
|
||||
|
||||
<#-- VIVO OpenSocial Extension by UCSF -->
|
||||
<#if openSocial??>
|
||||
<#if openSocial.visible>
|
||||
<script type="text/javascript" language="javascript">
|
||||
// find the 'Search' gadget(s).
|
||||
var searchGadgets = my.findGadgetsAttachingTo("gadgets-search");
|
||||
var keyword = '${querytext}';
|
||||
// add params to these gadgets
|
||||
if (keyword) {
|
||||
for (var i = 0; i < searchGadgets.length; i++) {
|
||||
var searchGadget = searchGadgets[i];
|
||||
searchGadget.additionalParams = searchGadget.additionalParams || {};
|
||||
searchGadget.additionalParams["keyword"] = keyword;
|
||||
}
|
||||
}
|
||||
else { // remove these gadgets
|
||||
my.removeGadgets(searchGadgets);
|
||||
}
|
||||
</script>
|
||||
|
||||
<div id="gadgets-search" class="gadgets-gadget-parent"></div>
|
||||
</#if>
|
||||
</#if>
|
||||
|
||||
<#-- Paging controls -->
|
||||
<#if (pagingLinks?size > 0)>
|
||||
<div class="searchpages">
|
||||
|
|
|
@ -16,6 +16,9 @@
|
|||
<option value="group" <#if displayOption == "group">selected</#if> >Classes by Class Group</option>
|
||||
</select>
|
||||
<input id="addClass" value="Add New Class" class="form-button" type="submit" />
|
||||
<#if displayOption == "group">
|
||||
<input type="submit" id="addGroup" class="form-button" value="Add New Group"/>
|
||||
</#if>
|
||||
</form>
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,49 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<#--
|
||||
Used to display both the object and data property hierarchies, though there are
|
||||
separate controllers for those. Also used to display lists of "all" object and
|
||||
data properties, though there are separate controllers for those, too.
|
||||
-->
|
||||
|
||||
|
||||
<section role="region">
|
||||
|
||||
<h2>${pageTitle!}</h2>
|
||||
|
||||
<#if !displayOption?has_content>
|
||||
<#assign displayOption = "hierarchy">
|
||||
</#if>
|
||||
|
||||
<form name="classHierarchyForm" id="classHierarchyForm" action="show<#if propertyType == "object">Object<#else>Data</#if>PropertyHierarchy" method="post" role="classHierarchy">
|
||||
<label id="displayOptionLabel" class="inline">Display Options</label>
|
||||
<select id="displayOption" name="displayOption">
|
||||
<option value="hierarchy" <#if displayOption == "asserted">selected</#if> >Property Hierarchy</option>
|
||||
<option value="all" <#if displayOption == "all">selected</#if> >All Properties</option>
|
||||
</select>
|
||||
<input type="submit" class="form-button" id="addProperty" value="Add new <#if propertyType == "object">object<#else>data</#if> property"/>
|
||||
</form>
|
||||
|
||||
<div id="expandLink"><span id="expandAll" ><a href="#" title="expand all">expand all</a></span></div>
|
||||
|
||||
<section id="container">
|
||||
</section>
|
||||
|
||||
</section>
|
||||
<script language="javascript" type="text/javascript" >
|
||||
var json = [${jsonTree!}];
|
||||
</script>
|
||||
|
||||
|
||||
<script language="javascript" type="text/javascript" >
|
||||
$(document).ready(function() {
|
||||
objectPropHierarchyUtils.onLoad("${urls.base!}","${displayOption!}","${propertyType}");
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/classHierarchy.css" />')}
|
||||
|
||||
${scripts.add('<script type="text/javascript" src="${urls.base}/js/jquery-ui/js/jquery-ui-1.8.9.custom.min.js"></script>',
|
||||
'<script type="text/javascript" src="${urls.base}/js/siteAdmin/objectPropertyHierarchyUtils.js"></script>')}
|
||||
|
|
@ -0,0 +1,66 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
<#--Browse Class Groups Section-->
|
||||
<#-----------Variable assignment-------------->
|
||||
<#--Requires Menu action be defined in parent template-->
|
||||
<#assign classGroup = pageData.classGroup />
|
||||
<#assign classGroups = pageData.classGroups />
|
||||
<#assign isClassGroupPage = false/>
|
||||
<#assign includeAllClasses = false/>
|
||||
<#-- some additional processing here which shows or hides the class group selection and classes based on initial action-->
|
||||
<#assign existingClassGroupStyle = " " />
|
||||
<#assign selectClassGroupStyle = 'class="hidden"' />
|
||||
<#-- Reveal the class group and hide the class selects if adding a new menu item or editing an existing menu item with an empty class group (no classes)-->
|
||||
<#-- Menu action needs to be sent from main template-->
|
||||
<#if menuAction == "Add" || !classGroup?has_content>
|
||||
<#assign existingClassGroupStyle = 'class="hidden"' />
|
||||
<#assign selectClassGroupStyle = " " />
|
||||
</#if>
|
||||
|
||||
|
||||
<#--HTML Portion-->
|
||||
<section id="browseClassGroup" style="background-color:#f9f9f9;padding-left:6px;padding-top:2px;border-width:1px;border-style:solid;border-color:#ccc;">
|
||||
|
||||
<section id="selectContentType" name="selectContentType" ${selectClassGroupStyle} role="region">
|
||||
|
||||
<label for="selectClassGroup">Class Group<span class="requiredHint"> *</span></label>
|
||||
<select name="selectClassGroup" id="selectClassGroup" role="combobox">
|
||||
<option value="-1" role="option">Select one</option>
|
||||
<#list classGroups as aClassGroup>
|
||||
<option value="${aClassGroup.URI}" <#if aClassGroup.URI = associatedPageURI>selected</#if> role="option">${aClassGroup.publicName}</option>
|
||||
</#list>
|
||||
</select>
|
||||
</section>
|
||||
|
||||
|
||||
<section id="classesInSelectedGroup" name="classesInSelectedGroup" ${existingClassGroupStyle}>
|
||||
<#-- Select classes in a class group -->
|
||||
<p id="selectClassesMessage" name="selectClassesMessage">Select content to display<span class="requiredHint"> *</span></p>
|
||||
|
||||
<#include "pageManagement--classIntersections.ftl">
|
||||
|
||||
<ul id="selectedClasses" name="selectedClasses" role="menu">
|
||||
<#--Adding a default class for "ALL" in case all classes selected-->
|
||||
<li class="ui-state-default" role="menuitem">
|
||||
<input type="checkbox" name="allSelected" id="allSelected" value="all" <#if !isIndividualsForClassesPage?has_content>checked</#if> />
|
||||
<label class="inline" for="All"> All</label>
|
||||
</li>
|
||||
<#list classGroup as classInClassGroup>
|
||||
<li class="ui-state-default" role="menuitem">
|
||||
<input type="checkbox" id="classInClassGroup" name="classInClassGroup" value="${classInClassGroup.URI}"
|
||||
<#if includeAllClasses = true>checked</#if>
|
||||
<#if isIndividualsForClassesPage?has_content>
|
||||
<#list includeClasses as includeClass>
|
||||
<#if includeClass = classInClassGroup.URI>
|
||||
checked
|
||||
</#if>
|
||||
</#list>
|
||||
</#if> />
|
||||
<label class="inline" for="${classInClassGroup.name}"> ${classInClassGroup.name}</label>
|
||||
<span class="ui-icon-sortable"></span>
|
||||
</li>
|
||||
</#list>
|
||||
</ul>
|
||||
</section>
|
||||
</section>
|
||||
<#--Include JavaScript specific to the types of data getters related to this content-->
|
||||
<#include "pageManagement--browseClassGroupsScripts.ftl">
|
|
@ -0,0 +1,4 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
<#-- Scripts for class group browsing -->
|
||||
${scripts.add('<script type="text/javascript" src="${urls.base}/js/menupage/processClassGroupDataGetterContent.js"></script>')}
|
||||
${scripts.add('<script type="text/javascript" src="${urls.base}/js/menupage/processIndividualsForClassesDataGetterContent.js"></script>')}
|
|
@ -0,0 +1,5 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
<#--These are the different content templates that will be cloned and used within page management-->
|
||||
<#include "pageManagement--browseClassGroups.ftl">
|
||||
<#include "pageManagement--sparqlQuery.ftl">
|
||||
<#include "pageManagement--fixedHtml.ftl">
|
|
@ -0,0 +1,16 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
<#--Sets up script for custom form data. Including here instead of as separate javascript
|
||||
file to ensure this script is always loaded first. Can also make sure placed first in
|
||||
scripts list.-->
|
||||
|
||||
<script type="text/javascript">
|
||||
var customFormData = {
|
||||
dataGetterLabelToURI:{
|
||||
//maps labels to URIs
|
||||
"browseClassGroup": "java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.ClassGroupPageData",
|
||||
"individualsForClasses": "java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.IndividualsForClassesDataGetter",
|
||||
"sparqlQuery":"java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.SparqlQueryDataGetter",
|
||||
"fixedHtml":"java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.FixedHTMLDataGetter"
|
||||
}
|
||||
};
|
||||
</script>
|
|
@ -0,0 +1,10 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
<#--This contains the template for the fixed HTML content type that is to be cloned and used in page management-->
|
||||
|
||||
<section id="fixedHtml" style="background-color:#f9f9f9;padding-left:6px;padding-top:2px;border-width:1px;border-style:solid;border-color:#ccc;">
|
||||
<label id="fixedHTMLVariableLabel" for="fixedHTMLVariable">Variable Name<span class="requiredHint"> *</span></label>
|
||||
<input type="text" name="saveToVar" size="20" value="" id="fixedHTMLSaveToVar" role="input" />
|
||||
<label id="fixedHTMLValueLabel" for="fixedHTMLValue">Enter fixed HTML here<span id="fixedHTMLValueSpan"></span><span class="requiredHint"> *</span></label>
|
||||
<textarea id="fixedHTMLValue" name="htmlValue" cols="70" rows="15" style="margin-bottom:7px"></textarea>
|
||||
</section>
|
||||
${scripts.add('<script type="text/javascript" src="${urls.base}/js/menupage/processFixedHTMLDataGetterContent.js"></script>')}
|
|
@ -0,0 +1,11 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
<#--This contains the template for the Sparql Query content type that is to be cloned and used in page management-->
|
||||
<section id="sparqlQuery" style="background-color:#f9f9f9;padding-left:6px;padding-top:2px;border-width:1px;border-style:solid;border-color:#ccc;">
|
||||
<label id="variableLabel" for="variable">Variable Name<span class="requiredHint"> *</span></label>
|
||||
<input type="text" name="saveToVar" size="20" value="" id="saveToVar" role="input" />
|
||||
<label id="queryModelLabel" for="queryModel">Query Model</label>
|
||||
<input type="text" name="queryModel" size="20" value="" id="queryModel" role="input" />
|
||||
<label id="queryLabel" for="queryLabel"><span id="querySpan">Enter SPARQL query here</span><span class="requiredHint"> *</span></label>
|
||||
<textarea id="query" name="query" cols="70" rows="15" style="margin-bottom:7px"></textarea>
|
||||
</section>
|
||||
${scripts.add('<script type="text/javascript" src="${urls.base}/js/menupage/processSparqlDataGetterContent.js"></script>')}
|
|
@ -1,27 +1,16 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
<#--Set up variables-->
|
||||
<#--------Set up variables-------->
|
||||
<#assign pageData = editConfiguration.pageData />
|
||||
<#assign menuAction = pageData.menuAction />
|
||||
<#assign classGroup = pageData.classGroup />
|
||||
<#assign classGroups = pageData.classGroups />
|
||||
|
||||
<#assign pageName = "" />
|
||||
<#assign selectedTemplateType = "default" />
|
||||
<#assign prettyUrl = ""/>
|
||||
<#assign associatedPage = ""/>
|
||||
<#assign associatedPageURI = ""/>
|
||||
<#assign menuItem = ""/>
|
||||
<#assign isClassGroupPage = false/>
|
||||
<#assign includeAllClasses = false/>
|
||||
|
||||
|
||||
<#-- some additional processing here which shows or hides the class group selection and classes based on initial action-->
|
||||
<#assign existingClassGroupStyle = " " />
|
||||
<#assign selectClassGroupStyle = 'class="hidden"' />
|
||||
<#-- Reveal the class group and hide the class selects if adding a new menu item or editing an existing menu item with an empty class group (no classes)-->
|
||||
<#if menuAction == "Add" || !classGroup?has_content>
|
||||
<#assign existingClassGroupStyle = 'class="hidden"' />
|
||||
<#assign selectClassGroupStyle = " " />
|
||||
</#if>
|
||||
<#------------HTML Portion------------->
|
||||
<section id="error-alert" role="alert" class="hidden">
|
||||
<img src="${urls.images}/iconAlert.png" width="24" height="24" alert="Error alert icon" />
|
||||
<p></p>
|
||||
|
@ -35,6 +24,7 @@
|
|||
<input type="hidden" id="editKey" name="editKey" value="${editKey}" />
|
||||
<input type="hidden" id="menuItem" name="menuItem" value="${menuItem}"/>
|
||||
<h2>Add Page</h2>
|
||||
<!--Drop down for the types of content possible-->
|
||||
<section id="floatRight" style="margin-top:0px;float:right;background-color:#fff;width:580px;margin-right:-4px">
|
||||
<div id="rightSide">
|
||||
<section id="addPageOne" role="region">
|
||||
|
@ -51,60 +41,14 @@
|
|||
<section id="headerBar" style="background-color:#f5f5f5;border-color:#ccc;border-width:1px;border-style:solid;border-bottom-width:0px;padding-left:6px">
|
||||
</section>
|
||||
|
||||
<section id="classGroup" style="background-color:#f9f9f9;padding-left:6px;padding-top:2px;border-width:1px;border-style:solid;border-color:#ccc;">
|
||||
|
||||
<section id="selectContentType" name="selectContentType" ${selectClassGroupStyle} role="region">
|
||||
|
||||
<label for="selectClassGroup">Class Group<span class="requiredHint"> *</span></label>
|
||||
<select name="selectClassGroup" id="selectClassGroup" role="combobox">
|
||||
<option value="-1" role="option">Select one</option>
|
||||
<#list classGroups as aClassGroup>
|
||||
<option value="${aClassGroup.URI}" <#if aClassGroup.URI = associatedPageURI>selected</#if> role="option">${aClassGroup.publicName}</option>
|
||||
</#list>
|
||||
</select>
|
||||
</section>
|
||||
|
||||
|
||||
<section id="classesInSelectedGroup" name="classesInSelectedGroup" ${existingClassGroupStyle}>
|
||||
<#-- Select classes in a class group -->
|
||||
<p id="selectClassesMessage" name="selectClassesMessage">Select content to display<span class="requiredHint"> *</span></p>
|
||||
|
||||
<#include "pageManagement--classIntersections.ftl">
|
||||
|
||||
<ul id="selectedClasses" name="selectedClasses" role="menu">
|
||||
<#--Adding a default class for "ALL" in case all classes selected-->
|
||||
<li class="ui-state-default" role="menuitem">
|
||||
<input type="checkbox" name="allSelected" id="allSelected" value="all" <#if !isIndividualsForClassesPage?has_content>checked</#if> />
|
||||
<label class="inline" for="All"> All</label>
|
||||
</li>
|
||||
<#list classGroup as classInClassGroup>
|
||||
<li class="ui-state-default" role="menuitem">
|
||||
<input type="checkbox" id="classInClassGroup" name="classInClassGroup" value="${classInClassGroup.URI}"
|
||||
<#if includeAllClasses = true>checked</#if>
|
||||
<#if isIndividualsForClassesPage?has_content>
|
||||
<#list includeClasses as includeClass>
|
||||
<#if includeClass = classInClassGroup.URI>
|
||||
checked
|
||||
</#if>
|
||||
</#list>
|
||||
</#if> />
|
||||
<label class="inline" for="${classInClassGroup.name}"> ${classInClassGroup.name}</label>
|
||||
<#-- PLACEHOLDER - not yet implemented) -->
|
||||
<span class="ui-icon-sortable"></span> <#--sortable icon for dragging and dropping menu items-->
|
||||
</li>
|
||||
</#list>
|
||||
</ul>
|
||||
</section>
|
||||
</section>
|
||||
<section id="nonClassGroup" style="background-color:#f9f9f9;padding-left:6px;padding-top:2px;border-width:1px;border-style:solid;border-color:#ccc;">
|
||||
<label id="variableLabel" for="variable">Variable Name<span class="requiredHint"> *</span></label>
|
||||
<input type="text" name="variable" size="20" value="" id="variable" role="input" />
|
||||
<label id="taLabel" for="selectClassGroup"><span id="taSpan"></span><span class="requiredHint"> *</span></label>
|
||||
<textarea id="textArea" name="textArea" cols="70" rows="15" style="margin-bottom:7px"></textarea>
|
||||
</section>
|
||||
<#--This include file contains links to the templates that will be cloned and used for the different content types-->
|
||||
<!--This content will be copied/shown for these particular content types, so any fields for n3 editing need to be included
|
||||
here that correspond to a specific content type. These are related to specific "data getters" on the server side. -->
|
||||
<#include "pageManagement--contentTemplates.ftl">
|
||||
<input type="button" id="moreContent" name="moreContent" value="Add More Content" class="delete" style="margin-top:8px" />
|
||||
</div>
|
||||
</section>
|
||||
<!--Information for page or menu item level-->
|
||||
<div id="leftSide">
|
||||
<section id="addPageOne" role="region" style="background-color:#fff;">
|
||||
<label for="page-name">Title<span class="requiredHint"> *</span></label>
|
||||
|
@ -137,35 +81,30 @@
|
|||
<br />
|
||||
<p class="requiredHint">* required fields</p>
|
||||
</section>
|
||||
<!--Hidden input with JSON objects added will be included here-->
|
||||
<!--Hidden input with JSON objects added will be included here. This is the field with the page content information
|
||||
mirroring what is required by the Data getter server side objects. -->
|
||||
<div id="pageContentSubmissionInputs" style="display:none"></div>
|
||||
</form>
|
||||
</section>
|
||||
|
||||
<!-
|
||||
|
||||
<!--Hardcoding for now but should be retrieved from generator-->
|
||||
<script type="text/javascript">
|
||||
var customFormData = {
|
||||
dataGetterLabelToURI:{
|
||||
//maps labels to URIs
|
||||
"browseClassGroup": "java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.ClassGroupPageData",
|
||||
"sparqlDataGetter":"java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.SparqlQueryDataGetter"
|
||||
},
|
||||
dataGetterMap:{"java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.ClassGroupPageData": "Class Group Page",
|
||||
"java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.BrowseDataGetter": "Browse Page",
|
||||
"java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.IndividualsForClassesDataGetter": "Class Group Page - Selected Classes",
|
||||
"java:edu.cornell.mannlib.vitro.webapp.utils.dataGetter.SparqlQueryDataGetter": "Sparql Query Results" }
|
||||
};
|
||||
</script>
|
||||
<!--Hardcoding for now but should be retrieved from generator: Custom data-->
|
||||
<#include "pageManagement--customDataScript.ftl">
|
||||
|
||||
|
||||
|
||||
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/js/jquery-ui/css/smoothness/jquery-ui-1.8.9.custom.css" />')}
|
||||
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/menupage/menuManagement.css" />')}
|
||||
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/css/menupage/pageManagement.css" />')}
|
||||
|
||||
${scripts.add('<script type="text/javascript" src="${urls.base}/js/jquery-ui/js/jquery-ui-1.8.9.custom.min.js"></script>')}
|
||||
${scripts.add('<script type="text/javascript" src="${urls.base}/js/jquery.fix.clone.js"></script>')}
|
||||
${scripts.add('<script type="text/javascript" src="${urls.base}/js/json2.js"></script>')}
|
||||
${scripts.add('<script type="text/javascript" src="${urls.base}/js/customFormUtils.js"></script>')}
|
||||
${scripts.add('<script type="text/javascript" src="${urls.base}/js/browserUtils.js"></script>')}
|
||||
<#--Process Data Getter Utils will refer to the various content type specific javascript files that should
|
||||
already have been added within the template section for each content type-->
|
||||
${scripts.add('<script type="text/javascript" src="${urls.base}/js/menupage/processDataGetterUtils.js"></script>')}
|
||||
<#--Page management is used on page load and utilizes processDataGetterUtils as well as the custom data from the custom data script-->
|
||||
${scripts.add('<script type="text/javascript" src="${urls.base}/js/menupage/pageManagementUtils.js"></script>')}
|
||||
|
||||
|
|
|
@ -34,9 +34,9 @@
|
|||
</#if>
|
||||
</#macro>
|
||||
|
||||
<#macro dataPropertyList property editable>
|
||||
<#macro dataPropertyList property editable template=property.template>
|
||||
<#list property.statements as statement>
|
||||
<@propertyListItem property statement editable >${statement.value}</@propertyListItem>
|
||||
<@propertyListItem property statement editable ><#include "${template}"></@propertyListItem>
|
||||
</#list>
|
||||
</#macro>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue