Commit 44d19d9e authored by mrodzis's avatar mrodzis 🐸 Committed by Mathias Goebel
Browse files

Feature/restructure navbars (closes #32)

parent a0cf7082
......@@ -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
()
else
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
()
else
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"?>
<navigation>
<item label="Über SADE" label-en="About SADE" link="docs/about.md"/>
<submenu label="Dokumentation" label-en="Documentation">
<item label="Features" label-en="Features" link="docs/features.md"/>
<item label="Anpassen des Portals" label-en="Customization" link="docs/customization.md"/>
<item label="Facetierte Suche" link="docs/faceted-search.md"/>
<item label="Publizieren aus TextGridLab" link="docs/publish.md"/>
<item label="Facetierte Suche" label-en="Faceted search" link="docs/faceted-search.md"/>
<item label="Publizieren aus TextGridLab" label-en="Publish data with the TextGrid Lab" link="docs/publish.md"/>
</submenu>
<submenu label="Weiterführende Links" label-en="Further Links">
<item label="eXist Dashboard" link="/exist/apps/dashboard/" target="_blank"/>
<item label="eXist Dokumentation" link="http://exist-db.org/exist/apps/doc/"/>
<item label="eXist XQuery Function Dokumentation" link="/exist/apps/fundocs/"/>
<divider/>
<item label="XQuery Wikibook" link="http://en.wikibooks.org/wiki/XQuery"/>
<item label="TextGrid Benutzerhandbuch" link="https://dev2.dariah.eu/wiki/display/TextGrid/User+Manual+2.0"/>
<item label="TextGrid Homepage" link="http://textgrid.de"/>
</submenu>
<item label="Info" link="info.html"/>
<item label="Technische Informationen" label-en="Technical information" link="info.html"/>
</navigation>
......@@ -79,30 +79,27 @@
<img id="footer__logo" src="~assets/generic/TextGridLogo.svg" alt="TextGrid"/>
</h3>
<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/> anfragen@textgrid.de
</p>
<div><a href="https://de.dariah.eu/en_US/impressum">Imprint</a></div>
<div><a href="https://de.dariah.eu/en_US/privacy-policy">Privacy Policy</a></div>
<div>
<a href="https://de.dariah.eu/en_US/impressum" target="_blank">Imprint</a>
</div>
<div>
<a href="https://de.dariah.eu/en_US/privacy-policy" target="_blank">Privacy Policy</a>
</div>
</div>
</div>
<div class="col-xs-6 col-sm-3">
<div class="footer__col">
<h3 class="footer__header"> More about SADE </h3>
<ul class="footer__content">
<li>
<a href="docs/about.md">Features</a>
</li>
<li>
<a href="docs/develop.md">Developer Guide</a>
</li>
<li>
<a href="docs/publish.md">Publish Data via TextGrid</a>
</li>
<li>
<a href="sitemap.xml">Sitemap</a>
<a href="sitemap.xml">Sitemap.xml</a>
</li>
</ul>
</div>
......@@ -111,16 +108,16 @@
<div class="footer__col">
<h3 class="footer__header">Who is using SADE?</h3>
<p>
<a href="https://fontane-nb.dariah.eu">Theodor Fontane:
<a href="https://fontane-nb.dariah.eu" target="_blank">Theodor Fontane:
Notizbücher</a>
</p>
<p>
<a href="http://bdn-edition.de">Bibliothek der Neologie</a>
<a href="http://bdn-edition.de" target="_blank">Bibliothek der Neologie</a>
</p>
<p>
<a href="https://architrave.eu">Architrave</a>
<a href="https://architrave.eu" target="_blank">Architrave</a>
</p>
<p>and many more.</p>
<p>... and many more.</p>
</div>
</div>
</div>
......@@ -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>
</body>
</html>
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