From 7a3f04be6399f08d6c46f4f852c94aa2cc7451cf Mon Sep 17 00:00:00 2001 From: cappadona Date: Thu, 21 Jul 2011 19:57:00 +0000 Subject: [PATCH] NIHVIVO-3022 NIHVIVO-2980 Merged r3365 from maint-rel-1.3 branch. --- .../forms/css/institutionalInternalClass.css | 20 +++++ .../forms/institutionalInternalClassForm.ftl | 89 +++++++++++++++++++ 2 files changed, 109 insertions(+) create mode 100644 productMods/edit/forms/css/institutionalInternalClass.css create mode 100644 productMods/templates/freemarker/edit/forms/institutionalInternalClassForm.ftl diff --git a/productMods/edit/forms/css/institutionalInternalClass.css b/productMods/edit/forms/css/institutionalInternalClass.css new file mode 100644 index 00000000..8b68760d --- /dev/null +++ b/productMods/edit/forms/css/institutionalInternalClass.css @@ -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; +} \ No newline at end of file diff --git a/productMods/templates/freemarker/edit/forms/institutionalInternalClassForm.ftl b/productMods/templates/freemarker/edit/forms/institutionalInternalClassForm.ftl new file mode 100644 index 00000000..e23e7d69 --- /dev/null +++ b/productMods/templates/freemarker/edit/forms/institutionalInternalClassForm.ftl @@ -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. +--> + +

Institutional Internal Class

+ +
+

This class will be used to designate those individuals internal to your institution.

+

This will allow you to limit the individuals displayed on your menu pages (People, Research, etc.) + to only those within your institution.

+
+ +
+
+ + + <#--If no local ontologies, display message for user to create a local ontology--> + <#if ontologiesExist = false> +
+

There are currently no recognized local ontologies.

+ <#if defaultNamespace?has_content && defaultNamespace?contains("individual/")> + <#assign localOntologyNamespace = defaultNamespace?replace("individual/", "") /> +

In order for a local ontology to be recognized here, its namespace URI must follow this pattern:

+
${localOntologyNamespace}ontology/yourOntologyName
+ +

Please create a new local ontology and then return here to define the institutional internal class.

+
+ + <#--else if local ontologies exist and local classes exist, show drop-down of local classes--> + <#elseif useExistingLocalClass?has_content> +
+ <#--Populated based on class list returned--> + + + + +

Can't find an appropriate class? Create a new one.

+
+ + <#--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> +
+

Create a new class

+ + + +

use capitals for the first letter of each word

+ + <#--If more than one local namespace, generate select--> + <#if multipleLocalNamespaces = true> + + + + <#else> + + +
+ + <#--this case is an error case--> + <#else> +

Problematic section as above should all have been handled

+ + + <#--only show submit and cancel if ontologies exist--> + <#if ontologiesExist = true> + or Cancel + +
+
+ +${stylesheets.add('')} +${stylesheets.add('')} \ No newline at end of file