basket.jsp 3.62 KB
Newer Older
Ubbo Veentjer's avatar
Ubbo Veentjer committed
1
2
3
4
5
6
7
8
<%@ page contentType="text/html" pageEncoding="UTF-8" %>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="http://textgrid.info/rep/utils" prefix="utils" %>

<%@ include file="base/head.jsp" %>

Ubbo Veentjer's avatar
Ubbo Veentjer committed
9
<script type="text/javascript" src="/js/basket.js"></script>
Ubbo Veentjer's avatar
Ubbo Veentjer committed
10

Ubbo Veentjer's avatar
Ubbo Veentjer committed
11
<span hidden="true" id="basketItemString" data-value="${basketItemString}"></span>
Ubbo Veentjer's avatar
Ubbo Veentjer committed
12

Ubbo Veentjer's avatar
Ubbo Veentjer committed
13
<div class="tgrep wrap">
Ubbo Veentjer's avatar
Ubbo Veentjer committed
14
15
16
17
18
19
	<div class="tgrep sidebar-toggle">
		<button class="tgrep sidebar-toggle_button -show">${i18n['show-sidebar']}</button>
		<button class="tgrep sidebar-toggle_button -hide">${i18n['hide-sidebar']}</button>
	</div>

	<aside class="tgrep sidebar">
Ubbo Veentjer's avatar
Ubbo Veentjer committed
20

Ubbo Veentjer's avatar
Ubbo Veentjer committed
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
		<c:if test="${viewmodes != null}">
			<section class="tgrep sidebar_panel">
				<h3 class="tgrep sidebar_subheading">${i18n['views']}</h3>
				<ul class="tgrep sidebar_list">
					<c:forEach items="${viewmodes}" var="viewmode">
						<li class="tgrep sidebar_item">
							<a href="${viewmode.url}" rel="noindex nofollow" class="tgrep sidebar_link">${viewmode.label}</a>
						</li>
					</c:forEach>
				</ul>
				<c:if test="${viewmodes.size() > 6}">
					<button class="tgrep sidebar_expand">${i18n['expand']}</button>
				</c:if>
			</section>
		</c:if>
Ubbo Veentjer's avatar
Ubbo Veentjer committed
36

37
38
39
40
41
42
43
44
45
46
    <c:if test="${results.size() > 0}">
			<section class="tgrep sidebar_panel remove_on_shelf_empty">
	      <h3 class="tgrep sidebar_subheading">${i18n['tools']}</h3>
	      <ul class="tgrep sidebar_list">
	        <li class="tgrep sidebar_item">
	          <a class="aggregator-items" href="${voyantUrl}?input=${aggregatorUrl}/zip/${basketItemString}?meta=false&only=text/xml" rel="noindex nofollow" class="tgrep sidebar_link">Voyant</a>
			    </li>
			 </ul>
			 </section>
		 </c:if>
Ubbo Veentjer's avatar
Ubbo Veentjer committed
47
	</aside>
Ubbo Veentjer's avatar
Ubbo Veentjer committed
48

Ubbo Veentjer's avatar
Ubbo Veentjer committed
49
50
	<main class="tgrep main">
		<h1 class="tgrep main_heading">${i18n['shelf']}</h1>
Ubbo Veentjer's avatar
Ubbo Veentjer committed
51

Ubbo Veentjer's avatar
Ubbo Veentjer committed
52
53
54
55
56
		<header class="tgrep header">
			<h2 class="tgrep header_heading">${i18n['manage-the-shelf']}</h2>
			<div class="tgrep header_info">
				${i18n['there-are-currently']} <span class="tgrep header_count">${results.size()}</span> ${i18n['objects-on-your-shelf']}
			</div>
57
58
59
60
61
62
63
64
65
66
67
68
69
			<c:if test="${results.size() > 0}">
				<div class="tgrep header_actions remove_on_shelf_empty">
					<button class="tgrep header_button -expand-all">${i18n['expand-all']}</button>
					<button class="tgrep header_button -collapse-all ">${i18n['collapse-all']}</button>
					<button class="tgrep header_button -clear ">${i18n['clear']}</button>
					<div class="tg dropdown" role="group">
						<a class="tg dropdown_toggle">${i18n['download-all']}</a>
						<ul class="tg dropdown_menu">
							<li class="tg dropdown_item"><a class="aggregator-items tg dropdown_link" href="${aggregatorUrl}/epub/${basketItemString}" data-type="ebook">E-Book</a></li>
							<li class="tg dropdown_item"><a class="aggregator-items tg dropdown_link" href="${aggregatorUrl}/zip/${basketItemString}" data-type="zip">ZIP</a></li>
							<li class="tg dropdown_item"><a class="aggregator-items tg dropdown_link" href="${aggregatorUrl}/teicorpus/${basketItemString}" data-type="teicorpus">TEI-Corpus</a></li>
						</ul>
					</div>
Ubbo Veentjer's avatar
Ubbo Veentjer committed
70
				</div>
71
				</c:if>
Ubbo Veentjer's avatar
Ubbo Veentjer committed
72
		</header>
Ubbo Veentjer's avatar
Ubbo Veentjer committed
73

Ubbo Veentjer's avatar
Ubbo Veentjer committed
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
		<c:choose>
			<c:when test="${mode eq 'gallery'}">
				<ul class="tgrep results_gallery">
					<c:forEach items="${results}" var="result">
						<%@ include file="components/singleGalleryResult.jsp" %>
					</c:forEach>
				</ul>
			</c:when>
			<c:otherwise>
				<ul class="tgrep results_list">
					<c:forEach items="${results}" var="result">
						<%@ include file="components/singleListResult.jsp" %>
					</c:forEach>
				</ul>
			</c:otherwise>
		</c:choose>
	</main>
Ubbo Veentjer's avatar
Ubbo Veentjer committed
91
92
93
94
</div>


<%@ include file="base/foot.jsp" %>
Ubbo Veentjer's avatar
Ubbo Veentjer committed
95