{% extends 'base.html.twig' %} {% block title %}OceanExpert - A Directory of Marine and Freshwater Professionals{% endblock %} {% block stylesheets %} {% endblock %} {% block body %} {% include 'navbarlogin.html.twig' %}

Advanced Search

The advanced search allows you to elaborate your search options using "" and the boolean operators AND/OR.

e.g. SEARCH IN: Experts - FILTERS: Country is – KEYWORDS: Belgium
"" AND
SEARCH IN: Experts – FILTERS: Email contains - KEYWORDS: @unesco.org
Search Example

{% if data is defined %} {% if app.request.get('filterType') is defined %} {% set filterType = app.request.get('filterType')|split(',') %} {% endif %} {% if data.getParams is defined and data.getParams is not empty %}
Categories hide
{% for catKey, category in filters.type %} {% if category is defined and category > 0 %}
{% endif %} {% endfor %} {% if filters.country is defined and filters.country is not empty %}
Countries hide
    {% for country, count in filters.country %}
  • {{ country }} ({{ count }})
  • {% endfor %} {% if filters.country|length >20 %} {% if filters.country|length == 21 %}
    [ +1 More country ]
    {% else %}
    [ +{{ filters.country|length - 20 }} More countries ]
    {% endif %}
    [ Less countries ]
    {% endif %}
{% endif %}

{{ searchResultType }}

{% if data.getParams is defined %} {% if searchResultText is defined %}
{{ searchResultText | raw }}
{% endif %} {% endif %}
Applied Filters: {% if appliedFilters | length > 0 %} {% for key,searchfilter in appliedFilters %} {% endfor %} {% endif %} {% if appliedCountryFilters | length > 0 %} {% for key,searchfilter in appliedCountryFilters %} {% endfor %} {% endif %} {% if appliedCountryFilters | length == 0 and appliedFilters | length == 0%} no filters applied {% endif %}
{% if data.getTotalItemCount > 1 %} {% if sortfields is defined and sortfields|length > 0 %}
Sort Result by:
{% endif %} {% endif %}
{% if data.getTotalItemCount is defined and data.getTotalItemCount > 0 %}
{#
#}
Displaying {{ data.getPaginationData.firstItemNumber }} – {{ data.getPaginationData.lastItemNumber }} results of {{ data.getTotalItemCount }}.
{% if data.getTotalItemCount >10 %} results per page. {% endif %}
{% for item in data %}
{% if item.type == "experts" %} profile image

{{ item.sname | raw | upper }} {{ item.mname | raw }} {{ item.fname | raw }} {% if item.quality_checked == 1 %} {% endif %} {{ item.jobtitle }} {% if item.retired == 1 %} Retired {% endif %} {% if item.deceased == 1 %} Deceased {% endif %}
{% if item.use_inst_addr == 1 %} {% if item.inst_address !="" %} {{ item.inst_address }}, {% endif %} {% if item.instCity !="" %} {{ item.instCity }}, {% endif %} {% if item.country !="" %} {{ item.country }} {% endif %} {% else %} {% if item.addr_1 !="" %} {{ item.addr_1 }}, {% endif %} {% if item.addr_2 !="" %} {{ item.addr_2 }}, {% endif %} {% if item.city !="" %} {{ item.city }}, {% endif %} {% if item.state !="" %} {{ item.state }}, {% endif %} {% if item.postcode !="" %} {{ item.postcode }}, {% endif %} {% if item.country !="" %} {{ item.country }} {% endif %} {% endif %}

{% if is_granted('ROLE_GLOBAL_EDITOR') %} {% if item.events is defined and item.events > 0 %} [Event(s): {{ item.events }} ] {% endif %} {% endif %}
{% elseif item.type=="institutions" %} {% if item.inst_logo is defined and item.inst_logo != "" %} {% set instUrl = asset('uploads/institutes/'~item.id_inst~'/'~item.inst_logo) %} {% else %} {% set instUrl = asset('assets/uploads/institute.png') %} {% endif %}

{{ item.inst_name | raw }} {{ item.instType }} {% if item.inst_address|trim !="" %}
{{ item.inst_address | raw }} {% endif %} {% if item.instCity|trim !="" %}
{{ item.instCity | raw }} {% endif %} {% if item.instState|trim !="" %} {{ item.instState | raw }} {% endif %} {% if item.country|trim !="" %}
{{ item.country | raw }} {% endif %}

{% elseif item.type=="events" %}

{{ item.name }} {{ item.eventtype }}
{% if item.start_on is defined and item.start_on !="" %} {{ item.start_on|date("d/m/Y") }} - {% endif %} {% if item.end_on is defined and item.end_on !="" %} {{ item.end_on|date("d/m/Y") }}
{% endif %} {% if item.addr_1 !="" %} {{ item.addr_1 | raw }},
{% endif %} {% if item.city !="" %} {{ item.city | raw }}, {% endif %} {% if item.state !="" %} {{ item.state | raw }}, {% endif %} {% if item.country !="" %} {{ item.country | raw }} {% endif %}

{% elseif item.type=="documents" %} documents {% endif %}
{% endfor %}
Displaying {{ data.getPaginationData.firstItemNumber }} – {{ data.getPaginationData.lastItemNumber }} results of {{ data.getTotalItemCount }}.
{% if data.getTotalItemCount >10 %} results per page. {% endif %}
{% endif %}
{% if is_granted('ROLE_GLOBAL_EDITOR') %} {% endif %}
{% endif %} {% endif %}
{% if is_granted('ROLE_GLOBAL_EDITOR') %} {% endif %}
{% include 'footer.html.twig' %} {% endblock %}