NIHVIVO-3022 NIHVIVO-2980 Merged r3365 from maint-rel-1.3 branch.
This commit is contained in:
parent
91acdbc54a
commit
7a3f04be63
2 changed files with 109 additions and 0 deletions
20
productMods/edit/forms/css/institutionalInternalClass.css
Normal file
20
productMods/edit/forms/css/institutionalInternalClass.css
Normal file
|
@ -0,0 +1,20 @@
|
|||
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||
|
||||
#localClassName {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
#createNewLocalClass p.note {
|
||||
margin-top: 3px;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
#noLocalOntologyExists {
|
||||
padding: 1em;
|
||||
background: #f4f4f4;
|
||||
display: inline-block;
|
||||
}
|
||||
#noLocalOntologyExists blockquote {
|
||||
margin: .4em 0 .4em 1em;
|
||||
padding: .5em;
|
||||
background: #ffc;
|
||||
display: inline-block;
|
||||
}
|
|
@ -0,0 +1,89 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<#--
|
||||
Institutional Internal Class Form
|
||||
To be associated later (upon completion of N3 Refactoring) with
|
||||
edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.generators.InstitutionalInternalClassForm.
|
||||
-->
|
||||
|
||||
<h2>Institutional Internal Class</h2>
|
||||
|
||||
<section id="introMessage" role="region">
|
||||
<p>This class will be used to designate those individuals internal to your institution.</p>
|
||||
<p>This will allow you to limit the individuals displayed on your menu pages (People, Research, etc.)
|
||||
to only those within your institution.</p>
|
||||
</section>
|
||||
|
||||
<section role="region">
|
||||
<form method="POST" action="${formUrl}" class="customForm">
|
||||
<input type="hidden" name="submitForm" id="submitForm" value="true" />
|
||||
|
||||
<#--If no local ontologies, display message for user to create a local ontology-->
|
||||
<#if ontologiesExist = false>
|
||||
<section id="noLocalOntologyExists" role="region">
|
||||
<h4>There are currently no recognized local ontologies.</h4>
|
||||
<#if defaultNamespace?has_content && defaultNamespace?contains("individual/")>
|
||||
<#assign localOntologyNamespace = defaultNamespace?replace("individual/", "") />
|
||||
<p>In order for a local ontology to be recognized here, its namespace URI must follow this pattern:</p>
|
||||
<blockquote>${localOntologyNamespace}ontology/<em>yourOntologyName</em></blockquote>
|
||||
</#if>
|
||||
<p>Please create a <a href='${urls.base}/editForm?controller=Ontology'>new local ontology</a> and then return here to define the institutional internal class.</p>
|
||||
</section>
|
||||
|
||||
<#--else if local ontologies exist and local classes exist, show drop-down of local classes-->
|
||||
<#elseif useExistingLocalClass?has_content>
|
||||
<section id="existingLocalClass" role="region">
|
||||
<#--Populated based on class list returned-->
|
||||
<label for="existingLocalClasses">Select an existing class from a local extension</label>
|
||||
|
||||
<select id="existingLocalClasses" name="existingLocalClasses" role="combobox"<strong></strong>>
|
||||
<#assign classUris = existingLocalClasses?keys />
|
||||
|
||||
<#--If internal class exists, check against value in drop-down and select option-->
|
||||
<#--<option value="" role="option">Select one</option>-->
|
||||
<#list classUris as localClassUri>
|
||||
<option value="${localClassUri}" role="option" <#if existingInternalClass = localClassUri>selected</#if> >${existingLocalClasses[localClassUri]}</option>
|
||||
</#list>
|
||||
</select>
|
||||
|
||||
<p>Can't find an appropriate class? Create a <a href="${formUrl}?cmd=createClass">new one</a>.</p>
|
||||
</section>
|
||||
|
||||
<#--if parameter to create new class passed or if there are local ontologies but no local classes, show create new class page-->
|
||||
<#elseif createNewClass?has_content>
|
||||
<section id="createNewLocalClass" role="region">
|
||||
<h3>Create a new class</h3>
|
||||
|
||||
<label for="localClassName">Name<span class="requiredHint"> *</span></label>
|
||||
<input type="text" id="localClassName" name="localClassName" value="" role="input" />
|
||||
<p class="note">use capitals for the first letter of each word</p>
|
||||
|
||||
<#--If more than one local namespace, generate select-->
|
||||
<#if multipleLocalNamespaces = true>
|
||||
<label for="existingLocalNamespace">Local Namespace<span class="requiredHint"> *</span></label>
|
||||
|
||||
<select id="existingLocalNamespaces" name="existingLocalNamespaces" role="combobox">
|
||||
<#assign namespaceUris = existingLocalNamespaces?keys />
|
||||
<#list namespaceUris as existingNamespace>
|
||||
<option value="${existingNamespace}" role="option">${existingLocalNamespaces[existingNamespace]}</option>
|
||||
</#list>
|
||||
</select>
|
||||
<#else>
|
||||
<input type="hidden" id="existingLocalNamespaces" name="existingLocalNamespaces" value="${existingLocalNamespace}" />
|
||||
</#if>
|
||||
</section>
|
||||
|
||||
<#--this case is an error case-->
|
||||
<#else>
|
||||
<p>Problematic section as above should all have been handled</p>
|
||||
</#if>
|
||||
|
||||
<#--only show submit and cancel if ontologies exist-->
|
||||
<#if ontologiesExist = true>
|
||||
<input type="submit" name="submit-internalClass" value="${submitAction}" class="submit" /> or <a class="cancel" href="${cancelUrl}">Cancel</a>
|
||||
</#if>
|
||||
</form>
|
||||
</section>
|
||||
|
||||
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/edit/forms/css/institutionalInternalClass.css" />')}
|
||||
${stylesheets.add('<link rel="stylesheet" href="${urls.base}/edit/forms/css/customForm.css" />')}
|
Loading…
Add table
Reference in a new issue