diff --git a/productMods/templates/freemarker/edit/forms/addGrantRoleToPerson.ftl b/productMods/templates/freemarker/edit/forms/addGrantRoleToPerson.ftl new file mode 100644 index 00000000..4300ae78 --- /dev/null +++ b/productMods/templates/freemarker/edit/forms/addGrantRoleToPerson.ftl @@ -0,0 +1,113 @@ +<#-- $This file is distributed under the terms of the license in /doc/license.txt$ --> + +<#-- Template for adding a grant role, such as principal investigator, to a foaf:Persons --> +<#import "lib-vivo-form.ftl" as lvf> + +<#if editConfig.object?has_content> + <#assign editMode = "edit"> +<#else> + <#assign editMode = "add"> + + +<#if editMode == "edit"> + <#assign titleVerb="Edit"> + <#assign submitButtonText="Edit Grant"> + <#assign disabledVal="disabled"> +<#else> + <#assign titleVerb="Create"> + <#assign submitButtonText="Create Grant"> + <#assign disabledVal=""/> + + +<#assign requiredHint = " *" /> +<#assign yearHint = "(YYYY)" /> + +<#if editMode = “ERROR”> +
This form is unable to handle the editing of this position because it is associated with + multiple Position individuals.
+<#else> + +

${titleVerb} ${roleDescriptor} entry for ${subjectName}

+ +<#if errorNameFieldIsEmpty??> + <#assign errorMessage = "Enter a name for the grant." /> + + +<#if errorMessage?has_content> + + + +
+ +<@lvf.unsupportedBrowser> + + +
+ +

+ + +

+ + <#-- DO WE NEED THIS?? + Store this value in a hidden field, because the displayed field is disabled and doesn't submit. This ensures that when + returning from a validation error, we retain the value. + <#if editMode == "edit"> + + + --> +
+

+ + + (Verify this match) +

+ + + +
+ +

Years of Participation in Grant

+ + +
+ +
+ + +
+ +
+ +

+ + or Cancel +

+ +

* required fields

+
+ + +<#assign acUrl value="/autocomplete?tokenize=true" /> +<#assign sparqlQueryUrl ="/ajax/sparqlQuery" /> + +<#assign sparqlForAcFilter = "PREFIX core: <${vivoCore}> SELECT ?grantUri WHERE {<${subjectUri}> <${predicateUri}> ?grantRole . ?grantRole core:roleIn ?grantUri .}>" + + + +
+ + diff --git a/productMods/templates/freemarker/edit/forms/addPublicationToPerson.ftl b/productMods/templates/freemarker/edit/forms/addPublicationToPerson.ftl new file mode 100644 index 00000000..01650f2d --- /dev/null +++ b/productMods/templates/freemarker/edit/forms/addPublicationToPerson.ftl @@ -0,0 +1,107 @@ +<#-- $This file is distributed under the terms of the license in /doc/license.txt$ --> + +<#-- Template for adding a publication to a foaf:Persons --> + +<#import "lib-vivo-form.ftl" as lvf> + +<#if editConfig.object?has_content> + <#assign editMode = "edit"> +<#else> + <#assign editMode = "add"> + + +<#if editMode == "edit"> + <#assign titleVerb="Edit"> + <#assign submitButtonText="Edit Publication"> + <#assign disabledVal="disabled"> +<#else> + <#assign titleVerb="Create"> + <#assign submitButtonText="Create Publication"> + <#assign disabledVal=""/> + + +

${titleVerb} ${roleDescriptor} entry for ${subjectName}

+ +<#if errorTitleFieldIsEmpty??> + <#assign errorMessage = "Enter a title for the publication." /> + + +<#if errorMessage?has_content> + + + +<#assign requiredHint = " *" /> +<#assign yearHint = "(YYYY)" /> + +<#if editMode = “ERROR”> +
This form is unable to handle the editing of this position because it is associated with + multiple Position individuals.
+<#else> + +
+ +<@lvf.unsupportedBrowser> + +
+ +

+ +

+

+ + +

+ +
+

+ + + (Verify this match) +

+ + + +
+ + + +
+ +
+ +

+ + or Cancel +

+ +

* required fields

+
+ +<#assign acUrl = "/autocomplete?tokenize=true" > +<#assign sparqlQueryUrl = "/ajax/sparqlQuery" > + +<#assign sparqlForAcFilter = "PREFIX core: <${vivoCore}> SELECT ?pubUri WHERE {<${subjectUri}> core:authorInAuthorship ?authorshipUri . ?authorshipUri core:linkedInformationResource ?pubUri .}" + + + +
+ +<#/if> \ No newline at end of file diff --git a/productMods/templates/freemarker/edit/forms/newIndividualForm.ftl b/productMods/templates/freemarker/edit/forms/newIndividualForm.ftl new file mode 100644 index 00000000..f101c08b --- /dev/null +++ b/productMods/templates/freemarker/edit/forms/newIndividualForm.ftl @@ -0,0 +1,62 @@ +<#-- $This file is distributed under the terms of the license in /doc/license.txt$ --> + +<#-- Template for adding a new individual from the Site Admin page: VIVO version --> + + +

