merging r4254 to the trunk

This commit is contained in:
tworrall 2012-08-08 20:46:30 +00:00
parent cefee06309
commit 9bd545bfbb
2 changed files with 17 additions and 5 deletions

View file

@ -17,8 +17,9 @@
?roleLabel
?activity ?activityName
?activityLabel
?dateTimeStart ?dateTimeEnd WHERE {
?dateTimeStart ?dateTimeEnd
?hideThis
WHERE {
?subject ?property ?role
OPTIONAL { ?role core:roleRealizedIn ?activity
@ -40,6 +41,7 @@
}
OPTIONAL { ?role rdfs:label ?roleLabel }
OPTIONAL { ?role core:hideFromDisplay ?hideThis }
OPTIONAL { ?role core:dateTimeInterval ?dateTimeInterval
OPTIONAL { ?dateTimeInterval core:start ?dateTimeStartValue .
?dateTimeStartValue core:dateTime ?dateTimeStart
@ -48,7 +50,7 @@
?dateTimeEndValue core:dateTime ?dateTimeEnd
}
}
NOT EXISTS { ?role core:hideFromDisplay ?hideThis }
# NOT EXISTS { ?role core:hideFromDisplay ?hideThis }
<critical-data-required>
FILTER ( bound(?activity) )
</critical-data-required>

View file

@ -13,6 +13,16 @@
<#-- Use a macro to keep variable assignments local; otherwise the values carry over to the
next statement -->
<#macro showRole statement>
<#if statement.hideThis?has_content>
<span class="hideThis">&nbsp;</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>
<#if statement.activity??>
<a href="${profileUrl(statement.uri("activity"))}" title="activity name">${statement.activityLabel!statement.activityName}</a>
@ -26,6 +36,6 @@
<@dt.yearIntervalSpan "${statement.dateTimeStart!}" "${statement.dateTimeEnd!}" />
</#local>
${linkedIndividual} ${statement.roleLabel!} ${dateTime!}
${linkedIndividual} ${statement.roleLabel!} ${dateTime!}
</#if>
</#macro>