{% extends 'gabarit.html' %}

<!-- $Id: publisher.html,v 1.1.20.1 2026/01/30 14:55:01 lpedeville Exp $ -->
{% block element_link %}
{% if list_element.context_parameters.in_selector %}
<a class="pmb-authority-name" href="#" title="{{msg.title_link_editor}} {{ list_element.name }}"
    data-element-id="{{ list_element.id }}" data-element-type="authorities"
    onclick="set_parent('{{ global.caller }}', '{{ list_element.num_object }}', '{{list_element.isbd |  escape true }}', '{{ global.callback }}', '{{ list_element.get_object_instance.parent }}', '{{list_element.get_object_instance.parent_libelle |  escape true}}', '{{ list_element.get_object_instance.editeur }}', '{{list_element.get_object_instance.editeur_libelle |  escape true}}')">
    {% else %}
    <a class="pmb-authority-name" href="{{ list_element.permalink }}"
        title="{{msg.title_link_editor}} {{ list_element.name }}" data-element-id="{{ list_element.id }}"
        data-element-type="authorities">
        {% endif %}
        {% endblock %}
        {% block element_title %}
        <h3 class="tit1_AuthCourte pmb-title-3">{{ list_element.name | safe }}</h3>
    </a>
    <ul class="notice-child-detail" id="{{ list_element.uid }}{{ list_element.id }}Detail">
        {% if list_element.get_object_instance.publisher_isbd %}
        <li class="pmb-authority-detail pmb-authority-publisher">
            <span class="labelNot">
                {{msg.list_element_collection_publisher}}
            </span>
            <span class="labelContent">
                <a href="./index.php?lvl=publisher_see&id={{list_element.get_object_instance.parent}}"
                    title="{{msg.title_link_editor}} {{ publisher_isbd}}">{{ publisher_isbd | strip_tags | safe }}</a>
            </span>
        </li>
        {% endif %}

        {% if list_element.get_object_instance.ville or list_element.get_object_instance.pays%}
        <li class="pmb-authority-detail pmb-authority-publisher-localisation">
            <span class="labelNot">
                {{msg.list_element_publisher_localisation}}
            </span>
            <span class="labelContent">
                {{list_element.get_object_instance.ville}}{% if list_element.get_object_instance.pays%},
                {{list_element.get_object_instance.pays}}{% endif %}
            </span>
        </li>
        {% endif %}

        {% if list_element.get_object_instance.web %}
        <li class="pmb-authority-detail pmb-authority-publisher-web">
            <span class="labelNot">
                {{msg.list_element_publisher_web}}
            </span>
            <span class="labelContent">
                <a href="{{list_element.get_object_instance.web}}"
                    title="{{msg.title_link_editor_web}} {{list_element.get_object_instance.web}}"
                    aria-label="{{msg.open_link_url_notice}} {{list_element.get_object_instance.web}} {{msg.open_link_url_notice_other}}"
                    target="_blank" rel="noopener noreferrer">{{list_element.get_object_instance.web}}</a>
            </span>
        </li>
        {% endif %}

        {% if list_element.get_object_instance.collections %}
        <li class="pmb-authority-detail pmb-authority-detail-list pmb-authority-publisher-collection">
            <span class="labelNot">
                {{msg.list_element_publisher_collections}}
            </span>
            <span class="labelContent">

                <ul class="labelContentItems">
                    {% for collection in list_element.get_object_instance.collections %}
                    <li class="labelContentItem labelContentItemList">
                        <a href="./index.php?lvl=coll_see&id={{collection.num_object}}"
                            title="{{msg.title_link_collection}} {{ list_element.name}}">{{collection.name}};</a>
                    </li>
                    {% endfor %}
                </ul>

            </span>
        </li>
        {% endif %}
    </ul>
    {% endblock %}