Create a new ${subclassName}

+ +<#if errorFirstNameIsEmpty??> + <#assign errorMessage = "Enter a first name." /> + + +<#if errorLastNameIsEmpty??> + <#assign errorMessage = "Enter a last name." /> + + +<#if errorNameFieldIsEmpty??> + <#assign errorMessage = "Enter a name." /> + + +<#if errorMessage?has_content> + + + +<#assign requiredHint = " *" /> + +
+ +
+ + <#if isPersonType > +

+ + +

+ +

+ + +

+ <#else> +

+ + +

+ + +

+ + + or Cancel +

+ +

* required fields

+ +
+ + +
+ diff --git a/productMods/templates/freemarker/edit/forms/organizationHasPositionHistory.ftl b/productMods/templates/freemarker/edit/forms/organizationHasPositionHistory.ftl new file mode 100644 index 00000000..a855c69a --- /dev/null +++ b/productMods/templates/freemarker/edit/forms/organizationHasPositionHistory.ftl @@ -0,0 +1,114 @@ +<#-- $This file is distributed under the terms of the license in /doc/license.txt$ --> + +<#-- this template is for adding a person's position to an organization --> + +<#import "lib-vivo-form.ftl" as lvf> + +<#if editConfig.object?has_content> + <#assign editMode = "edit"> +<#else> + <#assign editMode = "add"> + + +<#if editMode == "edit"> + <#assign titleVerb="Edit"> + <#assign submitButtonText="Edit Position"> + <#assign disabledVal="disabled"> +<#else> + <#assign titleVerb="Create"> + <#assign submitButtonText="Create Position"> + <#assign disabledVal=""/> + + +<#assign requiredHint = " *" /> +<#assign yearHint = "(YYYY)" /> + +<#if editMode = “ERROR”> +
This form is unable to handle the editing of this position because it is associated with + multiple Position individuals.
+<#else> + +

${titleVerb} educational training entry for ${subjectName}

+ +<#if errorTitleFieldIsEmpty??> + <#assign errorMessage = "Enter a position title." /> + + +<#if errorTypeFieldIsEmpty??> + <#assign errorMessage = "Select a position type." /> + + +<#if errorMessage?has_content> + + + +
+ +<@lvf.unsupportedBrowser> + +
+ +

+ + +

+ + +

+ + +

+ +
+

+ + + (Verify this match) +

+ + + +
+ + +
+ +
+ + +
+ +
+ +

+ + or Cancel +

+ +

* required fields

+ +
+ +<#assign acUrl="/autocomplete?tokenize=true&stem=true" > + + + +
+ + \ No newline at end of file diff --git a/productMods/templates/freemarker/edit/forms/personHasEducationalTraining.ftl b/productMods/templates/freemarker/edit/forms/personHasEducationalTraining.ftl new file mode 100644 index 00000000..4aa1d087 --- /dev/null +++ b/productMods/templates/freemarker/edit/forms/personHasEducationalTraining.ftl @@ -0,0 +1,143 @@ +<#-- $This file is distributed under the terms of the license in /doc/license.txt$ --> + +<#-- this is in request.subject.name --> + +<#-- leaving this edit/add mode code in for reference in case we decide we need it --> + +<#import "lib-vivo-form.ftl" as lvf> + +<#if editConfig.object?has_content> + <#assign editMode = "edit"> +<#else> + <#assign editMode = "add"> + + +<#if editMode == "edit"> + <#assign titleVerb="Edit"> + <#assign submitButtonText="Edit Educational Training"> + <#assign disabledVal="disabled"> +<#else> + <#assign titleVerb="Create"> + <#assign submitButtonText="Educational Training"> + <#assign disabledVal=""/> + + +<#assign requiredHint = " *" /> +<#assign yearHint = "(YYYY)" /> + +<#if editMode = “ERROR”> +
This form is unable to handle the editing of this position because it is associated with + multiple Position individuals.
+<#else> + +

${titleVerb} educational training entry for ${subjectName}

+ + +<#if errorTypeFieldIsEmpty??> + <#assign errorMessage = "Select a type of organization." /> + + +<#if errorNameFieldIsEmpty??> + <#assign errorMessage = "Enter a name for the organization." /> + + +<#if errorMessage?has_content> + + + +
+ +<@lvf.unsupportedBrowser> + +
+
+ Alert Icon +

This form is not supported in versions of Internet Explorer below version 8. Please upgrade your browser, or + switch to another browser, such as FireFox.

+
+
+ +
+ + + +

+ + +

+ +
+

+ + + (Verify this match) +

+ + + +
+

+ + +

+
+ + +
+

+ + +

+

+ + +

e.g., Postdoctoral training or Transferred

+

+ + + +
+ +
+ + +
+ +
+ +

+ or Cancel +

+ +

* required fields

+ +
+ +<#assign acUrl="/autocomplete?tokenize=true&stem=true" > + + + +
+ \ No newline at end of file