Merge branch 'develop' into feature/fauxEditing
This commit is contained in:
commit
131f0a8c03
14 changed files with 116 additions and 34 deletions
|
@ -3,33 +3,38 @@
|
|||
:application
|
||||
a <java:edu.cornell.mannlib.vitro.webapp.application.ApplicationImpl> ,
|
||||
<java:edu.cornell.mannlib.vitro.webapp.modules.Application> ;
|
||||
:hasSearchEngine :searchEngineWrapper ;
|
||||
:hasImageProcessor :imageProcessor ;
|
||||
:hasFileStorage :fileStorage ;
|
||||
:hasContentTripleSource :contentTripleSource ;
|
||||
:hasConfigurationTripleSource :configurationTripleSource .
|
||||
:hasSearchEngine :instrumentedSearchEngineWrapper ;
|
||||
:hasImageProcessor :jaiImageProcessor ;
|
||||
:hasFileStorage :ptiFileStorage ;
|
||||
:hasContentTripleSource :sdbContentTripleSource ;
|
||||
:hasConfigurationTripleSource :tdbConfigurationTripleSource ;
|
||||
:hasTBoxReasonerModule :pelletTBoxReasonerModule .
|
||||
|
||||
:imageProcessor
|
||||
:jaiImageProcessor
|
||||
a <java:edu.cornell.mannlib.vitro.webapp.imageprocessor.jai.JaiImageProcessor> ,
|
||||
<java:edu.cornell.mannlib.vitro.webapp.modules.imageProcessor.ImageProcessor> .
|
||||
|
||||
:fileStorage
|
||||
:ptiFileStorage
|
||||
a <java:edu.cornell.mannlib.vitro.webapp.filestorage.impl.FileStorageImplWrapper> ,
|
||||
<java:edu.cornell.mannlib.vitro.webapp.modules.fileStorage.FileStorage> .
|
||||
|
||||
:searchEngineWrapper
|
||||
:instrumentedSearchEngineWrapper
|
||||
a <java:edu.cornell.mannlib.vitro.webapp.searchengine.InstrumentedSearchEngineWrapper> ,
|
||||
<java:edu.cornell.mannlib.vitro.webapp.modules.searchEngine.SearchEngine> ;
|
||||
:wraps :searchEngine .
|
||||
:wraps :solrSearchEngine .
|
||||
|
||||
:searchEngine
|
||||
:solrSearchEngine
|
||||
a <java:edu.cornell.mannlib.vitro.webapp.searchengine.solr.SolrSearchEngine> ,
|
||||
<java:edu.cornell.mannlib.vitro.webapp.modules.searchEngine.SearchEngine> .
|
||||
|
||||
:contentTripleSource
|
||||
:sdbContentTripleSource
|
||||
a <java:edu.cornell.mannlib.vitro.webapp.triplesource.impl.sdb.ContentTripleSourceSDB> ,
|
||||
<java:edu.cornell.mannlib.vitro.webapp.modules.tripleSource.ContentTripleSource> .
|
||||
|
||||
:configurationTripleSource
|
||||
:tdbConfigurationTripleSource
|
||||
a <java:edu.cornell.mannlib.vitro.webapp.triplesource.impl.tdb.ConfigurationTripleSourceTDB> ,
|
||||
<java:edu.cornell.mannlib.vitro.webapp.modules.tripleSource.ConfigurationTripleSource> .
|
||||
<java:edu.cornell.mannlib.vitro.webapp.modules.tripleSource.ConfigurationTripleSource> .
|
||||
|
||||
:pelletTBoxReasonerModule
|
||||
a <java:edu.cornell.mannlib.vitro.webapp.tboxreasoner.impl.pellet.PelletTBoxReasonerModule> ,
|
||||
<java:edu.cornell.mannlib.vitro.webapp.modules.tboxreasoner.TBoxReasonerModule> .
|
|
@ -37,6 +37,7 @@ edu.cornell.mannlib.vitro.webapp.servlet.setup.FileGraphSetup
|
|||
# Invokes process to perform updates to align with ontology changes if needed -->
|
||||
edu.cornell.mannlib.vitro.webapp.servlet.setup.UpdateKnowledgeBase
|
||||
|
||||
edu.cornell.mannlib.vitro.webapp.application.ApplicationImpl$ReasonersSetup
|
||||
edu.cornell.mannlib.vitro.webapp.servlet.setup.SimpleReasonerSetup
|
||||
|
||||
# Must run after JenaDataSourceSetup
|
||||
|
|
|
@ -134,7 +134,7 @@ $(document).ready(function(){
|
|||
//Check to see if this index hasn't already been employed
|
||||
if(!indexFound) {
|
||||
//if this index hasn't already been employed then utilize it
|
||||
html += "<li><a href='" + urlsBase + "/individual"
|
||||
html += "<li><a href='" + urlsBase + "/individual?uri="
|
||||
+ academicDepartments[index].uri + "'>"
|
||||
+ academicDepartments[index].name + "</a></li>";
|
||||
//add this index to the set of already used indices
|
||||
|
@ -146,7 +146,7 @@ $(document).ready(function(){
|
|||
}
|
||||
else {
|
||||
for ( var i=0;i<deptNbr;i++) {
|
||||
html += "<li><a href='" + urlsBase + "/individual"
|
||||
html += "<li><a href='" + urlsBase + "/individual?uri="
|
||||
+ academicDepartments[i].uri + "'>"
|
||||
+ academicDepartments[i].name + "</a></li>";
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
<#assign visRequestingTemplate = "foaf-person-2column">
|
||||
<#--add the VIVO-ORCID interface -->
|
||||
<#include "individual-orcidInterface.ftl">
|
||||
<section id="individual-intro" class="vcard person" role="region">
|
||||
<section itemscope itemtype="http://schema.org/Person" id="individual-intro" class="vcard person" role="region">
|
||||
<section id="share-contact" role="region">
|
||||
<#-- Image -->
|
||||
<#assign individualImage>
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
</#if>
|
||||
</#if>
|
||||
</#if>
|
||||
<section id="individual-intro" class="vcard person" role="region">
|
||||
<section itemscope itemtype="http://schema.org/Person" id="individual-intro" class="vcard person" role="region">
|
||||
<section id="label-title" <#if editable>style="width:45%"</#if> >
|
||||
<header>
|
||||
<#if relatedSubject??>
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
<ul id="phone-list" role="list">
|
||||
<#list phone.statements as statement>
|
||||
<li role="listitem" <#if editable>style="padding-left:10px;"</#if>>
|
||||
${statement.number!}
|
||||
<span itemprop="telephone">${statement.number!}</span>
|
||||
<@p.editingLinks "${phone.localName}" "${phone.name}" statement editable phone.rangeUri />
|
||||
</li>
|
||||
</#list>
|
||||
|
@ -65,11 +65,11 @@
|
|||
<#list email.statements as statement>
|
||||
<li role="listitem" <#if editable>style="padding-left:10px;"</#if>>
|
||||
|
||||
<a class="email" href="mailto:${statement.emailAddress!}" title="${i18n().email}">${statement.emailAddress!}</a>
|
||||
<a itemprop="email" class="email" href="mailto:${statement.emailAddress!}" title="${i18n().email}">${statement.emailAddress!}</a>
|
||||
<@p.editingLinks "${email.localName}" "${email.name}" statement editable email.rangeUri />
|
||||
</li>
|
||||
</#list>
|
||||
</ul>
|
||||
</#if>
|
||||
</#if>
|
||||
</#macro>
|
||||
</#macro>
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
<ul id="individual-phone" role="list" <#if editable>style="list-style:none;margin-left:0;"</#if>>
|
||||
<#list phone.statements as statement>
|
||||
<li role="listitem">
|
||||
${statement.number!}
|
||||
<span itemprop="telephone">${statement.number!}</span>
|
||||
<@p.editingLinks "${phone.localName}" "${phone.name}" statement editable phone.rangeUri />
|
||||
</li>
|
||||
</#list>
|
||||
|
@ -46,7 +46,7 @@
|
|||
<ul id="${listId}" class="individual-emails" role="list" <#if editable>style="list-style:none;margin-left:0;"</#if>>
|
||||
<#list email.statements as statement>
|
||||
<li role="listitem">
|
||||
<a class="email" href="mailto:${statement.emailAddress!}" title="${i18n().email}">${statement.emailAddress!}</a>
|
||||
<a itemprop="email" class="email" href="mailto:${statement.emailAddress!}" title="${i18n().email}">${statement.emailAddress!}</a>
|
||||
<@p.editingLinks "${email.localName}" "${email.name}" statement editable email.rangeUri />
|
||||
</li>
|
||||
</#list>
|
||||
|
|
|
@ -8,15 +8,21 @@
|
|||
|
||||
<#import "lib-sequence.ftl" as s>
|
||||
<#import "lib-datetime.ftl" as dt>
|
||||
|
||||
<@showPosition statement />
|
||||
|
||||
<#-- Use a macro to keep variable assignments local; otherwise the values carry over to the
|
||||
next statement -->
|
||||
<#macro showPosition statement>
|
||||
|
||||
<#local posTitle>
|
||||
<span itemprop="jobTitle">${statement.positionTitle!statement.hrJobTitle!}</span>
|
||||
</#local>
|
||||
<#local linkedIndividual>
|
||||
<#if statement.org??>
|
||||
<a href="${profileUrl(statement.uri("org"))}" title="${i18n().organization_name}">${statement.orgName}</a>
|
||||
<span itemprop="worksFor" itemscope itemtype="http://schema.org/Organization">
|
||||
<a itemprop="name" href="${profileUrl(statement.uri("org"))}" title="${i18n().organization_name}">${statement.orgName}</a>
|
||||
</span>
|
||||
<#else>
|
||||
<#-- This shouldn't happen, but we must provide for it -->
|
||||
<a href="${profileUrl(statement.uri("position"))}" title="${i18n().missing_organization}">${i18n().missing_organization}</a>
|
||||
|
@ -26,10 +32,12 @@
|
|||
For now, we are only displaying the parent in the list view. -->
|
||||
<#local middleOrganization>
|
||||
<#if statement.middleOrg??>
|
||||
<a href="${profileUrl(statement.uri("middleOrg"))}" title="${i18n().middle_organization}">${statement.middleOrgName!}</a>
|
||||
<span itemprop="worksFor" itemscope itemtype="http://schema.org/Organization">
|
||||
<a itemprop="name" href="${profileUrl(statement.uri("middleOrg"))}" title="${i18n().middle_organization}">${statement.middleOrgName!}</a>
|
||||
</span>
|
||||
</#if>
|
||||
</#local>
|
||||
|
||||
<@s.join [ statement.positionTitle!statement.hrJobTitle!, linkedIndividual, middleOrganization! ]/> <@dt.yearIntervalSpan "${statement.dateTimeStart!}" "${statement.dateTimeEnd!}" />
|
||||
<@s.join [ posTitle, linkedIndividual, middleOrganization! ]/> <@dt.yearIntervalSpan "${statement.dateTimeStart!}" "${statement.dateTimeEnd!}" />
|
||||
|
||||
</#macro>
|
||||
</#macro>
|
||||
|
|
|
@ -20,7 +20,7 @@ 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 genericLabel = "Collection or Series" />
|
||||
|
||||
<#assign acTypes = "{activity: 'http://purl.org/ontology/bibo/Collection'}" />
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
<#if (class.uri?contains("FacultyMember")) >
|
||||
<#assign foundClassGroup = true />
|
||||
<#if (class.individualCount > 0) >
|
||||
<script>var facultyMemberCount = ${class.individualCount?string?replace(",","")};</script>
|
||||
<script>var facultyMemberCount = ${class.individualCount?string?replace(",","")?replace(".","")};</script>
|
||||
<#else>
|
||||
<script>var facultyMemberCount = 0;</script>
|
||||
</#if>
|
||||
|
@ -165,8 +165,7 @@ var academicDepartments = [
|
|||
<#list academicDeptDG as resultRow>
|
||||
<#assign uri = resultRow["theURI"] />
|
||||
<#assign label = resultRow["name"] />
|
||||
<#assign localName = uri?substring(uri?last_index_of("/")) />
|
||||
{"uri": "${localName}", "name": "${label}"}<#if (resultRow_has_next)>,</#if>
|
||||
{"uri": "${uri?url}", "name": "${label}"}<#if (resultRow_has_next)>,</#if>
|
||||
</#list>
|
||||
</#if>
|
||||
];
|
||||
|
|
|
@ -1010,6 +1010,54 @@ local:webpageInfoConfig a :ObjectPropertyDisplayConfig ;
|
|||
vitro:customEntryFormAnnot "edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.generators.ManageWebpagesForIndividualGenerator"^^<http://www.w3.org/2001/XMLSchema#string> ;
|
||||
:propertyGroup <http://vivoweb.org/ontology#vitroPropertyGroupoverview> .
|
||||
|
||||
local:webpageSoftwareContext a :ConfigContext ;
|
||||
:hasConfiguration local:webpageSoftwareConfig ;
|
||||
:configContextFor <http://purl.obolibrary.org/obo/ARG_2000028> ;
|
||||
:qualifiedByDomain <http://purl.obolibrary.org/obo/ERO_0000071> ;
|
||||
:qualifiedByRoot <http://www.w3.org/2006/vcard/ns#Kind> ;
|
||||
:qualifiedBy <http://www.w3.org/2006/vcard/ns#URL> .
|
||||
|
||||
local:webpageSoftwareConfig a :ObjectPropertyDisplayConfig ;
|
||||
:listViewConfigFile "listViewConfig-webpage.xml"^^xsd:string ;
|
||||
:displayName "webpage" ;
|
||||
vitro:displayRankAnnot 40;
|
||||
vitro:hiddenFromDisplayBelowRoleLevelAnnot role:public ;
|
||||
vitro:prohibitedFromUpdateBelowRoleLevelAnnot role:public ;
|
||||
vitro:customEntryFormAnnot "edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.generators.ManageWebpagesForIndividualGenerator"^^<http://www.w3.org/2001/XMLSchema#string> ;
|
||||
:propertyGroup <http://vivoweb.org/ontology#vitroPropertyGroupoverview> .
|
||||
|
||||
local:webpageFacilityContext a :ConfigContext ;
|
||||
:hasConfiguration local:webpageFacilityConfig ;
|
||||
:configContextFor <http://purl.obolibrary.org/obo/ARG_2000028> ;
|
||||
:qualifiedByDomain <http://vivoweb.org/ontology/core#Facility> ;
|
||||
:qualifiedByRoot <http://www.w3.org/2006/vcard/ns#Kind> ;
|
||||
:qualifiedBy <http://www.w3.org/2006/vcard/ns#URL> .
|
||||
|
||||
local:webpageFacilityConfig a :ObjectPropertyDisplayConfig ;
|
||||
:listViewConfigFile "listViewConfig-webpage.xml"^^xsd:string ;
|
||||
:displayName "webpage" ;
|
||||
vitro:displayRankAnnot 40;
|
||||
vitro:hiddenFromDisplayBelowRoleLevelAnnot role:public ;
|
||||
vitro:prohibitedFromUpdateBelowRoleLevelAnnot role:public ;
|
||||
vitro:customEntryFormAnnot "edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.generators.ManageWebpagesForIndividualGenerator"^^<http://www.w3.org/2001/XMLSchema#string> ;
|
||||
:propertyGroup <http://vivoweb.org/ontology#vitroPropertyGroupoverview> .
|
||||
|
||||
local:webpageProjectContext a :ConfigContext ;
|
||||
:hasConfiguration local:webpageProjectConfig ;
|
||||
:configContextFor <http://purl.obolibrary.org/obo/ARG_2000028> ;
|
||||
:qualifiedByDomain <http://vivoweb.org/ontology/core#Project> ;
|
||||
:qualifiedByRoot <http://www.w3.org/2006/vcard/ns#Kind> ;
|
||||
:qualifiedBy <http://www.w3.org/2006/vcard/ns#URL> .
|
||||
|
||||
local:webpageProjectConfig a :ObjectPropertyDisplayConfig ;
|
||||
:listViewConfigFile "listViewConfig-webpage.xml"^^xsd:string ;
|
||||
:displayName "webpage" ;
|
||||
vitro:displayRankAnnot 40;
|
||||
vitro:hiddenFromDisplayBelowRoleLevelAnnot role:public ;
|
||||
vitro:prohibitedFromUpdateBelowRoleLevelAnnot role:public ;
|
||||
vitro:customEntryFormAnnot "edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.generators.ManageWebpagesForIndividualGenerator"^^<http://www.w3.org/2001/XMLSchema#string> ;
|
||||
:propertyGroup <http://vivoweb.org/ontology#vitroPropertyGroupoverview> .
|
||||
|
||||
local:webpageEventContext a :ConfigContext ;
|
||||
:hasConfiguration local:webpageEventConfig ;
|
||||
:configContextFor <http://purl.obolibrary.org/obo/ARG_2000028> ;
|
||||
|
@ -1027,6 +1075,22 @@ local:webpageEventConfig a :ObjectPropertyDisplayConfig ;
|
|||
vitro:customEntryFormAnnot "edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.generators.ManageWebpagesForIndividualGenerator"^^<http://www.w3.org/2001/XMLSchema#string> ;
|
||||
:propertyGroup <http://vivoweb.org/ontology#vitroPropertyGroupoverview> .
|
||||
|
||||
local:webpageEventSeriesContext a :ConfigContext ;
|
||||
:hasConfiguration local:webpageEventSeriesConfig ;
|
||||
:configContextFor <http://purl.obolibrary.org/obo/ARG_2000028> ;
|
||||
:qualifiedByDomain <http://vivoweb.org/ontology/core#EventSeries> ;
|
||||
:qualifiedByRoot <http://www.w3.org/2006/vcard/ns#Kind> ;
|
||||
:qualifiedBy <http://www.w3.org/2006/vcard/ns#URL> .
|
||||
|
||||
local:webpageEventSeriesConfig a :ObjectPropertyDisplayConfig ;
|
||||
:listViewConfigFile "listViewConfig-webpage.xml"^^xsd:string ;
|
||||
:displayName "webpage" ;
|
||||
vitro:displayRankAnnot 40;
|
||||
vitro:hiddenFromDisplayBelowRoleLevelAnnot role:public ;
|
||||
vitro:prohibitedFromUpdateBelowRoleLevelAnnot role:public ;
|
||||
vitro:customEntryFormAnnot "edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.generators.ManageWebpagesForIndividualGenerator"^^<http://www.w3.org/2001/XMLSchema#string> ;
|
||||
:propertyGroup <http://vivoweb.org/ontology#vitroPropertyGroupoverview> .
|
||||
|
||||
local:fullNameContext a :ConfigContext ;
|
||||
:hasConfiguration local:fullNameConfig ;
|
||||
:configContextFor <http://purl.obolibrary.org/obo/ARG_2000028> ;
|
||||
|
|
|
@ -53,7 +53,7 @@ public class AddEditorRoleToPersonGenerator extends AddRoleToPersonTwoStageGener
|
|||
|
||||
/** Do not show the role label field for the AddEditorRoleToPerson form */
|
||||
@Override
|
||||
boolean isShowRoleLabelField() { return false; }
|
||||
boolean isShowRoleLabelField() { return true; }
|
||||
|
||||
/*
|
||||
* Use the methods below to change the date/time precision in the
|
||||
|
|
|
@ -37,6 +37,7 @@ public class IndividualTemplateModel extends BaseIndividualTemplateModel {
|
|||
private static final String CREDENTIAL_CLASS = "http://vivoweb.org/ontology/core#Credential";
|
||||
private static final String DTP_CLASS = "http://vivoweb.org/ontology/core#DateTimeValuePrecision";
|
||||
private static final String ORGANIZATION_CLASS = FOAF + "Organization";
|
||||
private static final String EVENT_CLASS = "http://purl.org/NET/c4dm/event.owl#Event";
|
||||
private static final String BASE_VISUALIZATION_URL =
|
||||
UrlBuilder.getUrl(Route.VISUALIZATION_SHORT.path());
|
||||
|
||||
|
@ -79,6 +80,10 @@ public class IndividualTemplateModel extends BaseIndividualTemplateModel {
|
|||
return isVClass(ORGANIZATION_CLASS);
|
||||
}
|
||||
|
||||
public boolean event() {
|
||||
return isVClass(EVENT_CLASS);
|
||||
}
|
||||
|
||||
public String coAuthorVisUrl() {
|
||||
String url = BASE_VISUALIZATION_URL + "/" + VisualizationFrameworkConstants.COAUTHORSHIP_VIS_SHORT_URL + "/";
|
||||
return getVisUrl(url);
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
<#--add the VIVO-ORCID interface -->
|
||||
<#include "individual-orcidInterface.ftl">
|
||||
|
||||
<section id="individual-intro" class="vcard person" role="region">
|
||||
<section itemscope itemtype="http://schema.org/Person" id="individual-intro" class="vcard person" role="region">
|
||||
|
||||
<section id="share-contact" role="region">
|
||||
<!-- Image -->
|
||||
|
@ -72,7 +72,7 @@
|
|||
<#else>
|
||||
<h1 class="vcard foaf-person">
|
||||
<#-- Label -->
|
||||
<span class="fn"><@p.label individual editable labelCount localesCount/></span>
|
||||
<span itemprop="name" class="fn"><@p.label individual editable labelCount localesCount/></span>
|
||||
|
||||
<#-- Display preferredTitle if it exists; otherwise mostSpecificTypes -->
|
||||
<#assign title = propertyGroups.pullProperty("http://purl.obolibrary.org/obo/ARG_2000028","http://www.w3.org/2006/vcard/ns#Title")!>
|
||||
|
@ -84,7 +84,7 @@
|
|||
<@p.verboseDisplay title />
|
||||
</#if>
|
||||
<#list title.statements as statement>
|
||||
<span class="display-title<#if editable>-editable</#if>">${statement.preferredTitle}</span>
|
||||
<span itemprop="jobTitle" class="display-title<#if editable>-editable</#if>">${statement.preferredTitle}</span>
|
||||
<@p.editingLinks "${title.localName}" "${title.name}" statement editable title.rangeUri />
|
||||
</#list>
|
||||
</#if>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue