<commit_before><script type="text/ng-template" id="sections_template.html">

	<div ng-if="!entity.sections">
		<em>{{'entity_no_further_info'|transl8}}</em>
	</div>
	<div class="sections"
			ng-repeat="section in entity.sections"
			ng-include="'section_template.html'">
	</div>

	<br>
	<!-- Editor Section -->
	<div class="sections" ng-if="entity.editorSection">
		<li ng-if="!entity.editorSection.value" ng-class="{'thumbnail' : entity.editorSection.contextEntity}" style="list-style-type:none;">
		<b ng-if="entity.editorSection.label">{{entity.editorSection.label}}</b>
			<ul ng-repeat="section in (entity.editorSection.content || entity.editorSection.contextEntity)" ng-include="'section_template.html'"></ul>
		</li>

		<li ng-if="entity.editorSection.value" ng-switch="isArray(entity.editorSection.value)" style="list-style-type:none;">
			<span ng-switch-when="false" ng-bind-html="entity.editorSection.value | nl2br"></span>
			<div ng-switch-when="true">
				<div class="section-item" ng-repeat="valueItem in entity.editorSection.value track by $index" ng-bind-html="valueItem | nl2br"></div>
			</div>
		</li>
	</div>

	<div ng-if="entity.additionalContent.ocrText">
		<div class="page-header"><h4>OCR Text {{'entity_analysis'|transl8}}</h4></div>
		<ul>{{entity.additionalContent.ocrText}}</ul>
	</div>

</script>

<script type="text/ng-template" id="section_template.html">

	<li ng-if="!section.value" ng-class="{'thumbnail' : section.contextEntity}" style="list-style-type:none;">
		<b ng-if="section.label">{{section.label}}</b>
		<ul ng-repeat="section in (section.content || section.contextEntity)" ng-include="'section_template.html'"></ul>
	</li>

	<li ng-if="section.value" ng-switch="isArray(section.value)" style="list-style-type:none;">
		<span ng-switch-when="false" ng-bind-html="section.value | nl2br"></span>
		<div ng-switch-when="true">
			<div class="section-item" ng-repeat="valueItem in section.value track by $index" ng-bind-html="valueItem | nl2br"></div>
		</div>
	</li>

</script>

