{% extends '@syndexAcademic/main_layout.html.twig' %} {% trans_default_domain "Academia" %} {% set locale = app.request.locale %} {% block og_title %} {% 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 %} {% block title %} {% if research.arabicFullTitle is not null %} {{ research.arabicFullTitle }} {% else %} {{ research.englishFullTitle }} {% endif %} {% endblock %} {% block structured_data %} {% endblock %} {% block css %} {% endblock %} {% block body %} {{ parent() }}
{# ── Compact Hero: Search / Ask AI / Related Work ── #}
{% if app.user %}
أمثلة يمكنك تجربتها:
{% else %}

سجل دخولك للبدء

ميزة اسألني متاحة للمستخدمين المسجلين فقط

تسجيل الدخول
{% endif %}

أخبرنا المزيد

ما الذي يمكننا تحسينه؟ (اختياري)

{% if not app.user %} {% endif %}
{# Promotional Boxes - randomly show one #}

{{ 'playground_banner.title'|trans({}, 'Academia') }}

{{ 'playground_banner.description'|trans({}, 'Academia') }}

{{ 'playground_banner.cta'|trans({}, 'Academia') }}

{{ 'ocr_banner.title'|trans({}, 'Academia') }}

{{ 'ocr_banner.description'|trans({}, 'Academia') }}

{{ 'ocr_banner.cta'|trans({}, 'Academia') }}

{{ 'references_banner.title'|trans({}, 'Academia') }}

{{ 'references_banner.description'|trans({}, 'Academia') }}

{{ 'references_banner.cta'|trans({}, 'Academia') }}
{# Title #}

{{ research.arabicFullTitle }}

{% if research.englishFullTitle %}

{{ research.englishFullTitle }}

{% endif %}
{# Authors #} {% if research.textualPublisher %}
الباحثون: {% if research.textualPublisher is iterable %} {% for author in research.textualPublisher %} {{ author }} {% endfor %} {% else %} {{ research.textualPublisher }} {% endif %}
{% endif %} {# Metadata #}
{% if research.arabicCategoryName %} {{ research.arabicCategoryName }} | {% endif %} {% if research.arabicPublisherName %} {{ research.arabicPublisherName }} | {% endif %} {% if research.publicationDate %} {{ research.publicationDate }} | {% endif %} {% if research.hits is defined %} {{ research.hits }} مشاهدة | {% endif %} {% if research.downloads is defined %} {{ research.downloads }} تحميل {% endif %}
{# Fields/Topics #} {% if research.arabicFieldNames|length > 0 %}
المجالات: {% for fieldName in research.arabicFieldNames %} {{ fieldName }} {% endfor %}
{% endif %} {# Tags/Keywords #} {% if research.tags|length > 0 %} {% set maxVisibleTags = 6 %} {% set totalTags = research.tags|length %} {% set hiddenCount = totalTags > maxVisibleTags ? totalTags - maxVisibleTags : 0 %}
الكلمات المفتاحية: {% for tag in research.tags %} {% if tag is iterable or tag.context is defined %} {% set tagSlug = tag.slug|default('') %} {{ tag.context }} {% if app.user and tagSlug %} {% if followedTagSlugs is defined and tagSlug in followedTagSlugs %} {% else %} {% endif %} {% endif %} {% else %} {% set tagSlugStr = tagSlugs is defined and tagSlugs[loop.index0] is defined ? tagSlugs[loop.index0] : '' %} {{ tag }} {% if app.user and tagSlugStr %} {% if followedTagSlugs is defined and tagSlugStr in followedTagSlugs %} {% else %} {% endif %} {% endif %} {% endif %} {% endfor %} {% if hiddenCount > 0 %} {% endif %}
{% if app.user %}
{{ 'tag.follow_hint'|trans({}, 'Notifications') }}
{% endif %} {% endif %} {# Download & Share Section #}
{% if documentFound and research.document %}
{# PDF Download button - shows for subscribed users, otherwise redirect to login/subscribe #} {% if app.user and subscribed %} {{ 'show.document.download'|trans }} {% elseif app.user %} {{ 'show.document.download'|trans }} {% else %} {{ 'show.document.download'|trans }} {% endif %} {{ 'social.share_paper'|trans({}, 'Social') }}
{# Download MD button - always visible for conversion funnel, JS handles auth redirects #}
{{ 'show.document.extract_md'|trans }}
{% else %}
ملف PDF الأصلي غير متوفر

عذراً، لا يتوفر ملف PDF لهذا البحث حالياً. يمكنك الاطلاع على الملخص أدناه.

{% endif %}
{# Reading List Buttons #} {% if app.user %} {% include '@syndexAcademic/Research/_reading_list_buttons.html.twig' with { researchId: research.id, researchSlug: research.slug, researchType: 'elastic', paperTitle: research.arabicFullTitle ?: research.englishFullTitle, paperAuthors: research.textualPublisher is iterable ? research.textualPublisher|join(', ') : research.textualPublisher, paperYear: research.publicationDate } %} {% endif %} {# Abstract - Tabbed if both languages exist #} {% if research.arabicAbstract and research.englishAbstract %}
{{ research.arabicAbstract }}
{{ research.englishAbstract }}
{% elseif research.arabicAbstract %}

الملخص

{{ research.arabicAbstract }}
{% elseif research.englishAbstract %}

Abstract

{{ research.englishAbstract }}
{% endif %} {# === AI Tools Section (below Abstract) === #}
{{ 'ai_tools.title'|trans({}, 'Research') }} {% if userman.isSubscribed() and userman.getSubscription() %}{{ userman.getSubscription().availableCredits }}{% else %}--{% endif %}
{# Chat Panel - Initially Hidden #}
{{ 'ai_tools.ask_ai'|trans({}, 'Research') }}

{{ 'ai_tools.chat_welcome'|trans({}, 'Research') }}

{# Related Research (Read Also) - Full Width Section #} {% if matchedResearches is defined and matchedResearches is not empty %}

إقرأ أيضاً

{{ include('@syndexAcademic/Default/research_brief.html.twig', {'isSubscribed': subscribed}) }}
{% endif %} {# Search / Chat / Related Work Mini-Widget #}

أدوات بحث علمي مدعومة بالذكاء الاصطناعي

بحث اسألني كتابة دراسة مرجعيّة
{# Share to Profile Modal (ES-only research) #} {% if app.user %}
{% endif %} {% endblock %} {% block javascripts %} {{ parent() }} {# === AI Auth Modal === #}

{# === Ask AI Inline Tools JavaScript === #} {% if app.user %} {% endif %} {# ── Compact Hero: Search / Ask AI toggle + chat JS ── #} {% endblock %}