{% extends '@syndexAcademic/main_layout.html.twig' %} {% trans_default_domain "Academia" %} {% set locale = app.request.locale %} {% set float = '' %} {% if locale == 'en' %} {% set float = "style=float:right" %} {% endif %} {% block og_title %} {% if titlePar is not defined %} {% set titlePar = "academia.engine"|trans({},'Academia') %} {% endif %} {{ 'title'|trans({'par' : titlePar},'Academia') }} | {% if research.arabicFullTitle is not null %} {{ research.arabicFullTitle }} {% else %} {{ research.englishFullTitle }} {% endif %} {% endblock %} {% block og_url %}{{ app.request.scheme ~'://' ~ app.request.httpHost ~ path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')) }}{% endblock %} {% block og_description %}{{ research.arabicAbstract[0:200] }}{% endblock %} {% set owned = false %} {% set img = asset('uploads/') %} {% block structured_data %} {% endblock %} {% block css %} {% endblock %} {% block title %} {% if locale == "en" %} {% if research.englishFullTitle is not null %} {{ research.englishFullTitle }} {% else %} {{ research.arabicFullTitle }} {% endif %} {% else %} {% if research.arabicFullTitle is not null %} {{ research.arabicFullTitle }} {% else %} {{ research.englishFullTitle }} {% endif %} {% endif %} {% endblock %} {% block schemaBlock %} {% endblock schemaBlock %} {% block body %} {{ parent() }}
{% if not app.user %} {% endif %} {% if subscribed %} {% if endSubscribeDate %} {% else %} {% endif %} {% else %} {% if app.user %} {% endif %} {% endif %} {% if course != null and course.status == "accepted"%}

{{ course.title }}

{{course.description}}
{{ 'research.featured-courses'|trans }}
{% endif %}
{% if locale == "ar" %}

{{ research.arabicFullTitle }}

{{ research.englishFullTitle }}

{% else %}

{{ research.englishFullTitle }}

{{ research.arabicFullTitle }}

{% endif %}
{{ research.hits }}   {% if not isEnglish %} {{ research.cites }}  {% endif %} {{ research.downloads }}   {% if rate %} {{ rate }} {% else %} {{ 0 }} {% endif %} ( {% if raters %} {{ raters }} {% else %} {{ 0 }} {% endif %} )
{% if documentFound %} {% if canPreview %} {{ 'research.preview'|trans }} {% endif %} {{ 'show.document.download'|trans }} {% endif %} {{ 'userProfile.statistics.cites'|trans }} {% if app.user %} {% if ( research.createdBy is defined and research.createdBy == app.user ) or is_granted("ROLE_ADMIN") %} {% if not isEnglish %} {{ 'research.edit'|trans }} {% else %} {{ 'research.edit'|trans }} {% endif %} {% elseif added %} {{ 'show.removeFrom.favourite'|trans }} {% else %} {{ 'show.addTo.favourite'|trans }} {% endif %} {% if is_granted("ROLE_ADMIN") %} {{ 'research.delete'|trans }} {% endif %} {% endif %}
{% if research.publisher is defined or research.textualPublisher %} {% endif %} {% if research.publicationDate is defined%}
 {{ 'research.publicationDate'|trans }} {{ research.publicationDate|date('Y') }}
{% elseif research.createdAt %}
 {{ 'research.publicationDate'|trans }} {{ research.createdAt|date('Y') }}
{% endif %} {% if research.fields is defined and research.fields|length >0 %} {% elseif isEnglish %}
  {{ 'research.fields'|trans }} {% if research.field_1 is not null %}{{ (locale == 'ar' )?research.field_1.arabicName:research.field_1.englishName }}{% endif %} {% if research.field_2 is not null %}{{ (locale == 'ar' )?research.field_2.arabicName:research.field_2.englishName }}{% endif %}
{% endif %}
{{ 'research.language'|trans({}, 'Academia') }} {% if not isEnglish %} {% if research.language is not null %} {{research.language}} {% else %} العربية {% endif %} {% else %} English {% endif %}
{% set i=1 %} {% if not isEnglish %} {% set con_length=research.researchContributersRoles|length %} {% if con_length >0 %} {% endif %} {% else %} {% set authors = research.authors| u.replaceMatches('/\\(.*\\)/', '') |split(",") %} {% set con_length = authors|length %} {% if con_length >0 %}
 {{ 'research.contributers'|trans }} {{authors[0]}} {% if con_length >1 %} {% for i in range(1,con_length-1) %} {{' - ' ~ authors[i] }} {% endfor %} {% endif %}
{% endif %} {% endif %} {% if research.createdBy is defined %}
 {{ 'research.createdBy'|trans }} {% if admin %} {{ 'شمرا' }} {% else %} {{ research.createdBy.firstName~' '~research.createdBy.lastName }} {# shamra_academia_academic_profile not active rigth now #} {# {{ research.createdBy.firstName~' '~research.createdBy.lastName }} #} {% endif %}
{% endif %}
{% if not isEnglish %} {% for tag in research.tags %} {{ tag.context }} {% endfor %} {% else %} {% if research.tag_1 is not null %} {{ (locale == 'ar' )?research.tag_1.arabicName:research.tag_1.englishName }} {% endif %} {% if research.tag_2 is not null %} {{ (locale == 'ar' )?research.tag_2.arabicName:research.tag_2.englishName }} {% endif %} {% if research.tag_3 is not null %} {{ (locale == 'ar' )?research.tag_3.arabicName:research.tag_3.englishName }} {% endif %} {% endif %}
{% if documentFound %} {% endif %}



{% if chatbotsubscribed is defined and chatbotsubscribed %} {{ 'chatbot.ask-bot'|trans }} {% else %} {{ 'chatbot.ask-bot'|trans }} {% endif %}

{% if research.arabicAbstract |length>1 %}

{{ research.arabicAbstract }}

{% else %}

{{ 'research.noArabicAbstract'|trans }}

{% endif %}
{% if research.englishAbstract |length >1 %}

{{ research.englishAbstract }}

{% else %}

{{ 'research.noEnglishAbstrat'|trans }}

{% endif %}

{# AI Section #} {% set ai_summary_conditon = ai_summary is defined and ai_summary is not empty %} {% set ai_critique_conditon = ai_critique is defined and ai_critique is not empty %} {% set chatGPT_conditon = chatGPT is defined and chatGPT is not empty %} {% set ai_keywords_conditon = ai_keywords is defined and ai_keywords is not empty %} {% if ai_summary_conditon or ai_critique_conditon or ai_keywords or chatGPT_conditon %}
{{ 'research.ai_section'|trans }}:
{% if not subscribed %} {% endif %}
{# AI Summery #} {% if ai_summary_conditon %}
{{ 'research.ai_summary'|trans }}
{% if subscribed %}
{{ai_summary}}
{% else %}
{{ai_summary}}
{% endif %}
{% endif %} {# END #} {# AI Critique #} {% if ai_critique_conditon %}
{{ 'research.ai_critique'|trans }}
{% if subscribed %}
{{ai_critique}}
{% else %}
{{ai_critique}}
{% endif %}
{% endif %} {# END #} {# GPT questions #} {% if chatGPT_conditon %}
{{ 'chatbot.question-title'|trans }}
{# #} {% if subscribed %}
    {% for question in chatGPT %}
  1. {{ question.question }}

    {{ question.answer }}

  2. {% endfor %}
{% else %}
    {% for question in chatGPT %}
  1. {{ question.question }}

    {{ question.answer }}

  2. {% endfor %}
{% endif %} {% endif %} {# END #} {# AI Keywords #} {% if ai_keywords_conditon %}
{{ 'research.ai_keywords'|trans }}
{% if ai_keywords|length >0 %} {% for keyword in ai_keywords %} {{ keyword }} {% endfor %} {% else %}
no keywords
{% endif %}
{% endif %} {# END #}
{% endif %} {# END of AI Section #}
{% if research.researchReferences is defined %}
{{ 'research.researchReferences'|trans }}
{% if research.researchReferences|length >0 %} {% for reference in research.researchReferences %} {% if not ( reference|first|lower in 'a'..'z' ) %}
{{ reference }}
{% else %}
{{ reference }}
{% endif %} {% endfor %} {% else %}
{{ 'research.noReferences'|trans }}
{% endif %}
{% endif %}
{{ 'research.rate.label'|trans }}
{# related researches #}
{% if matchedResearches is defined and matchedResearches is not empty %}

{{ 'suggested.research.more'|trans }}

{% if isEnglish %}
{{ include('@syndexAcademic/Default/research_english.html.twig',{'isSubscribed':subscribed}) }}
{% else %}
{{ include('@syndexAcademic/Default/research_brief.html.twig',{'isSubscribed':subscribed}) }}
{% endif %} {% endif %} {# END #} {% if bytag|length > 0 %}

{{ 'suggested.question.title'|trans }}

{% for qtag in bytag %}
{{qtag.views }}  - {{ qtag.interested }}  - -  {{ qtag.firstName ~' '~ qtag.lastName }} {{ 'suggested.question.field'|trans }} ( {{ (locale == 'en') ? qtag.englishFullName:qtag.arabicFullName }})
{% for tag in relatedQuestionTag[qtag['slug']] %} {{ tag}} {% endfor %}
{% endfor %} {% elseif byfield|length > 0 %}

{{ 'suggested.question.title'|trans }}

{% for qfield in byfield %}
{{qfield.views }}  - {{ qfield.interested }}  - - {{ 'suggested.question.field'|trans }} ({{ (locale=='ar')?qfield.arabicFullName:qfield.englishFullName }})
{% for tag in relatedQuestionField[qfield['slug']] %} {{ tag}} {% endfor %}
{% endfor %} {% endif %}
{% include '@Comment/commentViews/commentBase.twig' %}
{% if not app.user %}
{{ 'homepage.subscriptionAlert'|trans }}
{% endif %} {% if app.user %} {% if subscribtion is defined %}
{% if subscribtion['tags']|length > 0 %} {% for tag in subscribtion['tags'] %}
{{ tag['tag'].context }}
{% if tag['isFollowed'] %} {% else %} {% endif %}
{% endfor %} {% endif %} {% if subscribtion['contributer'] is not null %} {% for co in subscribtion['contributer'] %} {% if co['contributer'].fullName != app.user.firstName~' '~app.user.lastName %}
{{ co['contributer'].fullName }}
{% if co['isFollowed'] %} {% else %} {% endif %}
{% endif %} {% endfor %} {% endif %}
{% endif %} {% endif %}
{# {% include('@syndexAcademic/Default/suggestList.html.twig') %} #}
{% if course != null and course.status == "accepted"%}

{{ course.title }}

{{course.description}}
{{ 'research.featured-courses'|trans }}
{% endif %}
{% endblock %} {% block javascripts %} {{ parent() }} {% if chatbotsubscribed is defined and chatbotsubscribed %} {% endif %} {% if not userman.has_subscribtion() %} {% endif %} {% endblock %}