<div ng-cloak class="row"  ng-controller="EntityController">

	<div ng-hide="entity.entityId || error" class="loading"></div>

	<div class="col-md-3" ng-show="entity.entityId">

		<!-- CURRENT QUERY STATUS -->
		<div class="row">
			<div class="col-md-12">

				<div ng-if="resultSize">
					<div ng-if="currentQuery.q || currentQuery.facets.length > 0" class="panel panel-default">

						<div class="panel-heading">

							<a ng-href="search{{currentQuery.removeParam('resultIndex').removeParam('offset').toString()}}"
							   class="btn btn-xs pull-right btn-primary">
								<span class="glyphicon glyphicon-arrow-left"></span> {{"ui_to_search_result"|transl8}}
							</a>

							<div>
								<b class="text-muted uppercase small">{{"ui_current_query"|transl8}}</b><br>
								<span ng-if="!currentQuery.label">{{currentQuery.q}}</span>
								<i ng-if="currentQuery.label">{{currentQuery.label}}</i>
							</div>

							<div ng-if="currentQuery.hasFacets()">
								<b class="text-muted uppercase small">{{"entity_active_filters"|transl8}}</b>
								<ul>
									<li ng-repeat="facet in currentQuery.facets">
										<small>
											<i>{{facet.key | transl8}}</i>
											<b style="text-transform:capitalize;"> &nbsp; {{facet.value}}</b>
										</small>
									</li>
								</ul>
							</div>

						</div>

						<ul class="list-group">

							<a ng-if="prevEntity"
							   ng-href="entity/{{prevEntity.entityId}}{{currentQuery.setParam('resultIndex',resultIndex-1).toString()}}"
							   class="list-group-item"
							   style="height:75px; overflow:hidden">
								<div>
									<b class="text-muted uppercase small">
										<span class="glyphicon glyphicon-chevron-left" style="color:black" ></span>
										&nbsp; {{"entity_previous_result"|transl8}}
									</b>
								</div>
								<div ar-entity-title entity="prevEntity"></div>

							</a>

							<li class="list-group-item" ng-hide="nextEntitySearch.size < 2" >
								<b class="text-muted uppercase small">{{"entity_shown_result"|transl8}}</b>
								<form ng-submit="go('/entity/' + currentQuery.setParam('resultIndex',resultIndexInput).toString())">
									<div class="input-group"
										 ng-class="{'has-error':(resultIndexInput < 1 || resultIndexInput > resultSize)}">
										<input ng-model="resultIndexInput"
											   type="number" size="4"
											   min="1" max="{{resultSize}}" class="form-control input-sm">
										<span ng-if="resultIndex == resultIndexInput" class="input-group-addon" style="border-top-right-radius: 3px; border-bottom-right-radius:3px; border-left:0;"><small>{{ 'ui_of' | transl8 }}</small> <strong>{{resultSize|number}}</strong></span>
							    	<span ng-hide="resultIndex == resultIndexInput" class="input-group-btn">
							    		<button class="btn btn-primary btn-sm" ng-click="go('/entity/' + currentQuery.setParam('resultIndex',resultIndexInput).toString())">{{ 'ui_goto' | transl8}}</button>
							    	</span>
									</div>
								</form>
							</li>

							<a ng-if="nextEntity"
							   ng-href="entity/{{nextEntity.entityId}}{{currentQuery.setParam('resultIndex',resultIndex+1).toString()}}"
							   class="list-group-item text-right"
							   style="height:75px; overflow:hidden">
								<div>
									<b class="text-muted uppercase small">
										&nbsp; {{"entity_next_result"|transl8}}
										<span class="glyphicon glyphicon-chevron-right" style="color:black" ></span>
									</b>
								</div>
								<div ar-entity-title entity="nextEntity"></div>

							</a>

						</ul>

					</div>

				</div>

			</div>
		</div>

		<!-- END CURRENT QUERY STATUS -->

		<!-- Karte -->
    	<div ng-if="entity.places">
			<h5 class="text-muted uppercase"><strong>{{'entity_places'|transl8}}</strong></h5>
        	<div class="well" entitymap places="entity.places" id="entitymap" style="height:200px;"></div>
    	</div>

		<!-- NOTES -->
		<div ng-if="user.username">
			<h5 class="text-muted uppercase"><strong>{{'entity_catalogs'|transl8}}</strong></h5>
			<button type="button" class="btn btn-default btn-sm" ng-click="createEntry()">
				<span class="glyphicon glyphicon-pushpin"></span> {{'entity_create_entry'|transl8}}
			</button>
		</div>
		<!-- END NOTES -->

	</div>

	<div ng-show="entity.entityId" class="col-md-9">

		<div class="row">

			<div class="col-md-8">
				<h2 class="page-title">
					<div class="title">
						{{ entity.title }} <span ng-if="!entity.title" class="capitalized">{{entity.type}}</span>
					</div>
					<div class="subtitle"><small>{{ entity.subtitle }}</small></div>
				</h2>
				<div>
					<small>
						<a ng-href="{{ serverUri }}entity/{{entity.entityId}}">
							arachne.dainst.org/entity/{{entity.entityId}}
						</a>
					</small>
				</div>
			</div>

			<div class="col-md-4">
				<table class="table table-condensed" style="margin-bottom:0">
					<thead>
						<tr>
							<td><b>{{ 'entityId' | transl8 }}:</b></td><commit_msg> Refresh browser window for clicked permalinks (fixes #1415).<commit_after><script type="text/ng-template" id="sections_template.html">

	<div ng-if="!entity.sections">
		<em>{{'entity_no_further_info'|transl8}}</em>
	</div>
	<div class="sections"
			ng-repeat="section in entity.sections"
			ng-include="'section_template.html'">
	</div>

	<br>
	<!-- Editor Section -->
	<div class="sections" ng-if="entity.editorSection">
		<li ng-if="!entity.editorSection.value" ng-class="{'thumbnail' : entity.editorSection.contextEntity}" style="list-style-type:none;">
		<b ng-if="entity.editorSection.label">{{entity.editorSection.label}}</b>
			<ul ng-repeat="section in (entity.editorSection.content || entity.editorSection.contextEntity)" ng-include="'section_template.html'"></ul>
		</li>

		<li ng-if="entity.editorSection.value" ng-switch="isArray(entity.editorSection.value)" style="list-style-type:none;">
			<span ng-switch-when="false" ng-bind-html="entity.editorSection.value | nl2br"></span>
			<div ng-switch-when="true">
				<div class="section-item" ng-repeat="valueItem in entity.editorSection.value track by $index" ng-bind-html="valueItem | nl2br"></div>
			</div>
		</li>
	</div>

	<div ng-if="entity.additionalContent.ocrText">
		<div class="page-header"><h4>OCR Text {{'entity_analysis'|transl8}}</h4></div>
		<ul>{{entity.additionalContent.ocrText}}</ul>
	</div>

</script>

<script type="text/ng-template" id="section_template.html">

	<li ng-if="!section.value" ng-class="{'thumbnail' : section.contextEntity}" style="list-style-type:none;">
		<b ng-if="section.label">{{section.label}}</b>
		<ul ng-repeat="section in (section.content || section.contextEntity)" ng-include="'section_template.html'"></ul>
	</li>

	<li ng-if="section.value" ng-switch="isArray(section.value)" style="list-style-type:none;">
		<span ng-switch-when="false" ng-bind-html="section.value | nl2br"></span>
		<div ng-switch-when="true">
			<div class="section-item" ng-repeat="valueItem in section.value track by $index" ng-bind-html="valueItem | nl2br"></div>
		</div>
	</li>

</script>

<div ng-cloak class="row"  ng-controller="EntityController">

	<div ng-hide="entity.entityId || error" class="loading"></div>

	<div class="col-md-3" ng-show="entity.entityId">

		<!-- CURRENT QUERY STATUS -->
		<div class="row">
			<div class="col-md-12">

				<div ng-if="resultSize">
					<div ng-if="currentQuery.q || currentQuery.facets.length > 0" class="panel panel-default">

						<div class="panel-heading">

							<a ng-href="search{{currentQuery.removeParam('resultIndex').removeParam('offset').toString()}}"
							   class="btn btn-xs pull-right btn-primary">
								<span class="glyphicon glyphicon-arrow-left"></span> {{"ui_to_search_result"|transl8}}
							</a>

							<div>
								<b class="text-muted uppercase small">{{"ui_current_query"|transl8}}</b><br>
								<span ng-if="!currentQuery.label">{{currentQuery.q}}</span>
								<i ng-if="currentQuery.label">{{currentQuery.label}}</i>
							</div>

							<div ng-if="currentQuery.hasFacets()">
								<b class="text-muted uppercase small">{{"entity_active_filters"|transl8}}</b>
								<ul>
									<li ng-repeat="facet in currentQuery.facets">
										<small>
											<i>{{facet.key | transl8}}</i>
											<b style="text-transform:capitalize;"> &nbsp; {{facet.value}}</b>
										</small>
									</li>
								</ul>
							</div>

						</div>

						<ul class="list-group">

							<a ng-if="prevEntity"
							   ng-href="entity/{{prevEntity.entityId}}{{currentQuery.setParam('resultIndex',resultIndex-1).toString()}}"
							   class="list-group-item"
							   style="height:75px; overflow:hidden">
								<div>
									<b class="text-muted uppercase small">
										<span class="glyphicon glyphicon-chevron-left" style="color:black" ></span>
										&nbsp; {{"entity_previous_result"|transl8}}
									</b>
								</div>
								<div ar-entity-title entity="prevEntity"></div>

							</a>

							<li class="list-group-item" ng-hide="nextEntitySearch.size < 2" >
								<b class="text-muted uppercase small">{{"entity_shown_result"|transl8}}</b>
								<form ng-submit="go('/entity/' + currentQuery.setParam('resultIndex',resultIndexInput).toString())">
									<div class="input-group"
										 ng-class="{'has-error':(resultIndexInput < 1 || resultIndexInput > resultSize)}">
										<input ng-model="resultIndexInput"
											   type="number" size="4"
											   min="1" max="{{resultSize}}" class="form-control input-sm">
										<span ng-if="resultIndex == resultIndexInput" class="input-group-addon" style="border-top-right-radius: 3px; border-bottom-right-radius:3px; border-left:0;"><small>{{ 'ui_of' | transl8 }}</small> <strong>{{resultSize|number}}</strong></span>
							    	<span ng-hide="resultIndex == resultIndexInput" class="input-group-btn">
							    		<button class="btn btn-primary btn-sm" ng-click="go('/entity/' + currentQuery.setParam('resultIndex',resultIndexInput).toString())">{{ 'ui_goto' | transl8}}</button>
							    	</span>
									</div>
								</form>
							</li>

							<a ng-if="nextEntity"
							   ng-href="entity/{{nextEntity.entityId}}{{currentQuery.setParam('resultIndex',resultIndex+1).toString()}}"
							   class="list-group-item text-right"
							   style="height:75px; overflow:hidden">
								<div>
									<b class="text-muted uppercase small">
										&nbsp; {{"entity_next_result"|transl8}}
										<span class="glyphicon glyphicon-chevron-right" style="color:black" ></span>
									</b>
								</div>
								<div ar-entity-title entity="nextEntity"></div>

							</a>

						</ul>

					</div>

				</div>

			</div>
		</div>

		<!-- END CURRENT QUERY STATUS -->

		<!-- Karte -->
    	<div ng-if="entity.places">
			<h5 class="text-muted uppercase"><strong>{{'entity_places'|transl8}}</strong></h5>
        	<div class="well" entitymap places="entity.places" id="entitymap" style="height:200px;"></div>
    	</div>

		<!-- NOTES -->
		<div ng-if="user.username">
			<h5 class="text-muted uppercase"><strong>{{'entity_catalogs'|transl8}}</strong></h5>
			<button type="button" class="btn btn-default btn-sm" ng-click="createEntry()">
				<span class="glyphicon glyphicon-pushpin"></span> {{'entity_create_entry'|transl8}}
			</button>
		</div>
		<!-- END NOTES -->

	</div>

	<div ng-show="entity.entityId" class="col-md-9">

		<div class="row">

			<div class="col-md-8">
				<h2 class="page-title">
					<div class="title">
						{{ entity.title }} <span ng-if="!entity.title" class="capitalized">{{entity.type}}</span>
					</div>
					<div class="subtitle"><small>{{ entity.subtitle }}</small></div>
				</h2>
				<div>
					<small>
						<a ng-href="{{ serverUri }}entity/{{entity.entityId}}" target="_self">
							arachne.dainst.org/entity/{{entity.entityId}}
						</a>
					</small>
				</div>
			</div>

			<div class="col-md-4">
				<table class="table table-condensed" style="margin-bottom:0">
					<thead>
						<tr>
							<td><b>{{ 'entityId' | transl8 }}:</b></td>
{'fraction_non_alphanumeric': 0.20281710179981505, 'fraction_numerical': 0.007540727039908942, 'mean_word_length': 3.4110448697834954, 'pattern_counts': {'":': 0, '<': 375, '<?xml version=': 0, '>': 375, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7279540', 'n_tokens_mistral': 6065, 'n_tokens_neox': 4666, 'n_words': 746}