{% extends 'gabarit.html' %}

<!-- $Id: category.html,v 1.2.8.3 2026/06/03 14:15:49 jparis Exp $ -->
{% block element_link %}
{% if list_element.context_parameters.in_selector %}
{% if list_element.voir %}
<a class="pmb-authority-name" href="#"
	title="{{msg.title_link_categories}} {{list_element.get_object_instance.thes.libelle_thesaurus}} {{msg.list_element_thesaurus}} {{list_element.isbd | safe}}"
	data-element-id="{{ list_element.id }}" data-element-type="authorities"
	onclick="set_parent('{{ global.caller | e true }}', '{{ list_element.voir }}', '{{ list_element.categ_see.libelle | strip_tags | escape true }}','{{ global.callback | e true }}')">
	{% else %}
	<a class="pmb-authority-name" href="#"
		title="{{msg.title_link_categories}} {{list_element.get_object_instance.thes.libelle_thesaurus}} {{msg.list_element_thesaurus}} {{list_element.isbd | safe}}"
		data-element-id="{{ list_element.id }}" data-element-type="authorities"
		onclick="set_parent('{{ global.caller | e true }}', '{{ list_element.num_object }}', '{{ list_element.isbd | strip_tags | escape true }}','{{ global.callback | e true }}')">
		{% endif %}
		{% else %}
		<a class="pmb-authority-name" href="{{ list_element.permalink }}"
			title="{{msg.title_link_categories}} {{list_element.get_object_instance.thes.libelle_thesaurus}} {{msg.list_element_thesaurus}} {{list_element.isbd | safe}}"
			data-element-id="{{ list_element.id }}" data-element-type="authorities">
			{% endif %}
			{% endblock %}
			{% block element_title %}
			{% if list_element.display %}
			<h3 class="tit1_AuthCourte pmb-title-3">[ {{list_element.get_object_instance.thes.libelle_thesaurus}} ]
				{{ list_element.display | safe }}
			</h3>
			{% else %}
			{% if list_element.voir %}
			<h3 class="tit1_AuthCourte pmb-title-3">[ {{list_element.get_object_instance.thes.libelle_thesaurus}} ]
				{{ list_element.libelle | strip_tags | safe }}
			</h3>
			{% else %}
			<h3 class="tit1_AuthCourte pmb-title-3">[ {{list_element.get_object_instance.thes.libelle_thesaurus}} ]
				{{list_element.isbd | safe}}
			</h3>
			{% endif %}
			{% endif %}
		</a>

		<ul class="notice-child-detail" id="{{ list_element.uid }}{{ list_element.id }}Detail">
			{% if list_element.categ_see.libelle %}
			<li class="pmb-authority-detail pmb-authority-category-see">
				<span class="labelNot">
					{{msg.list_element_see}}
				</span>
				<span class="labelContent">
					<a href="./index.php?lvl=categ_see&id={{list_element.categ_see.num_object}}"
						title="{{msg.title_link_categories}} {{ list_element.categ_see.libelle}}">{{ list_element.categ_see.libelle | strip_tags | safe }}</a>
				</span>
			</li>
			{% endif %}

			{% if list_element.get_object_instance.associated_terms %}
			<li class="pmb-authority-detail pmb-authority-category-see-also">
				<span class="labelNot">
					{{msg.list_element_see_also}}
				</span>
				<span class="labelContent">
					<ul class="labelContentItems">
						{% for seeChildren in list_element.get_object_instance.associated_terms %}
						<li class="labelContentItem labelContentItemList">
							<a href="./index.php?lvl=categ_see&id={{seeChildren.id}}"
								title="{{msg.list_element_see_also_categ}} {{seeChildren.libelle}}">{{seeChildren.libelle}}{% if !loop.last %};{% endif %}</a>
						</li>
						{% endfor %}
					</ul>
				</span>
			</li>
			{% endif %}

			{% if list_element.get_object_instance.parent_libelle %}
			<li class="pmb-authority-detail pmb-authority-category-relation-parent">
				<span class="labelNot">
					{{msg.list_element_category_parent}}
				</span>
				<span class="labelContent">
					<a href="./index.php?lvl=categ_see&id={{list_element.get_object_instance.parent_id}}"
						title="{{msg.title_link_categories_parent}} {{list_element.get_object_instance.parent_libelle}}">{{list_element.get_object_instance.parent_libelle}}</a>
				</span>
			</li>
			{% endif %}

			{% if list_element.get_object_instance.listchilds %}
			<li class="pmb-authority-detail pmb-authority-detail-list pmb-authority-category-relation-children">
				<span class="labelNot">
					{{msg.list_element_category_children}}
				</span>
				<span class="labelContent">
					<ul class="labelContentItems">
						{% for children in list_element.get_object_instance.listchilds %}
						<li class="labelContentItem labelContentItemList">
							<a href="./index.php?lvl=categ_see&id={{children.id}}"
								title="{{msg.title_link_categories_enfant}} {{children.libelle}}">{{children.libelle}}{% if !loop.last %};{% endif %}</a>
						</li>
						{% endfor %}
					</ul>
				</span>
			</li>
		</ul>
		{% endif %}
		{% endblock %}