Commit 4dbb87ff authored by mrodzis's avatar mrodzis 🌎
Browse files

Merge branch 'feature/#65-navbar-in-edited-text' into 'develop'

Feature/#65 navbar in edited text

Closes #65

See merge request !31
parents 65c9076e 9bdd5828
......@@ -336,23 +336,49 @@ declare function f-misc:content($node as node(), $model as map(*), $id, $page){
declare function f-misc:editedTextContent($node as node(), $model as map(*), $id) {
let $xml := request:get-parameter-names()
let $xml := request:get-parameter("page", "")
let $util:= util:log-system-out($xml)
let $util:= util:log-system-out($id)
return
<div id="optionsBtn" class="col-xs-1 col-md-2 col-md-offset-3 dropdown">
<h1 class="animated slideInLeft edited-text-nav-btn">
<span class="hidden-md hidden-lg"><i class="fa fa-file-image-o"></i></span>
<span class="hidden-sm hidden-xs">Optionen <i class="fa fa-chevron-down"></i></span>
<div id="nb-title" class="col-xs-2 col-md-2 col-md-offset-1" title="reset layout">
<h1 class="animated slideInLeft">
<span>{f-misc:nbTitle(request:get-parameter('id', ''), $model)}</span>
</h1>
</div>,
<div id="optionsBtn" class="col-xs-2 col-md-3 col-md-offset-1 dropdown">
<h1 class="animated slideInLeft edited-text-nav-btn dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown">
<span class="hidden-md hidden-lg"><i class="fa fa-cogs"></i></span>
<span class="hidden-sm hidden-xs">Registereinträge <i class="fa fa-chevron-down"></i></span>
</h1>
<ul class="dropdown-menu et-dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
<li role="presentation"><a class="options-item" id="persons">Zeige Personen</a></li>
<li role="presentation"><a class="options-item" id="works">Zeige Werke</a></li>
<li role="presentation"><a class="options-item" id="place">Zeige Orte</a></li>
<li role="presentation"><a class="options-item" id="orgs">Zeige Institutionen und Körperschaften</a></li>
<li role="presentation"><a class="options-item" id="event">Zeige Ereignisse</a></li>
<li role="presentation" class="divider"></li>
<li role="presentation"><a class="clear-item">Blende alle Registereinträge aus</a></li>
</ul>
</div>,
<div id="synBtn" class="col-xs-1 col-md-3 col-md-offset-2">
<div id="synBtn" class="col-xs-2 col-md-3 col-md-offset-1">
<a href="edition.html?id={$id}&amp;page=" onclick="goldenState('code')">
<h1 class="animated slideInLeft">
<span class="hidden-md hidden-lg"><i class="fa fa-file-text-o"></i></span>
<span class="hidden-sm hidden-xs">Zur synoptischen Ansicht</span>
<span class="hidden-sm hidden-xs">Synoptische Ansicht</span>
</h1>
</a>
</div>
</div>,
<div class="col-xs-5 col-md-1">
<h1 id="infoViewBtn" class="animated slideInRight inactive">
<span>
<i class="fa fa-info-circle"></i>
</span>
</h1>
</div>,
<div class="section-header animated slideInTop" id="infoView" style="display:none; position:fixed; z-index:100; width: 100%;margin-top: 37px;">
<div class="container">
Informationen zu Schreiberhänden/Schreibmedien und anderen Details erhalten Sie durch Bewegen der Maus über den Text.
</div>
</div>,
<div id="helperUnderSectionHeader" style="height: 75px;"/>
};
......@@ -622,16 +648,44 @@ else ()
declare function f-misc:notebookNav($node as node(), $model as map(*)) {
<a id="navPrev" href="">
<!-- slash needed in LIVE? -->
<i class="fa fa-chevron-left"></i>
<span id="navPrevInfo"> voriges Notizbuch </span>
</a>,
<a id="navNext" href="">
<!-- slash needed in LIVE? -->
<span id="navNextInfo"> nächstes Notizbuch </span>
<i class="fa fa-chevron-right"></i>
</a>
let $showcases :=
(
"3qtcz.xml", (: case C :)
"3qtqv.xml", (: case A :)
"3qtqw.xml", (: case B :)
"3qtqx.xml", (: case D :)
"3qtqz.xml" (: case E :)
)
let $showcases :=
for $case in $showcases return
doc("/db/sade-projects/textgrid/data/xml/data/" || $case)
let $current-nb-uri :=
request:get-parameter("id", "")
=> substring-after("data/")
=> substring-before(".xml")
let $prev-nb := $showcases//*[@href = $current-nb-uri]/preceding-sibling::*[1]/@href
let $next-nb := $showcases//*[@href = $current-nb-uri]/following-sibling::*[1]/@href
let $prev-nb-title := $showcases//*[@href = $current-nb-uri]/preceding-sibling::*[1]/@type/string()
let $next-nb-title := $showcases//*[@href = $current-nb-uri]/following-sibling::*[1]/@type/string()
return
(if($prev-nb) then
<a id="navPrev" href="edierter-text.html?id=/xml/data/{$prev-nb}.xml&amp;page=">
<!-- slash needed in LIVE? -->
<i class="fa fa-chevron-left"></i>
<span id="navPrevInfo" class="etNavPrevInfo">gehe zu {$prev-nb-title}</span>
</a>
else
(),
if($next-nb) then
<a id="navNext" href="edierter-text.html?id=/xml/data/{$next-nb}.xml&amp;page=">
<!-- slash needed in LIVE? -->
<span id="navNextInfo" class="etNavNextInfo">gehe zu {$next-nb-title}</span>
<i class="fa fa-chevron-right"></i>
</a>
else
())
};
......
Markdown is supported
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