{% for research in matchedResearches | slice(0,10) %} {% if app.request.locale == 'en' %} {% set length = research.arabicAbstract|length %} {% else %} {% set length = research.englishAbstract|length %} {% endif %} {% set contributers = research.authors| u.replaceMatches('/\\(.*\\)/', '')|split(',') %}
{{ research.hits~' -'}} {% if contributers|length >1 %} {{ contributers[0] }} {% for i in range(1,contributers|length -1) %} , {{ contributers[i] }} {% endfor %} {% elseif contributers|length >0 %} {{ contributers[0] }} {% endif %} {{ research.createdAt|date('Y') }}
{% if length >300 %}
{% if app.request.locale == "ar" and research.arabicAbstract != null and research.arabicAbstract != "" and research.translated and research.reviewed %} {{ research.arabicAbstract[0:250] }} {{ research.arabicAbstract[250:] }} {% else %} {{ research.englishAbstract[0:250] }} {{ research.englishAbstract[250:] }} {% endif %}
{% else %}
{% if app.request.locale == "ar" and research.arabicAbstract != null and research.arabicAbstract != "" and research.translated and research.reviewed %} {{ research.arabicAbstract }} {% else %} {{ research.englishAbstract }} {% endif %}
{% endif %}
{% if research.tag_1 is not null %} {{ (app.request.locale == 'ar' )?research.tag_1.arabicName:research.tag_1.englishName }} {% endif %} {% if research.tag_2 is not null %} {{ (app.request.locale == 'ar' )?research.tag_2.arabicName:research.tag_2.englishName }} {% endif %} {% if research.tag_3 is not null %} {{ (app.request.locale == 'ar' )?research.tag_3.arabicName:research.tag_3.englishName }} {% endif %}
{% endfor %}