Commit 3b549f5f authored by Ubbo Veentjer's avatar Ubbo Veentjer
Browse files

stay in gallery view if choosen

parent 83dba5e9
Pipeline #140197 passed with stages
in 9 minutes and 2 seconds
......@@ -21,7 +21,7 @@ public class Utils {
private final static String MIME_IMG_WORK = MIME_IMG_BASE + "130-ist_Werk.svg";
private final static String MIME_IMG_EDITION = MIME_IMG_BASE + "108-ist-Edition.svg";
private final static String MIME_IMG_COLLECTION = MIME_IMG_BASE + "109-ist-Collection.svg";
private final static String MIME_IMG_AGGREGATION = MIME_IMG_BASE + "072-zeige-Aggregation-Perspektive.svg";
private final static String MIME_IMG_AGGREGATION = MIME_IMG_BASE + "072-zeige-AggregationPerspektive.svg";
private final static String MIME_IMG_TEXT = MIME_IMG_BASE + "x11-document-text.svg";
......
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://textgrid.info/rep/utils" prefix="utils" %>
<c:if test="${mode =='gallery'}">
<c:set var="modestring" value="?mode=${mode}" />
</c:if>
<ul class="tgrep breadcrumbs">
<c:forEach items="${result.pathResponse.pathGroup}" var="pathGroup">
<c:forEach items="${pathGroup.path}" var="path">
<c:forEach items="${path.entry}" var="pathEntry">
<li class="tgrep breadcrumbs_item">
<a class="tgrep breadcrumbs_link" href="${utils:browseUrl(pathEntry.textgridUri)}">
<a class="tgrep breadcrumbs_link" href="${utils:browseUrl(pathEntry.textgridUri)}${modestring}">
${pathEntry.title}
</a>
</li>
......@@ -14,7 +18,7 @@
</c:forEach>
</c:forEach>
<li class="tgrep breadcrumbs_item">
<a class="tgrep breadcrumbs_link" href="${utils:browseUrl(result.object.generic.generated.textgridUri.value)}">
<a class="tgrep breadcrumbs_link" href="${utils:browseUrl(result.object.generic.generated.textgridUri.value)}${modestring}">
${result.object.generic.provided.title[0]}
</a>
</li>
......
......@@ -14,19 +14,19 @@
<span class="tg dropdown_heading">${i18n['sort-by']}</span>
<ul class="tg dropdown_submenu">
<li class="tg dropdown_item ${order eq 'relevance' ? '-current' : ''}">
<a href="?query=${query}${filterQueryString}&start=${start}&limit=${limit}&order=relevance">${i18n['relevance']}</a>
<a href="?query=${query}${filterQueryString}&start=${start}&limit=${limit}&mode=${mode}&order=relevance">${i18n['relevance']}</a>
</li>
<li class="tg dropdown_item ${order eq 'asc:title' ? '-current' : ''}">
<a href="?query=${query}${filterQueryString}&start=${start}&limit=${limit}&order=asc:title">${i18n['title-ascending']}</a>
<a href="?query=${query}${filterQueryString}&start=${start}&limit=${limit}&mode=${mode}&order=asc:title">${i18n['title-ascending']}</a>
</li>
<li class="tg dropdown_item ${order eq 'desc:title' ? '-current' : ''}">
<a href="?query=${query}${filterQueryString}&start=${start}&limit=${limit}&order=desc:title">${i18n['title-descending']}</a>
<a href="?query=${query}${filterQueryString}&start=${start}&limit=${limit}&mode=${mode}&mode=${mode}&order=desc:title">${i18n['title-descending']}</a>
</li>
<li class="tg dropdown_item ${order eq 'asc:format' ? '-current' : ''}">
<a href="?query=${query}${filterQueryString}&start=${start}&limit=${limit}&order=asc:format">${i18n['format-ascending']}</a>
<a href="?query=${query}${filterQueryString}&start=${start}&limit=${limit}&mode=${mode}&order=asc:format">${i18n['format-ascending']}</a>
</li>
<li class="tg dropdown_item ${order eq 'desc:format' ? '-current' : ''}">
<a href="?query=${query}${filterQueryString}&start=${start}&limit=${limit}&order=desc:format">${i18n['format-descending']}</a>
<a href="?query=${query}${filterQueryString}&start=${start}&limit=${limit}&mode=${mode}&order=desc:format">${i18n['format-descending']}</a>
</li>
</ul>
</li>
......@@ -34,13 +34,13 @@
<span class="tg dropdown_heading">${i18n['results-per-page']}</span>
<ul class="tg dropdown_submenu">
<li class="tg dropdown_item ${limit eq '10' ? '-current' : ''}">
<a href="?query=${query}${filterQueryString}&order=${order}&start=${start}&limit=10">10</a>
<a href="?query=${query}${filterQueryString}&order=${order}&start=${start}&mode=${mode}&limit=10">10</a>
</li>
<li class="tg dropdown_item ${limit eq '20' ? '-current' : ''}">
<a href="?query=${query}${filterQueryString}&order=${order}&start=${start}&limit=20">20</a>
<a href="?query=${query}${filterQueryString}&order=${order}&start=${start}&mode=${mode}&limit=20">20</a>
</li>
<li class="tg dropdown_item ${limit eq '50' ? '-current' : ''}">
<a href="?query=${query}${filterQueryString}&order=${order}&start=${start}&limit=50">50</a>
<a href="?query=${query}${filterQueryString}&order=${order}&start=${start}&mode=${mode}&limit=50">50</a>
</li>
</ul>
</li>
......
......@@ -9,7 +9,7 @@
<c:if test="${fn:contains(imageUrl, 'tg-icons')}">
<c:set var="mimeIconClass" value="mime-icon" />
</c:if>
<a href="${utils:browseUrl(result.object.generic.generated.textgridUri.value)}">
<a href="${utils:browseUrl(result.object.generic.generated.textgridUri.value)}?mode=gallery">
<img src="${imageUrl}"
class="${mimeIconClass}"
alt="${result.object.generic.provided.title[0]}"
......@@ -17,7 +17,7 @@
</a>
</div>
<div class="tgrep gallery-item_title">
<a href="${utils:browseUrl(result.object.generic.generated.textgridUri.value)}"> ${result.object.generic.provided.title[0]} </a>
<a href="${utils:browseUrl(result.object.generic.generated.textgridUri.value)}?mode=gallery"> ${result.object.generic.provided.title[0]} </a>
</div>
</div>
<div class="tgrep gallery-item_actions">
......
......@@ -51,7 +51,7 @@
<li class="tgrep sidebar_item -filter" data-filter="${activeFilter}">
<a class="tgrep sidebar_remove-filter"
title="${i18n['remove-filter']}"
href="?query=${query}&order=${order}&limit=${limit}${fn:replace(filterQueryString, '&filter='.concat(afArray[0]).concat('%3A').concat(utils:urlencode(afArray[1])) , '')}">
href="?query=${query}&order=${order}&limit=${limit}&mode=${mode}${fn:replace(filterQueryString, '&filter='.concat(afArray[0]).concat('%3A').concat(utils:urlencode(afArray[1])) , '')}">
<span class="sr-only">${i18n['remove-filter']}</span>
</a>
<strong>${i18n[afArray[0]]}</strong>: ${afArray[1]}
......@@ -77,7 +77,7 @@
${facet.value}
</c:when>
<c:otherwise>
<a href="?query=${query}&order=${order}&limit=${limit}&filter=${facetGroup.name}:${utils:urlencode(facet.value)}${filterQueryString}"
<a href="?query=${query}&order=${order}&limit=${limit}&mode=${mode}&filter=${facetGroup.name}:${utils:urlencode(facet.value)}${filterQueryString}"
class="tgrep sidebar_link">${facet.value}</a>
</c:otherwise>
</c:choose>
......
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