basket.jsp 4.31 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.min.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
  <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>
Ubbo Veentjer's avatar
Ubbo Veentjer committed
18

Ubbo Veentjer's avatar
Ubbo Veentjer committed
19
  <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
    <c:if test="${results.size() > 0}">
Ubbo Veentjer's avatar
Ubbo Veentjer committed
38
39
40
41
      <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">
42
            <a class="aggregator-items" href="${config.voyantHost}?input=${config.aggregatorUrl}/zip/${basketItemString}?meta=false&only=text/xml" rel="noindex nofollow" class="tgrep sidebar_link">Voyant</a>
43
            <a href ="/docs/voyant" class="">(i)</a>
Ubbo Veentjer's avatar
Ubbo Veentjer committed
44
45
46
47
48
          </li>
       </ul>
       </section>
     </c:if>
  </aside>
Ubbo Veentjer's avatar
Ubbo Veentjer committed
49

Ubbo Veentjer's avatar
Ubbo Veentjer committed
50
  <main class="tgrep main">
51
    <h1 class="tgrep main_heading">${i18n['shelf']} <a href ="/docs/shelf" class="">(i)</a></h1>
Ubbo Veentjer's avatar
Ubbo Veentjer committed
52

Ubbo Veentjer's avatar
Ubbo Veentjer committed
53
54
55
56
57
58
59
60
61
62
63
    <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>
      <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">
64
            <a class="tg dropdown_toggle -download">${i18n['download-all']}</a> <a href ="/docs/download" class="tgrep header_button">(i)</a>
Ubbo Veentjer's avatar
Ubbo Veentjer committed
65
            <ul class="tg dropdown_menu">
66
67
              <li class="tg dropdown_item"><a class="aggregator-items tg dropdown_link" href="${config.aggregatorUrl}/epub/${basketItemString}" data-type="ebook">E-Book</a></li>
              <li class="tg dropdown_item"><a class="aggregator-items tg dropdown_link" href="${config.aggregatorUrl}/zip/${basketItemString}" data-type="zip">ZIP</a></li>
68
              <li class="tg dropdown_item"><a class="aggregator-items tg dropdown_link" href="${config.aggregatorUrl}/zip/${basketItemString}?transform=text&meta=false&only=text/xml&dirnames=" data-type="zip">${i18n['download-text-only-zip']}</a></li>
69
              <li class="tg dropdown_item"><a class="aggregator-items tg dropdown_link" href="${config.aggregatorUrl}/teicorpus/${basketItemString}" data-type="teicorpus">TEI-Corpus</a></li>
Ubbo Veentjer's avatar
Ubbo Veentjer committed
70
71
72
73
74
            </ul>
          </div>
        </div>
        </c:if>
    </header>
Ubbo Veentjer's avatar
Ubbo Veentjer committed
75

Ubbo Veentjer's avatar
Ubbo Veentjer committed
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
    <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
93
94
95
96
</div>


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