Commit 1c65b77f authored by barth23's avatar barth23
Browse files

modals for unnamed entities (outcommented: 2 options for listing instead)

parent 26b0f61a
......@@ -8,8 +8,8 @@ declare option exist:serialize "method=xhtml media-type=text/html";
(:
declare variable $button_parameter := "persons";
declare variable $language_parameter := "de";
declare variable $letter_value := "Aa";
declare variable $letter_text := "A";
declare variable $letter_value := "button_unnamed";
declare variable $letter_text := "unnamedXXX";
:)
declare variable $button_parameter := request:get-parameter("button_parameter", ());
declare variable $language_parameter := request:get-parameter("language_parameter", ());
......@@ -28,6 +28,7 @@ else if ($button_parameter = "places") then doc("/db/apps/sade-architrave/templa
else if ($button_parameter = "works") then doc("/db/apps/sade-architrave/templates/register/works.xml")//tei:item/tei:name[@xml:lang=$language]
else();
declare variable $entityClass :=
if ($button_parameter = "persons") then "persName"
else if ($button_parameter = "places") then "placeName"
......@@ -63,10 +64,33 @@ else "^[" || $letter_value || "]";
<h2>{string($letter_text)}</h2>
{
if ($letter_value = "button_unnamed") then
for $EntityName in $EntityNames
where $EntityName = ''
for $EntityName at $pos in $EntityNames
(:
VARIABLE $tgUri DOESNT WORK HERE IN CONTRAST TO THE ELSE STATEMENT BELOW
let $tgUri := data($entityElements[$pos]/@xml:id)
:)
where $EntityName[not(text())]
return
element xhtml:li
{
element xhtml:a
{
attribute class {$entityClass},
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)
}
}
(:
<li><a class="placeName" href="#" onclick="openPlaceName('plc:textgrid:3pg0g')" textgriduri="plc:textgrid:3pg0g">Unnamed</a></li>
:)
else
for $EntityName at $pos in $EntityNames
......
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