<commit_before><#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->

<#-- Custom object property statement view for http://vivoweb.org/ontology/core#hasRole and its child properties -->

<#import "lib-sequence.ftl" as s>
<#import "lib-datetime.ftl" as dt>

<@showRole statement />

<#-- Use a macro to keep variable assignments local; otherwise the values get passed to the next
     statement -->
<#macro showRole statement>
    
    <#local linkedIndividual>
        <#if statement.activity??>
            <a href="${profileUrl(statement.activity)}">${statement.activityName}</a>
        <#else>
            <#-- This shouldn't happen, but we must provide for it -->
            <a href="${profileUrl(statement.role)}">${statement.roleName}</a> (no linked activity)
        </#if>
    </#local>

    ${linkedIndividual} ${statement.specificRole} <@dt.yearInterval "${statement.dateTimeStart!}" "${statement.dateTimeEnd!}" />

</#macro><commit_msg>NIHVIVO-1339 Allow for null specificRole in hasRole property statement display<commit_after><#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->

<#-- Custom object property statement view for http://vivoweb.org/ontology/core#hasRole and its child properties -->

<#import "lib-sequence.ftl" as s>
<#import "lib-datetime.ftl" as dt>

<@showRole statement />

<#-- Use a macro to keep variable assignments local; otherwise the values get passed to the next
     statement -->
<#macro showRole statement>
    
    <#local linkedIndividual>
        <#if statement.activity??>
            <a href="${profileUrl(statement.activity)}">${statement.activityName}</a>
        <#else>
            <#-- This shouldn't happen, but we must provide for it -->
            <a href="${profileUrl(statement.role)}">${statement.roleName}</a> (no linked activity)
        </#if>
    </#local>

    ${linkedIndividual} ${statement.specificRole!} <@dt.yearInterval "${statement.dateTimeStart!}" "${statement.dateTimeEnd!}" />

</#macro>
{'fraction_non_alphanumeric': 0.15354330708661418, 'fraction_numerical': 0.001968503937007874, 'mean_word_length': 3.448577680525164, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 41, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5455450', 'n_tokens_mistral': 595, 'n_tokens_neox': 574, 'n_words': 174}