{% extends 'gabarit.html' %}

<!-- $Id: collection.html,v 1.3.4.3 2026/06/03 14:11:46 jparis Exp $ -->

{% block element_link %}
{% if list_element.context_parameters.in_selector %}
<a class="pmb-authority-name" href="#" title="{{msg.title_link_collection}} {{ list_element.name}}"
	data-element-id="{{ list_element.id }}" data-element-type="authorities"
	onclick="set_parent('{{ global.caller | e true }}', '{{ list_element.num_object }}', '{{list_element.isbd |  escape true }}', '{{ global.callback | e true }}', '{{ list_element.get_object_instance.parent }}', '{{list_element.get_object_instance.editeur |  escape true}}')">
	{% else %}
	<a class="pmb-authority-name" href="{{ list_element.permalink }}"
		title="{{msg.title_link_collection}} {{ 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-subcollection-see">
			<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.subcollections %}
		<li class="pmb-authority-detail pmb-authority-detail-list pmb-authority-subcollection-relation">
			<span class="labelNot">
				{{msg.list_element_collection_subcollections}}
			</span>
			<span class="labelContent">
				<ul class="labelContentItems">
					{% for subcollection in list_element.get_object_instance.subcollections %}
					<li class="labelContentItem labelContentItemList">
						<a href="./index.php?lvl=subcoll_see&id={{subcollection.num_object}}"
							title="{{msg.title_link_subcollection}} {{subcollection.name}}">{{subcollection.name}}{% if !loop.last %};{% endif %}</a>
					</li>
					{% endfor %}
				</ul>
			</span>
		</li>
		{% endif %}
	</ul>
	{% endblock %}