Commit fad32b82 authored by Mathias Goebel's avatar Mathias Goebel 🎠
Browse files

Merge branch 'feature/restructure-navbars' into 'develop'

Feature/restructure navbars (closes #32)

Closes #45 and #32

See merge request !17
parents a0cf7082 44d19d9e
......@@ -34,6 +34,11 @@ declare function nav:head($node as node(), $model as map(*)) {
case "item" return
element { node-name($node) } {
attribute href {$model("item")/@link},
if(contains(string($model("item")/@link), ":")
or string($model("item")/@link) = "info.html") then
attribute target {"_blank"},
if ($nav:langTest or not($model("subitem")/@*[local-name() ="label-" || $nav:lang]))
then string($model("item")/@label)
else string($model("item")/@*[local-name( . ) = "label-" || $nav:lang])
......@@ -54,6 +59,10 @@ declare function nav:subitem($node as node(), $model as map(*)) {
else if ($model("subitem")/name() != 'divider') then
element a {
if(string($model("subitem")/@link)) then attribute href { string($model("subitem")/@link)} else (),
if(contains(string($model("subitem")/@link), ":")) then
attribute target {"_blank"},
if ($nav:langTest or not($model("subitem")/@*[local-name() ="label-" || $nav:lang]))
then string($model("subitem")/@label)
else string($model("subitem")/@*[local-name( . ) = "label-" || $nav:lang])
<?xml version="1.0" encoding="UTF-8"?>
<item label="Über SADE" label-en="About SADE" link="docs/"/>
<submenu label="Dokumentation" label-en="Documentation">
<item label="Features" label-en="Features" link="docs/"/>
<item label="Anpassen des Portals" label-en="Customization" link="docs/"/>
<item label="Facetierte Suche" link="docs/"/>
<item label="Publizieren aus TextGridLab" link="docs/"/>
<item label="Facetierte Suche" label-en="Faceted search" link="docs/"/>
<item label="Publizieren aus TextGridLab" label-en="Publish data with the TextGrid Lab" link="docs/"/>
<submenu label="Weiterführende Links" label-en="Further Links">
<item label="eXist Dashboard" link="/exist/apps/dashboard/" target="_blank"/>
<item label="eXist Dokumentation" link=""/>
<item label="eXist XQuery Function Dokumentation" link="/exist/apps/fundocs/"/>
<item label="XQuery Wikibook" link=""/>
<item label="TextGrid Benutzerhandbuch" link=""/>
<item label="TextGrid Homepage" link=""/>
<item label="Info" link="info.html"/>
<item label="Technische Informationen" label-en="Technical information" link="info.html"/>
......@@ -79,30 +79,27 @@
<img id="footer__logo" src="~assets/generic/TextGridLogo.svg" alt="TextGrid"/>
<p> The leading virtual research environment provides outstanding
services for the humanities. Get in touch and join us – you are
welcome. </p>
services for the humanities. Get in touch and join us! </p>
<p> Prof. Dr. Wolfram Horstmann <br/> Platz der Göttinger Sieben 1
<br/> 37073 Göttingen, Germany <br/>
<div><a href="">Imprint</a></div>
<div><a href="">Privacy Policy</a></div>
<a href="" target="_blank">Imprint</a>
<a href="" target="_blank">Privacy Policy</a>
<div class="col-xs-6 col-sm-3">
<div class="footer__col">
<h3 class="footer__header"> More about SADE </h3>
<ul class="footer__content">
<a href="docs/">Features</a>
<a href="docs/">Developer Guide</a>
<a href="docs/">Publish Data via TextGrid</a>
<a href="sitemap.xml">Sitemap</a>
<a href="sitemap.xml">Sitemap.xml</a>
......@@ -111,16 +108,16 @@
<div class="footer__col">
<h3 class="footer__header">Who is using SADE?</h3>
<a href="">Theodor Fontane:
<a href="" target="_blank">Theodor Fontane:
<a href="">Bibliothek der Neologie</a>
<a href="" target="_blank">Bibliothek der Neologie</a>
<a href="">Architrave</a>
<a href="" target="_blank">Architrave</a>
<p>and many more.</p>
<p>... and many more.</p>
......@@ -143,13 +140,13 @@
<!-- JavaScript
================================================== -->
<!-- JS Global -->
<script src="~assets/v2/js/jquery-1.11.3.min.js"/>
<script src="~assets/v2/bootstrap/js/bootstrap.min.js"/>
<script src="~assets/v2/js/jquery-1.11.3.min.js"></script>
<script src="~assets/v2/bootstrap/js/bootstrap.min.js"></script>
<!-- JS Plugins -->
<script src="~assets/v2/plugins/scrolltopcontrol/scrolltopcontrol.js"/>
<script src="~assets/v2/plugins/scrolltopcontrol/scrolltopcontrol.js"></script>
<!-- JS Custom -->
<script src="~assets/v2/js/custom.js"/>
<script src="~assets/v2/js/custom.js"></script>
<!-- Conditional Script Injection (CSI) -->
<script data-template="app:javascript-injection"/>
<script data-template="app:javascript-injection"></script>
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