<commit_before><%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="s"%>
<%@ taglib tagdir="/WEB-INF/tags/layout" prefix="l"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ page import="java.util.*, org.dainst.gazetteer.domain.Thesaurus"%>
<%@ page contentType="text/html; charset=utf-8" session="false"%>

<l:page title="${thesaurus.title}">

	<jsp:attribute name="subtitle">
		
	</jsp:attribute>

	<jsp:body>
	
		<div class="row-fluid">
		
			<div class="span7 well">
				<div id="thesaurusTree" style="height:500px; overflow: auto;"></div>
			</div>
			
			<div class="span5 well">
				<l:map height="500px"/>
			</div>
			
		</div>
		
		<script type="text/javascript">		

		$(function () {
			$("#thesaurusTree").bind("loaded.jstree", function (event, data) {
				console.log("loaded tree");
		    }).jstree({ 
				"json_data" : {
					"data": [
						<c:forEach var="place" items="${places}" varStatus="status">
							{
								"data": {
									"title": "${place.prefName.title}",
									"attr": { "href": "${baseUri}place/${place.id}" }
								},
								"metadata": { id: "${place.id}" },
								"state" : "closed"
							}<c:if test="${status.count lt fn:length(places)}">,</c:if>
						</c:forEach>
					],
					"ajax": {
						"url": function(n) { return "${baseUri}/place?limit=10000&q=parent:" + n.data("id"); },
						"error":  function(data) {
							console.log("ERROR:");
							console.log(data);
						},
						"success": function(data) {
							console.log(data);
							var result = [];
							$(data).each(function(index, place) {
								result[index] = { 
									data: { 
										title: place.prefName.title,
										attr: { href: "${baseUri}place/" + place.gazId }
									},
									metadata: { id: place.gazId }
								};<commit_msg>fixed uris in thesaurus tree view<commit_after><%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="s"%>
<%@ taglib tagdir="/WEB-INF/tags/layout" prefix="l"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ page import="java.util.*, org.dainst.gazetteer.domain.Thesaurus"%>
<%@ page contentType="text/html; charset=utf-8" session="false"%>

<l:page title="${thesaurus.title}">

	<jsp:attribute name="subtitle">
		
	</jsp:attribute>

	<jsp:body>
	
		<div class="row-fluid">
		
			<div class="span7 well">
				<div id="thesaurusTree" style="height:500px; overflow: auto;"></div>
			</div>
			
			<div class="span5 well">
				<l:map height="500px"/>
			</div>
			
		</div>
		
		<script type="text/javascript">		

		$(function () {
			$("#thesaurusTree").bind("loaded.jstree", function (event, data) {
				console.log("loaded tree");
		    }).jstree({ 
				"json_data" : {
					"data": [
						<c:forEach var="place" items="${places}" varStatus="status">
							{
								"data": {
									"title": "${place.prefName.title}",
									"attr": { "href": "${baseUri}doc/${place.id}.html" }
								},
								"metadata": { id: "${place.id}" },
								"state" : "closed"
							}<c:if test="${status.count lt fn:length(places)}">,</c:if>
						</c:forEach>
					],
					"ajax": {
						"url": function(n) { return "${baseUri}search?limit=10000&q=parent:" + n.data("id"); },
						"error":  function(data) {
							console.log("ERROR:");
							console.log(data);
						},
						"success": function(data) {
							console.log(data);
							var result = [];
							$(data).each(function(index, place) {
								result[index] = { 
									data: { 
										title: place.prefName.title,
										attr: { href: "${baseUri}doc/" + place.gazId + ".html" }
									},
									metadata: { id: place.gazId }
								};
{'fraction_non_alphanumeric': 0.22151731430081945, 'fraction_numerical': 0.007401533174729051, 'mean_word_length': 2.772681954137587, 'pattern_counts': {'":': 20, '<': 51, '<?xml version=': 0, '>': 51, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6738579', 'n_tokens_mistral': 1819, 'n_tokens_neox': 1326, 'n_words': 214}