VIVO-208: all fields now displayed when custom forms are rendered; customized 2-stage forms will still work as before
This commit is contained in:
parent
9fda9d2922
commit
be11fc589f
26 changed files with 149 additions and 188 deletions
|
@ -6,6 +6,7 @@
|
|||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
||||
@prefix core: <http://vivoweb.org/ontology/core#> .
|
||||
@prefix vivoweb: <http://vivoweb.org/ontology#> .
|
||||
@prefix afn: <http://jena.hpl.hp.com/ARQ/function#> .
|
||||
|
||||
|
||||
#### n3 for research areas ####
|
||||
|
@ -30,12 +31,20 @@ display:getResearchAreaDataGetter
|
|||
"""
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX vivo: <http://vivoweb.org/ontology/core#>
|
||||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
||||
SELECT DISTINCT (str(?researchAreaLabel) AS ?raLabel) ?ra
|
||||
WHERE {
|
||||
?individualURI vivo:organizationForPosition ?posn .
|
||||
?posn vivo:positionForPerson ?person .
|
||||
?person vivo:hasResearchArea ?ra .
|
||||
?ra rdfs:label ?researchAreaLabel
|
||||
OPTIONAL { ?posn vivo:dateTimeInterval ?dti
|
||||
OPTIONAL { ?dti vivo:end ?end .
|
||||
?end vivo:dateTime ?endDate
|
||||
}
|
||||
}
|
||||
FILTER ( !bound(?endDate) ||
|
||||
afn:substring(str(?endDate), 0, 4) >= afn:substring(str(afn:now()), 0, 4) )
|
||||
}
|
||||
ORDER BY ?raLabel
|
||||
""" .
|
||||
|
|
|
@ -17,10 +17,12 @@ showRoleLAbelField
|
|||
roleExamples-->
|
||||
|
||||
|
||||
<#--Variable assignments for Add Clinical Role To Person-->
|
||||
<#--Variable assignments-->
|
||||
<#assign roleDescriptor = "${i18n().attended}" />
|
||||
<#assign typeSelectorLabel = "${i18n().event_type}" />
|
||||
<#assign buttonText = "${i18n().attendee_capitalized}" />
|
||||
<#assign genericLabel = "${i18n().event_capitalized}" />
|
||||
<#assign acMultipleTypes = "'true'" />
|
||||
<#assign acTypes = "{activity: 'http://vivoweb.org/ontology/core#EventSeries,http://purl.org/NET/c4dm/event.owl#Event'}" />
|
||||
|
||||
<#--Each of the two stage forms will include the form below-->
|
||||
<#include "addRoleToPersonTwoStage.ftl">
|
|
@ -25,6 +25,10 @@ RoleToActivityPredicate
|
|||
<#--Variable assignments for Add Clinical Role To Person-->
|
||||
<#assign roleDescriptor = "${i18n().clinical_activity}" />
|
||||
<#assign typeSelectorLabel = "${i18n().clinical_activity_type}" />
|
||||
<#assign genericLabel = "${i18n().clinical_activity?capitalize}" />
|
||||
|
||||
<#assign acMultipleTypes = "'true'" />
|
||||
<#assign acTypes = "{activity: 'http://vivoweb.org/ontology/core#Project,http://vivoweb.org/ontology/core#Service'}" />
|
||||
|
||||
|
||||
<#--Each of the two stage forms will include the form below-->
|
||||
|
|
|
@ -20,7 +20,9 @@ roleExamples-->
|
|||
<#--Variable assignments for Add Clinical Role To Person-->
|
||||
<#assign roleDescriptor = "${i18n().collection_series_editor_role}" />
|
||||
<#assign typeSelectorLabel = "${i18n().editor_role_in}" />
|
||||
<#assign genericLabel = "Collection" />
|
||||
|
||||
<#assign acTypes = "{activity: 'http://purl.org/ontology/bibo/Collection'}" />
|
||||
|
||||
<#--Each of the two stage forms will include the form below-->
|
||||
<#include "addRoleToPersonTwoStage.ftl">
|
|
@ -20,7 +20,9 @@ roleExamples-->
|
|||
<#--Variable assignments for Add Clinical Role To Person-->
|
||||
<#assign roleDescriptor = "${i18n().leadership}" />
|
||||
<#assign typeSelectorLabel = "${i18n().organization_type}" />
|
||||
<#assign buttonText = "${i18n().leadership_role}" />
|
||||
<#assign genericLabel = "${i18n().organization_capitalized}" />
|
||||
|
||||
<#assign acTypes = "{activity: 'http://xmlns.com/foaf/0.1/Organization'}" />
|
||||
|
||||
<#--Each of the two stage forms will include the form below-->
|
||||
<#include "addRoleToPersonTwoStage.ftl">
|
|
@ -21,6 +21,8 @@ roleExamples-->
|
|||
<#assign roleDescriptor = "${i18n().membership}" />
|
||||
<#assign typeSelectorLabel = "${i18n().membership_in}" />
|
||||
<#assign roleActivityVClass = "${i18n().organizations}" />
|
||||
<#assign genericLabel = "${i18n().organization_capitalized}" />
|
||||
<#assign acTypes = "{activity: 'http://xmlns.com/foaf/0.1/Organization'}" />
|
||||
|
||||
<#--Each of the two stage forms will include the form below-->
|
||||
<#include "addRoleToPersonTwoStage.ftl">
|
|
@ -17,10 +17,12 @@ showRoleLAbelField
|
|||
roleExamples-->
|
||||
|
||||
|
||||
<#--Variable assignments for Add Clinical Role To Person-->
|
||||
<#--Variable assignments-->
|
||||
<#assign roleDescriptor = "${i18n().organizer_of}" />
|
||||
<#assign typeSelectorLabel = "${i18n().organizer_of}" />
|
||||
<#assign buttonText = "${i18n().organizer_role}" />
|
||||
<#assign genericLabel = "${i18n().event_capitalized}" />
|
||||
<#assign acMultipleTypes = "'true'" />
|
||||
<#assign acTypes = "{activity: 'http://vivoweb.org/ontology/core#EventSeries,http://purl.org/NET/c4dm/event.owl#Event'}"
|
||||
|
||||
<#--Each of the two stage forms will include the form below-->
|
||||
<#include "addRoleToPersonTwoStage.ftl">
|
|
@ -20,6 +20,9 @@ roleExamples-->
|
|||
<#--Variable assignments for Add Clinical Role To Person-->
|
||||
<#assign roleDescriptor = "${i18n().outreach_comm_service}" />
|
||||
<#assign typeSelectorLabel = "${i18n().outreach_comm_service_in}" />
|
||||
<#assign genericLabel = "${i18n().organization_capitalized}" />
|
||||
|
||||
<#assign acTypes = "{activity: 'http://xmlns.com/foaf/0.1/Organization'}" />
|
||||
|
||||
|
||||
<#--Each of the two stage forms will include the form below-->
|
||||
|
|
|
@ -67,6 +67,9 @@ Set this flag on the input acUriReceiver where you would like this behavior to o
|
|||
<img src="${urls.images}/iconAlert.png" width="24" height="24" alert="${i18n().error_alert_icon}" />
|
||||
<p>
|
||||
<#--Checking if any required fields are empty-->
|
||||
<#if lvf.submissionErrorExists(editSubmission, "presentationType")>
|
||||
Please select a presentation type.
|
||||
</#if>
|
||||
<#if lvf.submissionErrorExists(editSubmission, "presentationLabel")>
|
||||
${i18n().select_or_enter_name}
|
||||
</#if>
|
||||
|
@ -104,28 +107,28 @@ Set this flag on the input acUriReceiver where you would like this behavior to o
|
|||
<select id="typeSelector" name="presentationType" acGroupName="presentation">
|
||||
<option value="" selected="selected">${i18n().select_one}</option>
|
||||
<#list presentationTypeOpts?keys as key>
|
||||
<option value="${key}" <#if presentationTypeValue = key>selected</#if>> <#if presentationTypeOpts[key] == "Other">${i18n().presentation_capitalized}<#else>${presentationTypeOpts[key]}</#if></option>
|
||||
<option value="${key}" <#if presentationTypeValue = key>selected</#if>><#if presentationTypeOpts[key] == "Other">${i18n().presentation_capitalized}<#else>${presentationTypeOpts[key]}</#if></option>
|
||||
</#list>
|
||||
</select>
|
||||
</p>
|
||||
|
||||
<div class="fullViewOnly">
|
||||
<p>
|
||||
<label for="presentation">### ${i18n().name_capitalized} ${requiredHint}</label>
|
||||
<label for="presentation">${i18n().presentation_capitalized} ${i18n().name_capitalized} ${requiredHint}</label>
|
||||
<input class="acSelector" size="50" type="text" id="presentation" acGroupName="presentation" name="presentationLabel" value="${presentationLabelValue}">
|
||||
<input class="display" type="hidden" id="presentationDisplay" acGroupName="presentation" name="presentationLabelDisplay" value="${presentationLabelDisplayValue}">
|
||||
</p>
|
||||
|
||||
<div class="acSelection" acGroupName="presentation">
|
||||
<p class="inline">
|
||||
<label></label>
|
||||
<label>${i18n().selected_presentation}:</label>
|
||||
<span class="acSelectionInfo"></span>
|
||||
<a href="" class="verifyMatch" title="${i18n().verify_match_capitalized}">(${i18n().verify_match_capitalized}</a> ${i18n().or}
|
||||
<a href="#" class="changeSelection" id="changeSelection">${i18n().change_selection})</a>
|
||||
</p>
|
||||
<input class="acUriReceiver" type="hidden" id="presentationUri" name="existingPresentation" value="${existingPresentationValue}" ${flagClearLabelForExisting}="true" />
|
||||
</div>
|
||||
<p><label for="roleLabel">${i18n().role_in} ### ${requiredHint} <span class="hint">(${i18n().presentation_hint})</span></label>
|
||||
|
||||
<p><label for="roleLabel">${i18n().role_in} ${i18n().presentation_capitalized} ${requiredHint} <span class="hint">(${i18n().presentation_hint})</span></label>
|
||||
<input size="50" type="text" id="roleLabel" name="roleLabel" value="${roleLabelValue}" />
|
||||
</p>
|
||||
<p>
|
||||
|
@ -143,7 +146,7 @@ Set this flag on the input acUriReceiver where you would like this behavior to o
|
|||
<input class="acUriReceiver" type="hidden" id="conferenceUri" name="existingConference" value="${conferenceValue}" ${flagClearLabelForExisting}="true" />
|
||||
</div>
|
||||
<p>
|
||||
<h4 class="label">${i18n().years_participation_in} ###</h4>
|
||||
<h4 class="label">${i18n().years_participating}</h4>
|
||||
</p>
|
||||
<#--Need to draw edit elements for dates here-->
|
||||
<#assign htmlForElements = editConfiguration.pageData.htmlForElements />
|
||||
|
@ -160,8 +163,6 @@ Set this flag on the input acUriReceiver where you would like this behavior to o
|
|||
|
||||
<input type="hidden" id="editKey" name="editKey" value="${editKey}"/>
|
||||
|
||||
</div>
|
||||
|
||||
<p class="submit">
|
||||
<input type="submit" class="submit" value="${submitButtonText}"/><span class="or"> ${i18n().or} </span>
|
||||
<a class="cancel" href="${cancelUrl}" title="${i18n().cancel_title}">${i18n().cancel_link}</a>
|
||||
|
@ -169,13 +170,6 @@ Set this flag on the input acUriReceiver where you would like this behavior to o
|
|||
|
||||
<p id="requiredLegend" class="requiredHint">* ${i18n().required_fields}</p>
|
||||
|
||||
<#-- hide the html that gets written, and use java script to pass the value between the two -->
|
||||
<div class="hidden">
|
||||
<#if htmlForElements?keys?seq_contains("yearAwarded")>
|
||||
${htmlForElements["yearAwarded"]}
|
||||
</#if>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
</section>
|
||||
|
@ -184,7 +178,7 @@ Set this flag on the input acUriReceiver where you would like this behavior to o
|
|||
<script type="text/javascript">
|
||||
var customFormData = {
|
||||
acUrl: '${urls.base}/autocomplete?tokenize=true&stem=true',
|
||||
acTypes: {conference: 'http://purl.org/ontology/bibo/Conference'},
|
||||
acTypes: {presentation: 'http://vivoweb.org/ontology/core#Presentation', conference: 'http://purl.org/ontology/bibo/Conference'},
|
||||
editMode: '${editMode}',
|
||||
defaultTypeName: 'presentation',
|
||||
multipleTypeNames: {presentation: 'presentation', conference: 'conference'},
|
||||
|
@ -210,6 +204,3 @@ ${scripts.add('<script type="text/javascript" src="${urls.base}/js/jquery-ui/js/
|
|||
'<script type="text/javascript" src="${urls.base}/js/browserUtils.js"></script>',
|
||||
'<script type="text/javascript" src="${urls.base}/js/jquery_plugins/jquery.bgiframe.pack.js"></script>',
|
||||
'<script type="text/javascript" src="${urls.base}/templates/freemarker/edit/forms/js/customFormWithAutocomplete.js"></script>')}
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -138,7 +138,6 @@ Set this flag on the input acUriReceiver where you would like this behavior to o
|
|||
</#list>
|
||||
</select>
|
||||
</p>
|
||||
<div class="fullViewOnly">
|
||||
<p>
|
||||
<label for="title">${i18n().title_capitalized} ${requiredHint}</label>
|
||||
<input class="acSelector" size="60" type="text" id="title" name="title" acGroupName="publication" value="${titleValue}" />
|
||||
|
@ -301,7 +300,6 @@ Set this flag on the input acUriReceiver where you would like this behavior to o
|
|||
</p>
|
||||
</div> <!-- end fieldsForNewPub -->
|
||||
|
||||
</div> <!-- end fullViewOnly -->
|
||||
<p class="submit">
|
||||
<input type="hidden" name = "editKey" value="${editKey}"/>
|
||||
<input type="submit" id="submit" value="${submitButtonText}"/><span class="or"> ${i18n().or} </span><a class="cancel" href="${cancelUrl}" title="${i18n().cancel_title}">${i18n().cancel_link}</a>
|
||||
|
@ -318,7 +316,7 @@ Set this flag on the input acUriReceiver where you would like this behavior to o
|
|||
sparqlForAcFilter: '${sparqlForAcFilter}',
|
||||
sparqlQueryUrl: '${sparqlQueryUrl}',
|
||||
acUrl: '${urls.base}/autocomplete?tokenize=true',
|
||||
acTypes: {collection: 'http://purl.org/ontology/bibo/Periodical', book: 'http://purl.org/ontology/bibo/Book', conference: 'http://purl.org/NET/c4dm/event.owl#Event', event: 'http://purl.org/NET/c4dm/event.owl#Event', editor: 'http://xmlns.com/foaf/0.1/Person', publisher: 'http://xmlns.com/foaf/0.1/Organization'},
|
||||
acTypes: {publication: 'http://purl.org/ontology/bibo/Document', collection: 'http://purl.org/ontology/bibo/Periodical', book: 'http://purl.org/ontology/bibo/Book', conference: 'http://purl.org/NET/c4dm/event.owl#Event', event: 'http://purl.org/NET/c4dm/event.owl#Event', editor: 'http://xmlns.com/foaf/0.1/Person', publisher: 'http://xmlns.com/foaf/0.1/Organization'},
|
||||
editMode: '${editMode}',
|
||||
defaultTypeName: 'publication', // used in repair mode to generate button text
|
||||
multipleTypeNames: {collection: 'publication', book: 'book', conference: 'conference', event: 'event', editor: 'editor', publisher: 'publisher'},
|
||||
|
|
|
@ -20,7 +20,10 @@ roleExamples-->
|
|||
<#--Variable assignments for Add Clinical Role To Person-->
|
||||
<#assign roleDescriptor = "${i18n().research_activity}" />
|
||||
<#assign typeSelectorLabel = "${i18n().research_activity_type}" />
|
||||
<#assign genericLabel = "${i18n().research_activity?capitalize}" />
|
||||
|
||||
<#assign acMultipleTypes = "'true'" />
|
||||
<#assign acTypes = "{activity: 'http://vivoweb.org/ontology/core#Project,http://vivoweb.org/ontology/core#Grant'}" />
|
||||
|
||||
<#--Each of the two stage forms will include the form below-->
|
||||
<#include "addRoleToPersonTwoStage.ftl">
|
|
@ -20,7 +20,10 @@ roleExamples-->
|
|||
<#--Variable assignments for Add Clinical Role To Person-->
|
||||
<#assign roleDescriptor = "${i18n().reviewer_of}" />
|
||||
<#assign typeSelectorLabel = "${i18n().reviewer_of}" />
|
||||
<#assign buttonText = "${i18n().reviewer_role}" />
|
||||
<#assign genericLabel = "${i18n().item_capitalized}" />
|
||||
|
||||
<#assign acTypes = "{activity: 'http://vivoweb.org/ontology/core#InformationResource'}" />
|
||||
|
||||
<#--Each of the two stage forms will include the form below-->
|
||||
<#include "addRoleToPersonTwoStage.ftl">
|
||||
<#include "addRoleToPersonTwoStage.ftl">
|
||||
|
||||
|
|
|
@ -153,9 +153,9 @@ Set this flag on the input acUriReceiver where you would like this behavior to o
|
|||
</p>
|
||||
|
||||
|
||||
<div class="fullViewOnly">
|
||||
<#-- <div class="fullViewOnly"> -->
|
||||
<p>
|
||||
<label for="activity">### ${i18n().name_capitalized} ${requiredHint}</label>
|
||||
<label for="activity">${genericLabel?capitalize} ${i18n().name_capitalized} ${requiredHint}</label>
|
||||
<input class="acSelector" size="50" type="text" id="activity" name="activityLabel" acGroupName="activity" value="${activityLabelValue}" />
|
||||
<input class="display" type="hidden" id="activityDisplay" acGroupName="activity" name="activityLabelDisplay" value="${activityLabelDisplayValue}">
|
||||
</p>
|
||||
|
@ -176,7 +176,7 @@ Set this flag on the input acUriReceiver where you would like this behavior to o
|
|||
</div>
|
||||
|
||||
<#if showRoleLabelField = true>
|
||||
<p><label for="roleLabel">${i18n().role_in} ### ${requiredHint} ${roleExamples}</label>
|
||||
<p><label for="roleLabel">${i18n().role_in} ${genericLabel?capitalize} ${requiredHint} ${roleExamples}</label>
|
||||
<input size="50" type="text" id="roleLabel" name="roleLabel" value="${roleLabel}" />
|
||||
</p>
|
||||
</#if>
|
||||
|
@ -188,7 +188,7 @@ Set this flag on the input acUriReceiver where you would like this behavior to o
|
|||
${htmlForElements["startField"]} ${yearHint}
|
||||
</#if>
|
||||
<#else>
|
||||
<h4 class="label">${i18n().years_participation_in} ### </h4>
|
||||
<h4 class="label">${i18n().years_participating} </h4>
|
||||
<#if htmlForElements?keys?seq_contains("startField")>
|
||||
<label class="dateTime" for="startField">${i18n().start_capitalized}</label>
|
||||
${htmlForElements["startField"]} ${yearHint}
|
||||
|
@ -199,7 +199,7 @@ Set this flag on the input acUriReceiver where you would like this behavior to o
|
|||
${htmlForElements["endField"]} ${yearHint}
|
||||
</#if>
|
||||
</#if>
|
||||
</div>
|
||||
<#-- </div> -->
|
||||
<p class="submit">
|
||||
<input type="hidden" id="editKey" name="editKey" value="${editKey}" />
|
||||
<input type="submit" id="submit" value="${submitButtonText}"/><span class="or"> ${i18n().or} </span><a class="cancel" href="${cancelUrl}" title="${i18n().cancel_title}">${i18n().cancel_link}</a>
|
||||
|
@ -214,7 +214,10 @@ Set this flag on the input acUriReceiver where you would like this behavior to o
|
|||
var customFormData = {
|
||||
acUrl: '${urls.base}/autocomplete?tokenize=true',
|
||||
editMode: '${editMode}',
|
||||
defaultTypeName: 'activity', // used in repair mode, to generate button text and org name field label
|
||||
acTypes: ${acTypes!},
|
||||
<#if acMultipleTypes??>acMultipleTypes: ${acMultipleTypes!},</#if>
|
||||
// used in repair mode: button text and org name label
|
||||
defaultTypeName: <#if genericLabel??>'${genericLabel}'<#else>'activity'</#if>,
|
||||
baseHref: '${urls.base}/individual?uri=',
|
||||
blankSentinel: '${blankSentinel}',
|
||||
flagClearLabelForExisting: '${flagClearLabelForExisting}'
|
||||
|
|
|
@ -20,7 +20,9 @@ roleExamples-->
|
|||
<#--Variable assignments for Add Service Provider Role To Person-->
|
||||
<#assign roleDescriptor = "${i18n().service_to_profession}" />
|
||||
<#assign typeSelectorLabel = "${i18n().service_to_profession_in}" />
|
||||
<#assign buttonText = "${i18n().service_provider_role}" />
|
||||
<#assign genericLabel = "${i18n().organization_capitalized}" />
|
||||
|
||||
<#assign acTypes = "{activity: 'http://xmlns.com/foaf/0.1/Organization'}" />
|
||||
|
||||
|
||||
<#--Each of the two stage forms will include the form below-->
|
||||
|
|
|
@ -22,5 +22,10 @@ roleExamples-->
|
|||
<#assign typeSelectorLabel = "${i18n().teaching_activity_type}" />
|
||||
<#assign roleExamples = "<span class='hint'> (${i18n().teaching_role_hint})</span>" />
|
||||
|
||||
<#assign genericLabel = "${i18n().teaching_activity?capitalize}" />
|
||||
|
||||
<#assign acMultipleTypes = "'true'" />
|
||||
<#assign acTypes = "{activity: 'http://purl.org/ontology/bibo/Conference,http://vivoweb.org/ontology/core#Course,http://purl.org/ontology/bibo/Workshop'}" />
|
||||
|
||||
<#--Each of the two stage forms will include the form below-->
|
||||
<#include "addRoleToPersonTwoStage.ftl">
|
|
@ -5,7 +5,7 @@ that don't load customFormWithAutocomplete.css still have access to these styles
|
|||
|
||||
.acSelection {
|
||||
display: none;
|
||||
margin-top: 2em;
|
||||
margin-top: 1em;
|
||||
}
|
||||
.acSelectionInfo {
|
||||
background-color: #d9d9d9;
|
||||
|
|
|
@ -131,7 +131,8 @@ Set this flag on the input acUriReceiver where you would like this behavior to o
|
|||
|
||||
<div class="acSelection" acGroupName="advisee" id="adviseeAcSelection">
|
||||
<p class="inline">
|
||||
<label>${i18n().selected_advisee}/span>
|
||||
<label>${i18n().selected_advisee}
|
||||
<span class="acSelectionInfo"></span>
|
||||
<a href="" class="verifyMatch" title="${i18n().verify_match_capitalized}">(${i18n().verify_match_capitalized}</a> ${i18n().or}
|
||||
<a href="#" class="changeSelection" id="changeSelection">${i18n().change_selection})</a>
|
||||
</p>
|
||||
|
|
|
@ -111,7 +111,7 @@ Set this flag on the input acUriReceiver where you would like this behavior to o
|
|||
<p class="inline">
|
||||
<label for="orgType">${i18n().org_type_capitalized} ${requiredHint}</label>
|
||||
<#assign orgTypeOpts = editConfiguration.pageData.orgType />
|
||||
<select id="typeSelector" name="orgType" acGroupName="org">
|
||||
<select id="typeSelector" name="orgType" acGroupName="organization">
|
||||
<option value="" selected="selected">${i18n().select_one}</option>
|
||||
<#list orgTypeOpts?keys as key>
|
||||
<#if orgTypeValue = key>
|
||||
|
@ -122,16 +122,14 @@ Set this flag on the input acUriReceiver where you would like this behavior to o
|
|||
</#list>
|
||||
</select>
|
||||
</p>
|
||||
|
||||
<div class="fullViewOnly">
|
||||
|
||||
<p>
|
||||
<label for="relatedIndLabel">### ${i18n().name_capitalized} ${requiredHint}</label>
|
||||
<input class="acSelector" size="50" type="text" id="relatedIndLabel" name="orgLabel" acGroupName="org" value="${orgLabelValue}" />
|
||||
<input class="display" type="hidden" id="orgDisplay" acGroupName="org" name="orgLabelDisplay" value="${orgLabelDisplayValue}">
|
||||
<label for="relatedIndLabel">${i18n().organization_capitalized} ${i18n().name_capitalized} ${requiredHint}</label>
|
||||
<input class="acSelector" size="50" type="text" id="relatedIndLabel" name="orgLabel" acGroupName="organization" value="${orgLabelValue}" />
|
||||
<input class="display" type="hidden" id="orgDisplay" acGroupName="organization" name="orgLabelDisplay" value="${orgLabelDisplayValue}">
|
||||
</p>
|
||||
|
||||
<div class="acSelection" acGroupName="org">
|
||||
<div class="acSelection" acGroupName="organization">
|
||||
<p class="inline">
|
||||
<label>${i18n().selected_organization}:</label>
|
||||
<span class="acSelectionInfo"></span>
|
||||
|
@ -150,7 +148,7 @@ Set this flag on the input acUriReceiver where you would like this behavior to o
|
|||
</#list>
|
||||
</select>
|
||||
<p>
|
||||
<label for="dept">${i18n().dept_or_school_name} ###</label>
|
||||
<label for="dept">${i18n().dept_or_school_name} ${i18n().organization_capitalized}</label>
|
||||
<input size="50" type="text" id="dept" name="dept" value="${deptValue}" />
|
||||
</p>
|
||||
|
||||
|
@ -191,7 +189,6 @@ Set this flag on the input acUriReceiver where you would like this behavior to o
|
|||
</#if>
|
||||
|
||||
<#--End draw elements-->
|
||||
</div>
|
||||
<input type="hidden" id="editKey" name="editKey" value="${editKey}"/>
|
||||
<p class="submit">
|
||||
<input type="submit" id="submit" value="${submitButtonText}"/><span class="or"> ${i18n().or} </span>
|
||||
|
@ -207,6 +204,7 @@ Set this flag on the input acUriReceiver where you would like this behavior to o
|
|||
var customFormData = {
|
||||
acUrl: '${urls.base}/autocomplete?tokenize=true&stem=true',
|
||||
editMode: '${editMode}',
|
||||
acTypes: {organization: 'http://xmlns.com/foaf/0.1/Organization'},
|
||||
defaultTypeName: 'organization',
|
||||
baseHref: '${urls.base}/individual?uri=',
|
||||
blankSentinel: '${blankSentinel}',
|
||||
|
|
|
@ -103,13 +103,13 @@ Set this flag on the input acUriReceiver where you would like this behavior to o
|
|||
<#list orgTypeOpts?keys as key>
|
||||
<#if orgTypeValue = key >
|
||||
<span class="readOnly" id="typeSelectorSpan">${orgTypeOpts[key]}</span>
|
||||
<input type="hidden" id="typeSelectorInput" name="orgType" acGroupName="org" value="${orgTypeValue}" >
|
||||
<input type="hidden" id="typeSelectorInput" name="orgType" acGroupName="organization" value="${orgTypeValue}" >
|
||||
</#if>
|
||||
</#list>
|
||||
<#else>
|
||||
</#if>
|
||||
-->
|
||||
<select id="typeSelector" name="orgType" acGroupName="org">
|
||||
<select id="typeSelector" name="orgType" acGroupName="organization">
|
||||
<option value="" selected="selected">${i18n().select_one}</option>
|
||||
<#list orgTypeOpts?keys as key>
|
||||
<option value="${key}" <#if orgTypeValue = key>selected</#if>>${orgTypeOpts[key]}</option>
|
||||
|
@ -117,13 +117,12 @@ Set this flag on the input acUriReceiver where you would like this behavior to o
|
|||
</select>
|
||||
</p>
|
||||
|
||||
<div class="fullViewOnly">
|
||||
<p>
|
||||
<label for="relatedIndLabel">### ${i18n().name_capitalized} ${requiredHint}</label>
|
||||
<input type="text" name="orgLabel" id="orgLabel" acGroupName="org" size="50" class="acSelector" value="${orgLabelValue}" >
|
||||
<input class="display" type="hidden" id="orgDisplay" acGroupName="org" name="orgLabelDisplay" value="${orgLabelDisplayValue}">
|
||||
<label for="relatedIndLabel">${i18n().organization_capitalized} ${i18n().name_capitalized} ${requiredHint}</label>
|
||||
<input type="text" name="orgLabel" id="orgLabel" acGroupName="organization" size="50" class="acSelector" value="${orgLabelValue}" >
|
||||
<input class="display" type="hidden" id="orgDisplay" acGroupName="organization" name="orgLabelDisplay" value="${orgLabelDisplayValue}">
|
||||
</p>
|
||||
<div class="acSelection" acGroupName="org">
|
||||
<div class="acSelection" acGroupName="organization">
|
||||
<p class="inline">
|
||||
<label>${i18n().selected_organization}:</label>
|
||||
<span class="acSelectionInfo"></span>
|
||||
|
@ -160,7 +159,6 @@ Set this flag on the input acUriReceiver where you would like this behavior to o
|
|||
|
||||
<input type="hidden" name = "editKey" value="${editKey}" role="input"/>
|
||||
|
||||
</div>
|
||||
<p class="submit">
|
||||
<#if editMode == "edit">
|
||||
<input type="submit" id="submit" name="submit-${formAction}" value="${submitButtonText}" class="submit" />
|
||||
|
@ -177,6 +175,7 @@ Set this flag on the input acUriReceiver where you would like this behavior to o
|
|||
<script type="text/javascript">
|
||||
var customFormData = {
|
||||
acUrl: '${urls.base}/autocomplete?tokenize=true',
|
||||
acTypes: {organization: 'http://xmlns.com/foaf/0.1/Organization'},
|
||||
editMode: '${editMode}',
|
||||
defaultTypeName: 'organization', // used in repair mode, to generate button text and org name field label
|
||||
baseHref: '${urls.base}/individual?uri=',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue