4157 |
07 Oct 16 |
nicklas |
1 |
<%@ page |
4157 |
07 Oct 16 |
nicklas |
2 |
pageEncoding="UTF-8" |
4157 |
07 Oct 16 |
nicklas |
3 |
session="false" |
4157 |
07 Oct 16 |
nicklas |
4 |
import="net.sf.basedb.core.User" |
4157 |
07 Oct 16 |
nicklas |
5 |
import="net.sf.basedb.core.DbControl" |
4157 |
07 Oct 16 |
nicklas |
6 |
import="net.sf.basedb.core.SessionControl" |
4157 |
07 Oct 16 |
nicklas |
7 |
import="net.sf.basedb.core.Application" |
4157 |
07 Oct 16 |
nicklas |
8 |
import="net.sf.basedb.clients.web.Base" |
4157 |
07 Oct 16 |
nicklas |
9 |
import="net.sf.basedb.clients.web.extensions.ExtensionsControl" |
4157 |
07 Oct 16 |
nicklas |
10 |
%> |
4157 |
07 Oct 16 |
nicklas |
11 |
<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> |
4157 |
07 Oct 16 |
nicklas |
12 |
<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %> |
4157 |
07 Oct 16 |
nicklas |
13 |
<% |
4157 |
07 Oct 16 |
nicklas |
14 |
final SessionControl sc = Base.getExistingSessionControl(request, "net.sf.basedb.reggie", true); |
4157 |
07 Oct 16 |
nicklas |
15 |
final String ID = sc.getId(); |
4157 |
07 Oct 16 |
nicklas |
16 |
final float scale = Base.getScale(sc); |
4157 |
07 Oct 16 |
nicklas |
17 |
final String home = ExtensionsControl.getHomeUrl("net.sf.basedb.reggie"); |
4157 |
07 Oct 16 |
nicklas |
18 |
DbControl dc = null; |
4157 |
07 Oct 16 |
nicklas |
19 |
try |
4157 |
07 Oct 16 |
nicklas |
20 |
{ |
4157 |
07 Oct 16 |
nicklas |
21 |
dc = sc.newDbControl(); |
4157 |
07 Oct 16 |
nicklas |
22 |
final User user = User.getById(dc, sc.getLoggedInUserId()); |
4157 |
07 Oct 16 |
nicklas |
23 |
%> |
4157 |
07 Oct 16 |
nicklas |
24 |
<base:page type="default" > |
4157 |
07 Oct 16 |
nicklas |
25 |
<base:head |
4157 |
07 Oct 16 |
nicklas |
26 |
scripts="~../reggie-2.js,~picklist.js" |
4157 |
07 Oct 16 |
nicklas |
27 |
styles="path.css,~../css/reggie-2.css" |
4157 |
07 Oct 16 |
nicklas |
28 |
/> |
4157 |
07 Oct 16 |
nicklas |
29 |
<base:body> |
4157 |
07 Oct 16 |
nicklas |
30 |
|
4157 |
07 Oct 16 |
nicklas |
31 |
<p:path><p:pathelement |
4157 |
07 Oct 16 |
nicklas |
32 |
title="Reggie" href="<%="../index.jsp?ID="+ID%>" |
4157 |
07 Oct 16 |
nicklas |
33 |
/><p:pathelement title="Protocols and labels for sample outtakes " |
4157 |
07 Oct 16 |
nicklas |
34 |
/></p:path> |
4157 |
07 Oct 16 |
nicklas |
35 |
|
4157 |
07 Oct 16 |
nicklas |
36 |
<div class="content"> |
4157 |
07 Oct 16 |
nicklas |
37 |
|
4157 |
07 Oct 16 |
nicklas |
38 |
<form name="reggie" action="picklist2.jsp" method="post" target="_blank" id="wizard" class="wizard"> |
4157 |
07 Oct 16 |
nicklas |
39 |
<input type="hidden" name="ID" value="<%=ID%>"> |
4157 |
07 Oct 16 |
nicklas |
40 |
|
4157 |
07 Oct 16 |
nicklas |
41 |
<div class="step" id="step-1"> |
4157 |
07 Oct 16 |
nicklas |
42 |
<div class="step-no">1</div> |
4157 |
07 Oct 16 |
nicklas |
43 |
<div class="step-title">Select an outtake work list</div> |
4157 |
07 Oct 16 |
nicklas |
44 |
<div class="step-content"> |
4157 |
07 Oct 16 |
nicklas |
45 |
|
4157 |
07 Oct 16 |
nicklas |
46 |
<table clasS="step-form"> |
4157 |
07 Oct 16 |
nicklas |
47 |
<tr> |
4157 |
07 Oct 16 |
nicklas |
48 |
<td class="prompt">Outtake work list</td> |
4157 |
07 Oct 16 |
nicklas |
49 |
<td class="input"> |
4157 |
07 Oct 16 |
nicklas |
50 |
<select name="workList" id="workList" class="required"></select> |
4157 |
07 Oct 16 |
nicklas |
51 |
</td> |
4157 |
07 Oct 16 |
nicklas |
52 |
<td class="status" id="workList.status"></td> |
4157 |
07 Oct 16 |
nicklas |
53 |
<td class="help"> |
4157 |
07 Oct 16 |
nicklas |
54 |
<span id="workList.message" class="message"></span> |
4157 |
07 Oct 16 |
nicklas |
55 |
Select an existing outtake work list. |
4157 |
07 Oct 16 |
nicklas |
56 |
</td> |
4157 |
07 Oct 16 |
nicklas |
57 |
</tr> |
4157 |
07 Oct 16 |
nicklas |
58 |
<tbody class="info-section"> |
4165 |
21 Oct 16 |
nicklas |
59 |
<tr class="align-top"> |
4157 |
07 Oct 16 |
nicklas |
60 |
<td class="prompt">Comments</td> |
4157 |
07 Oct 16 |
nicklas |
61 |
<td class="info" colspan="2"><div id="comments" style="min-height: 8em;"></div></td> |
4157 |
07 Oct 16 |
nicklas |
62 |
<td class="help"></td> |
4157 |
07 Oct 16 |
nicklas |
63 |
</tr> |
4157 |
07 Oct 16 |
nicklas |
64 |
</tbody> |
4166 |
21 Oct 16 |
nicklas |
65 |
<tr> |
4166 |
21 Oct 16 |
nicklas |
66 |
<td class="prompt">Use External ID</td> |
4166 |
21 Oct 16 |
nicklas |
67 |
<td class="input"> |
4166 |
21 Oct 16 |
nicklas |
68 |
<label><input type="checkbox" checked name="useExternalId" id="useExternalId" value="1"> |
4166 |
21 Oct 16 |
nicklas |
69 |
Yes</label> |
4166 |
21 Oct 16 |
nicklas |
70 |
</td> |
4166 |
21 Oct 16 |
nicklas |
71 |
<td class="status" id="useExternalId.status"></td> |
4166 |
21 Oct 16 |
nicklas |
72 |
<td class="help"> |
4166 |
21 Oct 16 |
nicklas |
73 |
<span id="useExternalId.message" class="message"></span> |
4166 |
21 Oct 16 |
nicklas |
74 |
If checked, the protocol and label file will use the External ID instead |
4166 |
21 Oct 16 |
nicklas |
75 |
of the SCAN-B ID. |
4166 |
21 Oct 16 |
nicklas |
76 |
</td> |
4166 |
21 Oct 16 |
nicklas |
77 |
</tr> |
5310 |
15 Feb 19 |
nicklas |
78 |
<tr> |
5310 |
15 Feb 19 |
nicklas |
79 |
<td class="prompt">Download labels</td> |
5310 |
15 Feb 19 |
nicklas |
80 |
<td class="input"> |
5310 |
15 Feb 19 |
nicklas |
81 |
<base:icon subclass="link" id="downloadLabelsCsv" image="<%=home + "/images/download.png"%>" |
5310 |
15 Feb 19 |
nicklas |
82 |
data-format="csv" title="Download labels as a tab-separated text file (csv)">CSV</base:icon> |
5310 |
15 Feb 19 |
nicklas |
83 |
<base:icon subclass="link" id="downloadLabelsXlsx" image="<%=home + "/images/download.png"%>" |
5310 |
15 Feb 19 |
nicklas |
84 |
data-format="xlsx" title="Download lables as an Excel worksheet file (xlsx)">Excel</base:icon> |
5310 |
15 Feb 19 |
nicklas |
85 |
</td> |
5310 |
15 Feb 19 |
nicklas |
86 |
<td class="status"></td> |
5310 |
15 Feb 19 |
nicklas |
87 |
<td class="help"> |
5310 |
15 Feb 19 |
nicklas |
88 |
Do not forget to <b>download labels</b> in either <b>CSV</b> or <b>Excel</b> |
5310 |
15 Feb 19 |
nicklas |
89 |
format for creating labels. |
5310 |
15 Feb 19 |
nicklas |
90 |
</td> |
5310 |
15 Feb 19 |
nicklas |
91 |
</tr> |
4157 |
07 Oct 16 |
nicklas |
92 |
</table> |
4157 |
07 Oct 16 |
nicklas |
93 |
</div> |
4157 |
07 Oct 16 |
nicklas |
94 |
</div> |
4157 |
07 Oct 16 |
nicklas |
95 |
|
4157 |
07 Oct 16 |
nicklas |
96 |
<div id="wizard-status"></div> |
4157 |
07 Oct 16 |
nicklas |
97 |
|
4157 |
07 Oct 16 |
nicklas |
98 |
<table class="navigation" id="navigation"> |
4157 |
07 Oct 16 |
nicklas |
99 |
<tr> |
4157 |
07 Oct 16 |
nicklas |
100 |
<td><base:button id="gocreate" title="Create protocol" image="<%=home+"/images/gonext.png"%>" /></td> |
4157 |
07 Oct 16 |
nicklas |
101 |
<td id="gonext-message" class="message"></td> |
4157 |
07 Oct 16 |
nicklas |
102 |
</tr> |
4157 |
07 Oct 16 |
nicklas |
103 |
</table> |
4157 |
07 Oct 16 |
nicklas |
104 |
</form> |
4157 |
07 Oct 16 |
nicklas |
105 |
</div> |
4157 |
07 Oct 16 |
nicklas |
106 |
|
4157 |
07 Oct 16 |
nicklas |
107 |
</base:body> |
4157 |
07 Oct 16 |
nicklas |
108 |
</base:page> |
4157 |
07 Oct 16 |
nicklas |
109 |
<% |
4157 |
07 Oct 16 |
nicklas |
110 |
} |
4157 |
07 Oct 16 |
nicklas |
111 |
finally |
4157 |
07 Oct 16 |
nicklas |
112 |
{ |
4157 |
07 Oct 16 |
nicklas |
113 |
if (dc != null) dc.close(); |
4157 |
07 Oct 16 |
nicklas |
114 |
} |
4157 |
07 Oct 16 |
nicklas |
115 |
%> |