Commit 3cbe8c08 authored by barth23's avatar barth23
Browse files

cleanup

parent 7c41f5d1
......@@ -9,7 +9,7 @@ declare option exist:serialize "method=xhtml media-type=text/html";
declare variable $button_parameter := "persons";
declare variable $language_parameter := "de";
declare variable $letter_value := "button_unnamed";
declare variable $letter_text := "unnamedXXX";
declare variable $letter_text := "unnamed";
:)
declare variable $button_parameter := request:get-parameter("button_parameter", ());
declare variable $language_parameter := request:get-parameter("language_parameter", ());
......@@ -84,22 +84,13 @@ if ($letter_value = "button_unnamed") then
attribute href {"#/"},
attribute onclick {$openEntity || "('" || $entityAbbr || ":" || data($entityElements[$pos]/@xml:id) || "')"},
attribute textgriduri {"('" || $entityAbbr || ":" || data($entityElements[$pos]/@xml:id) || "')"},
(:German Persons: Möglichkeit Kategorie wählen, eine Entität ohne Kategorie :)
(:$entityElements[$pos]/tei:occupation[@xml:lang=$language]/text():)
(:German Orte: Ein Ort ohne Name -> aber fra+current hat Name -> übertragen :)
(:||$entityElements[$pos]/tei:placeName[@xml:lang="fra" and @type='current']/text():)
string($letter_text)
(:German/French Works: Jeweils dt/fra :)
}
}
else
for $EntityName at $pos in $EntityNames
(:
for $index in (1 to count($entityElements))
where starts-with($place, $letter_value) :)
let $tgUri := data($entityElements[$pos]/@xml:id)
where matches(string($EntityNames[$pos]), $letter_query)
order by $EntityName/text()
......
......@@ -26,10 +26,6 @@
li { margin-bottom: 10px; }
/*
margin: 25px 0px 0px 0px;
.p-content {
width: 81.25vw;
max-width: 1200px;
......@@ -47,10 +43,6 @@
<div data-template="templates:surround" data-template-with="templates/modal_register.html" data-template-at="content-container"/>
<!--
<div class="arch-content p-content row">
<div class="row arch-list-view-toolbar">
-->
<div id="content-container">
......@@ -196,33 +188,10 @@
</div>
<!--
<script src="https://browser.sentry-cdn.com/5.15.5/bundle.min.js" integrity="sha384-wF7Jc4ZlWVxe/L8Ji3hOIBeTgo/HwFuaeEfjGmS3EXAG7Y+7Kjjr91gJpJtr+PAT" crossorigin="anonymous">
</script>
<script src="templates/js/jquery-3.3.1.min.js"/>
<script src="templates/js/popper.min.js"/>
<script src="templates/js/bootstrap.min.js"/>
<script src="templates/js/font-awesome-all.js"/>
-->
<!--
<script type="text/javascript" src="templates/js/scripts.js"/>
<script type="text/javascript" src="templates/js/errors.js"/>
-->
<script type="text/javascript" src="templates/js/jquery.browser.min.js"/>
<!--
<script type="text/javascript" src="templates/js/imageviewer.min.js"/>
<script type="text/javascript" src="templates/js/goldenlayout.min.js"/>
<script type="text/javascript" src="templates/js/edition_synoptic.js"/>
-->
<script type="text/javascript" src="templates/js/edition.js"/>
<!--
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML"/>
<script type="text/javascript" src="templates/js/clipboard.min.js"/>
-->
<script type="text/javascript" src="templates/js/registers.js"/>
<script>$.ajaxPrefilter(function( options, originalOptions, jqXHR ) { options.async = true; });</script>
<script>
// LOAD CONTENT FOR INITAL BUTTON
......@@ -232,21 +201,12 @@
var button_value = $("input[name='register_button']:checked").attr("value");
// LOAD PARAMETER FOR FIRST OPTION (persons) in selected language:
// - Personen/personnes
//var language = $("span &gt; lang[key]")[0].innerHTML;
var language = $("span &gt; lang").attr("key");
//var language = $("/html/body/header/nav/div[2]/ul[1]/li[1]/div/a[1][@data-template-to]")
//console.log(language)
//console.log($("span &gt; lang").attr("key"))
// LOAD INITIAL LETTER VALUE
//var letter_value = $("button[name='letter_button']").attr("value");
var letter_value = $("input[name='letter_button']:checked").attr("value");
var letter_text = $("input[name='letter_button']:checked").parent()[0].innerText;
//console.log(letter_value)
$.post("modules/architrave/transform_register.xq",
{
button_parameter: button_value,
......@@ -262,7 +222,6 @@
/////////////////////////////////
$("input[name='register_button']").change(function(){
// LOAD *CHANGED* VALUES
//var button_value = this.value;
var button_value = $("input[name='register_button']:checked").attr("value");
var letter_value = $("input[name='letter_button']:checked").attr("value");
var letter_text = $("input[name='letter_button']:checked").parent()[0].innerText;
......@@ -282,14 +241,11 @@
// HANDLING WHEN LETTER BUTTON IS CHANGED
/////////////////////////////////
//$("button[name='letter_button']").click(function(){
$("input[name='letter_button']").change(function(){
// LOAD *CHANGED* VALUES
//var letter_value = this.value;
var button_value = $("input[name='register_button']:checked").attr("value");
var letter_value = $("input[name='letter_button']:checked").attr("value");
var letter_text = $("input[name='letter_button']:checked").parent()[0].innerText;
//console.log($("input[name='letter_button']:checked").parent()[0].innerText)
$.post("modules/architrave/transform_register.xq",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment