VIVO-112: and the slog continues...
This commit is contained in:
parent
213f8ffd91
commit
50c53a62e6
12 changed files with 48 additions and 42 deletions
|
@ -30,7 +30,7 @@
|
|||
?subject ?property ?authorship .
|
||||
?authorship core:relates ?infoResource .
|
||||
?infoResource a bibo:Document .
|
||||
?infoResource rdfs:label ?infoResourceName
|
||||
?infoResource rdfs:label ?infoResourceName .
|
||||
|
||||
OPTIONAL { ?infoResource bibo:volume ?volume }
|
||||
OPTIONAL { ?infoResource bibo:pageStart ?startPage }
|
||||
|
@ -49,9 +49,7 @@
|
|||
OPTIONAL { ?infoResource core:partOf ?partOfObj .
|
||||
?partOfObj rdfs:label ?partOf
|
||||
}
|
||||
OPTIONAL { ?infoResource vitro:mostSpecificType ?subclass .
|
||||
?subclass rdfs:subClassOf core:InformationResource
|
||||
}
|
||||
OPTIONAL { ?infoResource vitro:mostSpecificType ?subclass }
|
||||
OPTIONAL { ?infoResource core:hasPublicationVenue ?publishedIn .
|
||||
?publishedIn rdfs:label ?journal
|
||||
}
|
||||
|
@ -67,12 +65,14 @@
|
|||
</query-select>
|
||||
|
||||
<query-construct>
|
||||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX bibo: <http://purl.org/ontology/bibo/>
|
||||
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
||||
CONSTRUCT {
|
||||
?subclass rdfs:subClassOf core:InformationResource
|
||||
?infoResource a bibo:Document .
|
||||
?infoResource vitro:mostSpecificType ?subclass
|
||||
} WHERE {
|
||||
?subclass rdfs:subClassOf core:InformationResource
|
||||
?infoResource a bibo:Document .
|
||||
?infoResource vitro:mostSpecificType ?subclass
|
||||
}
|
||||
</query-construct>
|
||||
|
||||
|
|
|
@ -122,19 +122,19 @@ $(document).ready(function(){
|
|||
|
||||
// if there are no selected pubs, hide the manage link; same for grants
|
||||
// and affiliated people on the org profile page
|
||||
if ( $('ul#authorInAuthorshipList').children('li').length < 1 && $('h3#authorInAuthorship').attr('class') != "hiddenPubs" ) {
|
||||
if ( $('ul#relatedBy-Authorship-List').children('li').length < 1 && $('h3#relatedBy-Authorship').attr('class') != "hiddenPubs" ) {
|
||||
$('a#managePubLink').hide();
|
||||
}
|
||||
|
||||
if ( $('ul#hasResearcherRoleList').children('li').length < 1 &&
|
||||
$('ul#hasPrincipalInvestigatorRoleList').children('li').length < 1 &&
|
||||
$('ul#hasCo-PrincipalInvestigatorRoleList').children('li').length < 1 &&
|
||||
$('ul#hasInvestigatorRoleList').children('li').length < 1 &&
|
||||
$('h3#hasResearcherRole').attr('class') != "hiddenGrants" ) {
|
||||
if ( $('ul#RO_0000053-ResearcherRole-List').children('li').length < 1 &&
|
||||
$('ul#RO_0000053-PrincipalInvestigatorRole-List').children('li').length < 1 &&
|
||||
$('ul#RO_0000053-CoPrincipalInvestigatorRole-List').children('li').length < 1 &&
|
||||
$('ul#RO_0000053-InvestigatorRole-List').children('li').length < 1 &&
|
||||
$('h3#RO_0000053-ResearcherRole').attr('class') != "hiddenGrants" ) {
|
||||
$('a#manageGrantLink').hide();
|
||||
}
|
||||
|
||||
if ( $('ul#organizationForPositionList').children('li').length < 1 && $('h3#organizationForPosition').attr('class') != "hiddenPeople" ) {
|
||||
if ( $('ul#relatedBy-Position-List').children('li').length < 1 && $('h3#relatedBy-Position').attr('class') != "hiddenPeople" ) {
|
||||
$('a#managePeopleLink').hide();
|
||||
}
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
${affiliatedResearchAreas!}
|
||||
</section> <!-- #individual-info -->
|
||||
</section> <!-- #individual-intro -->
|
||||
<!--postindiviudal overiew tfl-->
|
||||
<!--postindividual overiew ftl-->
|
||||
</#assign>
|
||||
|
||||
<#include "individual-vitro.ftl">
|
||||
|
|
|
@ -18,8 +18,8 @@
|
|||
<span class="hideThis"> </span>
|
||||
<script type="text/javascript" >
|
||||
$('span.hideThis').parent().parent().addClass("hideThis");
|
||||
if ( $('h3#authorInAuthorship').attr('class').length == 0 ) {
|
||||
$('h3#authorInAuthorship').addClass('hiddenPubs');
|
||||
if ( $('h3#relatedBy-Authorship').attr('class').length == 0 ) {
|
||||
$('h3#relatedBy-Authorship').addClass('hiddenPubs');
|
||||
}
|
||||
$('span.hideThis').parent().remove();
|
||||
</script>
|
||||
|
@ -111,6 +111,6 @@
|
|||
</#if>
|
||||
</#local>
|
||||
|
||||
${resourceTitle} ${citationDetails} <@dt.yearSpan "${statement.dateTime!}" />
|
||||
${resourceTitle} ${citationDetails} <@dt.yearSpan "${statement.dateTime!}" />
|
||||
</#if>
|
||||
</#macro>
|
||||
|
|
|
@ -16,8 +16,8 @@
|
|||
<span class="hideThis"> </span>
|
||||
<script type="text/javascript" >
|
||||
$('span.hideThis').parent().parent().addClass("hideThis");
|
||||
if ( $('h3#hasResearcherRole').attr('class').length == 0 ) {
|
||||
$('h3#hasResearcherRole').addClass('hiddenGrants');
|
||||
if ( $('h3#RO_0000053-ResearcherRole').attr('class').length == 0 ) {
|
||||
$('h3#RO_0000053-ResearcherRole').addClass('hiddenGrants');
|
||||
}
|
||||
$('span.hideThis').parent().remove();
|
||||
</script>
|
||||
|
|
|
@ -25,7 +25,7 @@ ${i18n().check_grants_to_exclude}
|
|||
<ul >
|
||||
<#list grantList as grant>
|
||||
<li>
|
||||
<input type="checkbox" class="grantCheckbox" <#if grant.hideThis??>checked</#if> />${grant.label!}
|
||||
<input type="checkbox" class="grantCheckbox" <#if grant.hideThis??>checked</#if> />${grant.label!grant.activity!}
|
||||
</li>
|
||||
<script type="text/javascript">
|
||||
grantData.push({
|
||||
|
|
|
@ -6,9 +6,9 @@
|
|||
<#if subjectName?contains(",") >
|
||||
<#assign lastName = subjectName?substring(0,subjectName?index_of(",")) />
|
||||
<#assign firstName = subjectName?substring(subjectName?index_of(",") + 1) />
|
||||
<h2>${i18n().manage_publications} ${firstName} ${lastName}</h2>
|
||||
<h2>${i18n().manage_publications_for} ${firstName} ${lastName}</h2>
|
||||
<#else>
|
||||
<h2>${i18n().manage_publications} ${subjectName}</h2>
|
||||
<h2>${i18n().manage_publications_for} ${subjectName}</h2>
|
||||
</#if>
|
||||
<p style="margin-left:25px;margin-bottom:12px">
|
||||
${i18n().check_pubs_to_exclude}
|
||||
|
@ -25,9 +25,9 @@ ${i18n().check_pubs_to_exclude}
|
|||
<#if sub = "Software">
|
||||
${sub}
|
||||
<#elseif sub = "Thesis">
|
||||
Theses
|
||||
${i18n().theses_capitalized}
|
||||
<#elseif sub = "Speech">
|
||||
Speeches
|
||||
${i18n().speeches_capitalized}
|
||||
<#else>
|
||||
${sub}s
|
||||
</#if>
|
||||
|
@ -38,7 +38,7 @@ ${i18n().check_pubs_to_exclude}
|
|||
<#list pubs as pub>
|
||||
<li>
|
||||
<input type="checkbox" class="pubCheckbox" <#if pub.hideThis??>checked</#if> />
|
||||
<#if pub.title?has_content>${pub.title!}<#else>Title not found.</#if>
|
||||
<#if pub.title?has_content>${pub.title!}<#else>${i18n().title_not_found}</#if>
|
||||
</li>
|
||||
<script type="text/javascript">
|
||||
publicationData.push({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue