Commit 84298e0d authored by Gradl, Tobias's avatar Gradl, Tobias
Browse files

1252: Migrate main (top) navigation items

Task-Url: https://pm.winseda.de/issues/1252
parent dbd843de
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<footer role="contentinfo" class="footer">
<span>&copy; <fmt:formatDate value="${date}" pattern="yyyy" />
<a href="http://de.dariah.eu">DARIAH-DE</a>
<c:if test="${customSearch!=null && customSearch.staticCustomSearch==true}">
| <a href="${customSearch.mainUrl}">${customSearch.acronym}</a>
</c:if>
</span>
<ul class="pull-right inline">
<c:choose>
<c:when test="${customSearch!=null && customSearch.staticCustomSearch==true}">
<c:if test="${customSearch.legalInformationUrl!=null && customSearch.legalInformationUrl!=''}"><li><a href="${customSearch.legalInformationUrl}"><s:message code="~eu.dariah.de.minfba.common.link.legal_information" /></a></li></c:if>
<c:if test="${customSearch.privacyUrl!=null && customSearch.privacyUrl!=''}"><li><a href="${customSearch.privacyUrl}"><s:message code="~eu.dariah.de.minfba.common.link.privacy" /></a></li></c:if>
<c:if test="${customSearch.contactUrl!=null && customSearch.contactUrl!=''}"><li><a href="${customSearch.contactUrl}"><s:message code="~eu.dariah.de.minfba.common.link.contact" /></a></li></c:if>
</c:when>
<c:otherwise>
<li><a href="https://de.dariah.eu/impressum"><s:message code="~eu.dariah.de.minfba.common.link.legal_information" /></a></li>
<li><a href="https://de.dariah.eu/privacy-policy"><s:message code="~eu.dariah.de.minfba.common.link.privacy" /></a></li>
<li><a href="https://de.dariah.eu/kontakt"><s:message code="~eu.dariah.de.minfba.common.link.contact" /></a></li>
</c:otherwise>
</c:choose>
<li><a href="https://gitlab.rz.uni-bamberg.de/dariah/search"><i class="fa fa-gitlab fa-2x" aria-hidden="true"></i></a></li>
</ul>
<footer class="footer">
<div class="container-fluid" style="max-width: 1200px">
<div class="row">
<div class="footer-left">
<div>
<p>
<a href="https://de.dariah.eu/impressum/"><s:message code="~eu.dariah.de.minfba.common.link.legal_information" /></a>
<a href="https://de.dariah.eu/datenschutz/"><s:message code="~eu.dariah.de.minfba.common.link.privacy" /></a>
<a href="https://de.dariah.eu/kontakt/"><s:message code="~eu.dariah.de.minfba.common.link.contact" /></a>
<a href="https://gitlab.rz.uni-bamberg.de/dariah/search"><i class="fab fa-gitlab fa-lg"></i> GitLab</a>
</p>
</div>
<div>
<p>
<s:message code="~eu.dariah.de.minfba.common.labels.license">
<s:argument><a href="https://creativecommons.org/licenses/by/4.0/"><s:message code="~eu.dariah.de.minfba.common.labels.license.ccby40" /></a></s:argument>
</s:message>
</p>
</div>
<p>
<a href="https://de.dariah.eu/">
DARIAH-DE
<br>
<small><s:message code="~eu.dariah.de.minfba.common.labels.dariah" /></small>
</a>
</p>
</div>
<div class="footer-right">
<p>
<a href="https://www.bmbf.de/">
<img alt="Gefrdert vom Bundesministerium fr Bildung und Forschung" src="<s:url value="/resources/img/logos/bmbf-logo.svg" />" height="108">
</a>
</p>
<p>
<small><s:message code="~eu.dariah.de.minfba.common.labels.project_number" /></small>
</p>
</div>
</div>
</div>
</footer>
\ No newline at end of file
......@@ -7,38 +7,20 @@
<meta name="author" content="Tobias Gradl, University of Bamberg">
<meta name="description" content="<tiles:insertAttribute name="title" />">
<meta name="description" content="DARIAH-DE - Generic Search">
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />
<tiles:importAttribute name="styles" />
<c:forEach items="${styles}" var="css">
<link rel="stylesheet" href="<s:url value="/resources/css/${css}" />" type="text/css" media="screen, projection" />
</c:forEach>
</c:forEach>
<c:if test="${customSearch!=null && customSearch.staticCustomSearch==true}">
<style>
<%@ include file="customSearch.css" %>
</style>
</c:if>
<script type="text/javascript">
var AppProperties = function() {
this.refreshViews = <c:out value="${_refreshViews}"/>;
this.refreshIntervalMs = 5000;
this.notificationsArea = "#notifications-area";
this.notificationsTimeoutMs = 5000;
this.notificationsFadeSpeed = 400;
};
var __properties = new AppProperties();
</script>
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link rel="shortcut icon" type="image/png" href="<s:url value="/resources/img/page_icon.png" />" />
<link rel="shortcut icon" type="image/png" href="<s:url value="/resources/img/favicon-template.png" />" />
</head>
\ No newline at end of file
......@@ -3,41 +3,30 @@
<%@ taglib prefix="s" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="tpl" tagdir="/WEB-INF/tags" %>
<div class="list-group nav active">
<h4 class="sidebar-title"><s:message code="~eu.dariah.de.colreg.titles.collection_registry" /></h4>
<a class="list-group-item${_navigationAttribute=='dashboard' ? ' active' : ''}" href="<s:url value='/' />"><s:message code="~eu.dariah.de.colreg.view.common.labels.dashboard" /></a>
<hr />
<c:forEach items="${_nav.rootItems}" var="_navItem">
<c:set var="hide" value="false" />
<c:forEach items="${_navItem.attributes}" var="attr">
<c:if test="${customSearch!=null && customSearch.staticCustomSearch==false && attr.key=='hideInCustomSearch' && attr.value==true}">
<c:set var="hide" value="true" />
</c:if>
</c:forEach>
<c:if test="${hide==false && (_navItem.hideInSidebar==false && (_navItem.authRequired==false ||
( (_navItem.authRequired==true && _auth!=null && _auth.auth==true) &&
( _navItem.authMinLevel==0 || (_navItem.authMinLevel<=_auth.level)) )))}">
<div class="list-group nav active">
<h4 class="sidebar-title">
<c:choose>
<c:when test="${_navItem.linkUrl!=null && fn:length(_navItem.linkUrl)>0}">
<a href="<s:url value='${_navItem.linkUrl}'/>">
<c:if test="${_navItem.glyphicon!=null && fn:length(_navItem.glyphicon)>0}">
<span class="${_navItem.glyphicon}"></span>&nbsp;
</c:if>
<s:message code="${_navItem.displayCode}" />
</a>
</c:when>
<c:otherwise>
<c:if test="${_navItem.glyphicon!=null && fn:length(_navItem.glyphicon)>0}">
<span class="${_navItem.glyphicon}"></span>&nbsp;
</c:if>
<s:message code="${_navItem.displayCode}" />
</c:otherwise>
</c:choose>
</h4>
<tpl:sideNav navItem="${_navItem}"></tpl:sideNav>
</div>
<c:choose>
<c:when test="${_auth!=null && _auth.auth==true}">
<h5 class="list-group-header"><s:message code="~eu.dariah.de.colreg.titles.collections" /></h5>
<a class="list-group-item${_navigationAttribute=='drafts' ? ' active' : ''}" href="<s:url value='/drafts/' />"><s:message code="~eu.dariah.de.colreg.view.common.labels.drafts" arguments="${_draftCount}" /></a>
<a class="list-group-item${_navigationAttribute=='collections' ? ' active' : ''}" href="<s:url value='/collections/' />"><s:message code="~eu.dariah.de.colreg.titles.public_collections" /></a>
<hr />
</c:when>
<c:otherwise>
<a class="list-group-item${_navigationAttribute=='collections' ? ' active' : ''}" href="<s:url value='/collections/' />"><s:message code="~eu.dariah.de.colreg.titles.collections" /></a>
</c:otherwise>
</c:choose>
<a class="list-group-item${_navigationAttribute=='agents' ? ' active' : ''}" href="<s:url value='/agents/' />"><s:message code="~eu.dariah.de.colreg.titles.agents" /></a>
<c:if test="${_vocabularies!=null && fn:length(_vocabularies)>0}">
<hr />
<h5 class="list-group-header"><s:message code="~eu.dariah.de.colreg.titles.vocabularies" /></h5>
<c:forEach items="${_vocabularies}" var="vocabulary">
<a class="list-group-item${_navigationAttribute==vocabulary.identifier ? ' active' : ''}" href="<s:url value='/vocabularies/${vocabulary.id}/' />">${vocabulary.localizedLabel}</a>
</c:forEach>
</c:if>
</c:forEach>
\ No newline at end of file
</div>
\ No newline at end of file
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="tpl" tagdir="/WEB-INF/tags" %>
<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles" %>
<header role="banner" class="navbar navbar-default navbar-static-top <c:if test="${navbarInverse==true}">navbar-inverse</c:if>">
<div class="container<c:if test="${fluidLayout==true}">-fluid</c:if>">
<div class="row">
<div class="col-sm-11 col-sm-offset-1">
<div class="navbar-header">
<button data-target=".bs-navbar-collapse" data-toggle="collapse" type="button" class="navbar-toggle">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<nav role="navigation" class="collapse navbar-collapse bs-navbar-collapse">
<!-- Main top navigation built from configuration -->
<ul class="nav navbar-nav">
<c:choose>
<c:when test="${customSearch!=null && customSearch.staticCustomSearch==true}">
<a class="brand navbar-brand" href="${customSearch.mainUrl}">${customSearch.acronym}</a>
</c:when>
<c:otherwise>
<li id="home_button" class="dropdown">
<a class="brand dropdown-toggle navbar-brand" data-toggle="dropdown" href="#">
<span class="caret"></span>
DARIAH-DE
</a>
<ul id="home_dropdown_menu" class="dropdown-menu">
<li class="dropdown-submenu">
<a tabindex="-1" href="#">DARIAH-DE</a>
<ul class="dropdown-menu">
<li><a href="http://de.dariah.eu">DARIAH-DE Home</a></li>
<li class="divider"></li>
<li><a href="http://textgrid.de/ ">TextGrid</a></li>
</ul>
</li>
<li class="divider"></li>
<li class="dropdown-submenu">
<a tabindex="-1" href="#">DARIAH-EU</a>
<ul class="dropdown-menu">
<li><a href="http://www.dariah.eu/">DARIAH-EU Home</a></li>
</ul>
</li>
</ul>
</li>
</c:otherwise>
</c:choose>
<c:forEach items="${_nav.rootItems}" var="_navItem">
<c:set var="hide" value="false" />
<c:forEach items="${_navItem.attributes}" var="attr">
<c:if test="${customSearch!=null && customSearch.staticCustomSearch==false && attr.key=='hideInCustomSearch' && attr.value==true}">
<c:set var="hide" value="true" />
</c:if>
</c:forEach>
<c:if test="${hide==false && (_navItem.authRequired==false || ( (_navItem.authRequired==true && _auth!=null && _auth.auth==true) &&
( _navItem.authMinLevel==0 || (_navItem.authMinLevel<=_auth.level)) ))}">
<c:choose>
<c:when test="${_navItem.subItems!=null && fn:length(_navItem.subItems)>0}">
<li class="dropdown <c:if test="${_navItem.active || _navItem.childActive}"> active</c:if>">
<a aria-expanded="false" role="button" data-toggle="dropdown" class="dropdown-toggle" href="#">
<c:if test="${_navItem.glyphicon!=null && fn:length(_navItem.glyphicon)>0}">
<span class="${_navItem.glyphicon}"></span>&nbsp;
</c:if>
<s:message code="${_navItem.displayCode}" />
<span class="caret"></span>
</a>
<ul role="menu" class="dropdown-menu">
<tpl:topNav navItem="${_navItem}" />
</ul>
</li>
</c:when>
<c:otherwise>
<li<c:if test="${_navItem.active || _navItem.childActive}"> class="active"</c:if>>
<a href="<s:url value='${_navItem.linkUrl}'/>">
<c:if test="${_navItem.glyphicon!=null && fn:length(_navItem.glyphicon)>0}">
<span class="${_navItem.glyphicon}"></span>&nbsp;
</c:if>
<s:message code="${_navItem.displayCode}" />
</a>
</li>
</c:otherwise>
</c:choose>
</c:if>
</c:forEach>
</ul>
<!-- Elements for language selection and login/logout -->
<ul class="nav navbar-nav navbar-right">
<!-- No language selection in Cosmotool currently
<li class="dropdown">
<a aria-expanded="false" role="button" data-toggle="dropdown" class="dropdown-toggle" href="#">
<span class="glyphicon glyphicon-globe"></span> <s:message code="~eu.dariah.de.minfba.common.i18n.language" /> <span class="caret"></span>
</a>
<ul role="menu" class="dropdown-menu">
<c:forEach items="${_LANGUAGES}" var="_LANGUAGE">
<li role="presentation">
<a href="?lang=${_LANGUAGE.key}">
<img src="<s:url value="/resources/img/flags/flag_${_LANGUAGE.key}.png" />" height="32" width="32" alt="${_LANGUAGE.value}" /> ${_LANGUAGE.value}
</a>
</li>
</c:forEach>
</ul>
</li> -->
<tiles:importAttribute name="collapsePanel" ignore="true" />
<header>
<nav class="navbar navbar-expand-xl bg-primary navbar-dark">
<div class="container-fluid" style="max-width: 1200px">
<button class="navbar-toggler" type="button" data-toggle="collapse"
data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false"
aria-label="Toggle navigation">
<span class="ti-menu"></span>
<s:message code="~eu.dariah.de.colreg.common.menu" />
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<c:forEach items="${_nav.rootItems}" var="_navItem">
<c:set var="hide" value="false" />
<c:forEach items="${_navItem.attributes}" var="attr">
<c:if test="${customSearch!=null && customSearch.staticCustomSearch==false && attr.key=='hideInCustomSearch' && attr.value==true}">
<c:set var="hide" value="true" />
</c:if>
</c:forEach>
<c:if test="${hide==false && (_navItem.authRequired==false || ( (_navItem.authRequired==true && _auth!=null && _auth.auth==true) &&
( _navItem.authMinLevel==0 || (_navItem.authMinLevel<=_auth.level)) ))}">
<c:choose>
<c:when test="${_navItem.subItems!=null && fn:length(_navItem.subItems)>0}">
<li class="nav-item dropdown<c:if test="${_navItem.active || _navItem.childActive}"> active</c:if>">
<a class="nav-link" href="#" id="${_navItem.id}Dropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<c:if test="${_navItem.iconClass!=null && fn:length(_navItem.iconClass)>0}">
<i class="${_navItem.iconClass}"></i>&nbsp;
</c:if>
<s:message code="${_navItem.displayCode}" /> <span class="ti-angle-down"></span>
</a>
<div class="dropdown-menu" aria-labelledby="${_navItem.id}Dropdown">
<tpl:topNav navItem="${_navItem}" />
</div>
</li>
</c:when>
<c:otherwise>
<li class="nav-item<c:if test="${_navItem.active || _navItem.childActive}"> active</c:if>">
<a class="nav-link" href="<s:url value='${_navItem.linkUrl}'/>">
<c:if test="${_navItem.iconClass!=null && fn:length(_navItem.iconClass)>0}">
<i class="${_navItem.iconClass}"></i>&nbsp;
</c:if>
<s:message code="${_navItem.displayCode}" />
</a>
</li>
</c:otherwise>
</c:choose>
</c:if>
</c:forEach>
</ul>
</div>
<div class="navbar-expand" id="navbarSupportedContent2" style="margin-right: 40px;">
<!-- Language, login, search -->
<ul class="navbar-nav">
<li class="nav-item dropdown navbar-separator">
<a class="nav-link" href="#" id="languageDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><span class="ti-world"></span>
<c:forEach items="${_LANGUAGES}" var="_LANGUAGE">
<c:if test="${_LANGUAGE.key==pageContext.response.locale}">
${_LANGUAGE.value}
</c:if>
</c:forEach>
</a>
<div class="dropdown-menu" aria-labelledby="languageDropdown">
<c:forEach items="${_LANGUAGES}" var="_LANGUAGE">
<a class="dropdown-item" href="?lang=${_LANGUAGE.key}">${_LANGUAGE.value}</a>
</c:forEach>
</div>
</li>
<li class="nav-item">
<c:set var="currentUrl" value="${requestScope['javax.servlet.forward.request_uri']}" />
<li id="login"<c:if test="${_auth!=null && _auth.auth==true}"> style="display: none;"</c:if>><a href="<s:url value='/login?url=${currentUrl}' />" ><span class="glyphicon glyphicon-log-in"></span>&nbsp;<s:message code="~eu.dariah.de.minfba.common.actions.login" /></a></li>
<li id="logout"<c:if test="${_auth==null || _auth.auth==false}"> style="display: none;"</c:if>><a href="<s:url value='/logout?url=${currentUrl}' />" ><span class="glyphicon glyphicon-log-out"></span>&nbsp;<s:message code="~eu.dariah.de.minfba.common.actions.logout" /><c:if test="${_auth!=null || _auth.auth==true}"> (${_auth.displayName})</c:if></a></li>
</ul>
</nav>
<c:choose>
<c:when test="${_auth==null || _auth.auth!=true}">
<a class="nav-link account_toggle" href="<s:url value='/login?url=${currentUrl}' />"><span class="ti-login"></span></a>
</c:when>
<c:otherwise>
<a class="nav-link account_toggle" href="<s:url value='/logout' />"><span class="ti-logout"></span></a>
</c:otherwise>
</c:choose>
</li>
<li class="nav-item dropdown navbar-separator">
<a class="nav-link navbar-logo" href="#" id="portalDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="navbar-logo-xl grid-hidden grid-xl-visible">
<img src="<s:url value="/resources/img/logos/dariah-logo-white.svg" />" alt="DARIAH Portal"> <span class="ti-angle-down"></span>
</span>
<span class="navbar-logo-xs grid-visible grid-xl-hidden">
<img src="<s:url value="/resources/img/logos/dariah-logo-white-small.svg" />" alt="DARIAH Portal">
</span>
</a>
<div id="dariah-global-menu" class="dropdown-menu dropdown-menu-right" aria-labelledby="portalDropdown">
</div>
</li>
<c:if test="${collapsePanel!=null}">
<li class="nav-item navbar-separator grid-xl-hidden">
<a class="nav-link version-panel-toggle collapse-panel-trigger" href="javascript:void"><i class="fas fa-archive fa-lg"></i></a>
</li>
</c:if>
</ul>
</div>
</div>
<div class="container-fluid "style="position: absolute; top: 0; right: 0; width: 55px; padding: 0;">
<div class="grid-hidden grid-xl-visible">
<ul class="navbar-nav float-right">
<c:if test="${collapsePanel!=null}">
<li class="nav-item navbar-separator" style="width: 55px;">
<a class="nav-link version-panel-toggle collapse-panel-trigger" href="javascript:void"><i class="fas fa-archive fa-lg"></i></a>
</li>
</c:if>
</ul>
</div>
</div>
<input id="currentUrl" type="hidden" value="${requestScope['javax.servlet.forward.request_uri']}" />
<input id="baseUrl" type="hidden" value="<s:url value="/" />" />
<input id="baseUrl2" type="hidden" value="<s:url value="/{}" />" />
<input type="hidden" id="uauth" value="${_auth!=null && _auth.auth==true}" />
<input type="hidden" id="ulevel" value="${_auth.level}" />
</div>
</header>
\ No newline at end of file
</nav>
<h1 class="logobar">
<a class="logobar-link<c:if test="${smallLogo==true}"> logobar-link-sm</c:if>" href="" title="Startseite">
<img class="logobar-logo" src='<s:url value="/resources/img/logos/dariah-de-logo-de.svg" />' alt="DARIAH-DE">
<svg class="logobar-logo logobar-spike" xmlns="http://www.w3.org/2000/svg" width="518.74" height="246.549" viewBox="0 -12 518.74 246.549">
<path d="M52.865 25.768c0-10.093 12.995-16.333 21.549-21.516 6.721 4.093 22.397 11.499 22.4 22.119.004 11.79-4.904 31.006-8.806 31.09-4.246.093-10.111-24.356-13.232-24.292-3.12.066-8.929 24.391-12.845 24.385-4.25-.006-9.066-20.801-9.066-31.786"></path>
</svg>
</a>
</h1>
</header>
<input id="currentUrl" type="hidden" value="${requestScope['javax.servlet.forward.request_uri']}" />
<input id="baseUrl" type="hidden" value="<s:url value="/" />" />
<input id="baseUrl2" type="hidden" value="<s:url value="/{}" />" />
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page trimDirectiveWhitespaces="true" %>
<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html>
<html lang="${pageContext.response.locale}">
<%@ include file="incl/head.jsp" %>
<body>
<tiles:importAttribute name="sideNav" />
<tiles:importAttribute name="collapsePanel" ignore="true" />
<tiles:importAttribute name="sideOpts" ignore="true" />
<tiles:importAttribute name="navbarInverse" />
<tiles:importAttribute name="fluidLayout" />
<!-- Top Navigation -->
<%@ include file="incl/topNav.jsp" %>
<c:if test="${collapsePanel!=null}">
<tiles:insertAttribute name="collapsePanel"/>
<div class="sb-toggle-right" id="collapse-panel-trigger"><span class="glyphicon glyphicon-menu-left" aria-hidden="true"></span></div>
</c:if>
<tiles:importAttribute name="titleCode"/>
<div id="sb-site">
<div class="jumbotron jumbotron-small" <c:if test="${customSearch!=null}">style="background-image: linear-gradient(180deg, ${customSearch.lightThemeColor} 0%, ${customSearch.darkThemeColor} 100%); color: ${customSearch.contrastThemeColor}"</c:if>>
<div class="container<c:if test="${fluidLayout==true}">-fluid</c:if>">
<div class="row">
<!-- Notifications -->
<div id="notifications-area" class="col-sm-10 col-sm-offset-1"></div>
<div class="xs-hidden sm-visible col-sm-3 col-lg-2 col-sm-offset-1">
<c:choose>
<c:when test="${customSearch!=null && customSearch.searchImageSrcSmall!=null && fn:length(customSearch.searchImageSrcSmall) > 0}">
<img src="${customSearch.searchImageSrcSmall}" />
</c:when>
<c:when test="${customSearch!=null && customSearch.searchImageSrc!=null && fn:length(customSearch.searchImageSrc) > 0}">
<img src="${customSearch.searchImageSrc}" />
</c:when>
<c:otherwise>
<div class="pull-right dariah-flower-white-83"><s:message code="~eu.dariah.de.minfba.search.view.titles.generic_search.short" /></div>
</c:otherwise>
</c:choose>
</div>
<div class="col-sm-6 col-sm-offset-1">
<form id="search-form" method="POST" action="${query_url}" class="form-horizontal">
<div class="form-group">
<c:choose>
<c:when test="${customSearch!=null}">
<c:choose>
<c:when test="${fn:length(titleCode)>0}">
<h1 style="color: ${customSearch.contrastThemeColor};"><s:message code="${titleCode}" /></h1>
</c:when>
<c:otherwise>
<h1 style="color: ${customSearch.contrastThemeColor};">${customSearch.name}</h1>
</c:otherwise>
</c:choose>
</c:when>
<c:otherwise>
<c:choose>
<c:when test="${fn:length(titleCode)>0}">
<h1><s:message code="${titleCode}" /></h1>
</c:when>
<c:otherwise>
<h1><s:message code="~eu.dariah.de.minfba.search.view.titles.generic_search" /></h1>
</c:otherwise>
</c:choose>
</c:otherwise>
</c:choose>
</div>
</form>
</div>
</div>
</div>
</div>
<div class="container<c:if test="${fluidLayout==true}">-fluid</c:if>">
<div id="primary-content-area" class="row">
<div class="xs-hidden sm-hidden md-visible col-md-3">
<div class="pull-right">
<div class="sidebar">
<c:if test="${sideOpts!=null}">
<tiles:insertAttribute name="sideOpts"/>
</c:if>
<c:if test="${sideNav==true}">
<%@ include file="incl/sideNav.jsp" %>
</c:if>
</div>
</div>
</div>
<div class="col-md-8">
<div id="main-content-wrapper" class="col-xs-12">
<tiles:insertAttribute name="content"/>
</div>
<!-- Footer -->
<div class="col-xs-12">
<%@ include file="incl/footer.jsp" %>
</div>
</div>
</div>
</div>
<noscript>
<div><s:message code="~eu.dariah.de.minfba.common.view.noscript" /></div>
</noscript>
</div>
<!-- JavaScript files at the end for faster loading of documents -->
<tiles:importAttribute name="scripts" />
<c:forEach items="${scripts}" var="s">
<script type="text/javascript" src="<s:url value="/resources/js/${s}" />"></script>
</c:forEach>
</body>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page trimDirectiveWhitespaces="true" %>
<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags" %>
<!DOCTYPE html>
<html lang="${pageContext.response.locale}">
<%@ include file="incl/head.jsp" %>
<body class="drawer drawer--right drawer--sidebar">
<tiles:importAttribute name="sideNav" />
<tiles:importAttribute name="collapsePanel" ignore="true" />
<tiles:importAttribute name="sideOpts" ignore="true" />
<tiles:importAttribute name="navbarInverse" />
<tiles:importAttribute name="fluidLayout" />
<tiles:importAttribute name="smallLogo" />
<wrapper class="d-flex flex-column">
<!-- i.e. version panel -->
<c:if test="${collapsePanel!=null}">
<tiles:insertAttribute name="collapsePanel"/>
</c:if>
<!-- Top Navigation -->
<%@ include file="incl/topNav.jsp" %>
<main class="flex-fill">
<div class="container<c:if test="${fluidLayout==true}">-fluid</c:if>">
<div id="primary-content-area" class="row">
<!-- Notifications -->
<div id="notifications-area"></div>
<div class="grid-hidden grid-lg-visible col-lg-4 col-xl-4" >
<div class="sidebar-container">