merging r4254 to the trunk
This commit is contained in:
parent
cefee06309
commit
9bd545bfbb
2 changed files with 17 additions and 5 deletions
|
@ -17,8 +17,9 @@
|
||||||
?roleLabel
|
?roleLabel
|
||||||
?activity ?activityName
|
?activity ?activityName
|
||||||
?activityLabel
|
?activityLabel
|
||||||
?dateTimeStart ?dateTimeEnd WHERE {
|
?dateTimeStart ?dateTimeEnd
|
||||||
|
?hideThis
|
||||||
|
WHERE {
|
||||||
?subject ?property ?role
|
?subject ?property ?role
|
||||||
|
|
||||||
OPTIONAL { ?role core:roleRealizedIn ?activity
|
OPTIONAL { ?role core:roleRealizedIn ?activity
|
||||||
|
@ -40,6 +41,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
OPTIONAL { ?role rdfs:label ?roleLabel }
|
OPTIONAL { ?role rdfs:label ?roleLabel }
|
||||||
|
OPTIONAL { ?role core:hideFromDisplay ?hideThis }
|
||||||
OPTIONAL { ?role core:dateTimeInterval ?dateTimeInterval
|
OPTIONAL { ?role core:dateTimeInterval ?dateTimeInterval
|
||||||
OPTIONAL { ?dateTimeInterval core:start ?dateTimeStartValue .
|
OPTIONAL { ?dateTimeInterval core:start ?dateTimeStartValue .
|
||||||
?dateTimeStartValue core:dateTime ?dateTimeStart
|
?dateTimeStartValue core:dateTime ?dateTimeStart
|
||||||
|
@ -48,7 +50,7 @@
|
||||||
?dateTimeEndValue core:dateTime ?dateTimeEnd
|
?dateTimeEndValue core:dateTime ?dateTimeEnd
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
NOT EXISTS { ?role core:hideFromDisplay ?hideThis }
|
# NOT EXISTS { ?role core:hideFromDisplay ?hideThis }
|
||||||
<critical-data-required>
|
<critical-data-required>
|
||||||
FILTER ( bound(?activity) )
|
FILTER ( bound(?activity) )
|
||||||
</critical-data-required>
|
</critical-data-required>
|
||||||
|
|
|
@ -13,6 +13,16 @@
|
||||||
<#-- Use a macro to keep variable assignments local; otherwise the values carry over to the
|
<#-- Use a macro to keep variable assignments local; otherwise the values carry over to the
|
||||||
next statement -->
|
next statement -->
|
||||||
<#macro showRole statement>
|
<#macro showRole statement>
|
||||||
|
<#if statement.hideThis?has_content>
|
||||||
|
<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');
|
||||||
|
}
|
||||||
|
$('span.hideThis').parent().remove();
|
||||||
|
</script>
|
||||||
|
<#else>
|
||||||
<#local linkedIndividual>
|
<#local linkedIndividual>
|
||||||
<#if statement.activity??>
|
<#if statement.activity??>
|
||||||
<a href="${profileUrl(statement.uri("activity"))}" title="activity name">${statement.activityLabel!statement.activityName}</a>
|
<a href="${profileUrl(statement.uri("activity"))}" title="activity name">${statement.activityLabel!statement.activityName}</a>
|
||||||
|
@ -26,6 +36,6 @@
|
||||||
<@dt.yearIntervalSpan "${statement.dateTimeStart!}" "${statement.dateTimeEnd!}" />
|
<@dt.yearIntervalSpan "${statement.dateTimeStart!}" "${statement.dateTimeEnd!}" />
|
||||||
</#local>
|
</#local>
|
||||||
|
|
||||||
${linkedIndividual} ${statement.roleLabel!} ${dateTime!}
|
${linkedIndividual} ${statement.roleLabel!} ${dateTime!}
|
||||||
|
</#if>
|
||||||
</#macro>
|
</#macro>
|
Loading…
Add table
Add a link
Reference in a new issue