<commit_before><#-- $This file is distributed under the terms of the license in LICENSE$ -->

<#-- VIVO-specific default data property statement template. 
    
     This template must be self-contained and not rely on other variables set for the individual page, because it
     is also used to generate the property statement during a deletion.  
 -->
<#import "lib-meta-tags.ftl" as lmt>

<@showStatement statement property />

<#macro showStatement statement property>
    <a href="https://doi.org/${statement.value!}" title="${i18n().doi_link}" target="_blank">${statement.value!}</a>
    <@lmt.addCitationMetaTag uri=(property.uri!) content=(statement.value!) />
</#macro>


<commit_msg>[VIVO-1527] Providing DOI as URL <commit_after><#-- $This file is distributed under the terms of the license in LICENSE$ -->

<#-- VIVO-specific default data property statement template. 
    
     This template must be self-contained and not rely on other variables set for the individual page, because it
     is also used to generate the property statement during a deletion.  
 -->
<#import "lib-meta-tags.ftl" as lmt>

<@showStatement statement property />

<#macro showStatement statement property>
    <#assign doi = (statement.value!).toLowerCase().
                    replace("http://doi.org/", "").
                    replace("https://doi.org/", "").
                    replace("http://dx.doi.org/", "").
                    replace("https://dx.doi.org/", "").
                    replace("doi:", "").trim()>
    <#assign doiUrl = "https://doi.org/" + doi>
    <a href="${doiUrl}" title="${i18n().doi_link}" target="_blank">${doiUrl}</a>
    <@lmt.addCitationMetaTag uri=(property.uri!) content=(doiUrl) />
</#macro>



{'fraction_non_alphanumeric': 0.15478260869565216, 'fraction_numerical': 0.00463768115942029, 'mean_word_length': 3.0707547169811322, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, 'https://': 4, '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': '1378365', 'n_tokens_mistral': 521, 'n_tokens_neox': 481, 'n_words': 152}