1813 |
24 Jan 06 |
nicklas |
1 |
<%-- $Id$ |
1813 |
24 Jan 06 |
nicklas |
2 |
------------------------------------------------------------------ |
5425 |
23 Sep 10 |
nicklas |
Copyright (C) 2006 Jari Häkkinen, Nicklas Nordborg, Martin Svensson |
3675 |
16 Aug 07 |
jari |
Copyright (C) 2007 Martin Svensson |
1813 |
24 Jan 06 |
nicklas |
5 |
|
2304 |
22 May 06 |
jari |
6 |
This file is part of BASE - BioArray Software Environment. |
2304 |
22 May 06 |
jari |
7 |
Available at http://base.thep.lu.se/ |
1813 |
24 Jan 06 |
nicklas |
8 |
|
1813 |
24 Jan 06 |
nicklas |
9 |
BASE is free software; you can redistribute it and/or |
1813 |
24 Jan 06 |
nicklas |
10 |
modify it under the terms of the GNU General Public License |
4476 |
05 Sep 08 |
jari |
11 |
as published by the Free Software Foundation; either version 3 |
1813 |
24 Jan 06 |
nicklas |
12 |
of the License, or (at your option) any later version. |
1813 |
24 Jan 06 |
nicklas |
13 |
|
1813 |
24 Jan 06 |
nicklas |
14 |
BASE is distributed in the hope that it will be useful, |
1813 |
24 Jan 06 |
nicklas |
15 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
1813 |
24 Jan 06 |
nicklas |
16 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
1813 |
24 Jan 06 |
nicklas |
17 |
GNU General Public License for more details. |
1813 |
24 Jan 06 |
nicklas |
18 |
|
1813 |
24 Jan 06 |
nicklas |
19 |
You should have received a copy of the GNU General Public License |
4511 |
11 Sep 08 |
jari |
20 |
along with BASE. If not, see <http://www.gnu.org/licenses/>. |
1813 |
24 Jan 06 |
nicklas |
21 |
------------------------------------------------------------------ |
1813 |
24 Jan 06 |
nicklas |
22 |
|
1813 |
24 Jan 06 |
nicklas |
23 |
@author Nicklas |
1813 |
24 Jan 06 |
nicklas |
24 |
@version 2.0 |
1813 |
24 Jan 06 |
nicklas |
25 |
--%> |
5426 |
24 Sep 10 |
nicklas |
26 |
<%@ page pageEncoding="UTF-8" session="false" |
1813 |
24 Jan 06 |
nicklas |
27 |
import="net.sf.basedb.core.SessionControl" |
1813 |
24 Jan 06 |
nicklas |
28 |
import="net.sf.basedb.core.DbControl" |
1813 |
24 Jan 06 |
nicklas |
29 |
import="net.sf.basedb.core.SystemItems" |
1813 |
24 Jan 06 |
nicklas |
30 |
import="net.sf.basedb.core.Item" |
1813 |
24 Jan 06 |
nicklas |
31 |
import="net.sf.basedb.core.ItemContext" |
1813 |
24 Jan 06 |
nicklas |
32 |
import="net.sf.basedb.core.Permission" |
1813 |
24 Jan 06 |
nicklas |
33 |
import="net.sf.basedb.core.AnnotationType" |
1813 |
24 Jan 06 |
nicklas |
34 |
import="net.sf.basedb.core.AnnotationSet" |
1813 |
24 Jan 06 |
nicklas |
35 |
import="net.sf.basedb.core.ArrayBatch" |
2449 |
29 Jun 06 |
nicklas |
36 |
import="net.sf.basedb.core.ArraySlide" |
1813 |
24 Jan 06 |
nicklas |
37 |
import="net.sf.basedb.core.ArrayDesign" |
1813 |
24 Jan 06 |
nicklas |
38 |
import="net.sf.basedb.core.Protocol" |
1813 |
24 Jan 06 |
nicklas |
39 |
import="net.sf.basedb.core.Hardware" |
1813 |
24 Jan 06 |
nicklas |
40 |
import="net.sf.basedb.core.User" |
3547 |
03 Jul 07 |
martin |
41 |
import="net.sf.basedb.core.Group" |
1813 |
24 Jan 06 |
nicklas |
42 |
import="net.sf.basedb.core.ItemQuery" |
1813 |
24 Jan 06 |
nicklas |
43 |
import="net.sf.basedb.core.Include" |
1813 |
24 Jan 06 |
nicklas |
44 |
import="net.sf.basedb.core.ItemResultList" |
5044 |
11 Aug 09 |
martin |
45 |
import="net.sf.basedb.core.ItemResultList" |
3547 |
03 Jul 07 |
martin |
46 |
import="net.sf.basedb.core.MultiPermissions" |
1813 |
24 Jan 06 |
nicklas |
47 |
import="net.sf.basedb.core.PermissionDeniedException" |
1813 |
24 Jan 06 |
nicklas |
48 |
import="net.sf.basedb.core.PluginDefinition" |
1813 |
24 Jan 06 |
nicklas |
49 |
import="net.sf.basedb.core.plugin.GuiContext" |
1813 |
24 Jan 06 |
nicklas |
50 |
import="net.sf.basedb.core.plugin.Plugin" |
3547 |
03 Jul 07 |
martin |
51 |
import="net.sf.basedb.core.Project" |
1813 |
24 Jan 06 |
nicklas |
52 |
import="net.sf.basedb.core.query.Orders" |
1813 |
24 Jan 06 |
nicklas |
53 |
import="net.sf.basedb.core.query.Hql" |
1813 |
24 Jan 06 |
nicklas |
54 |
import="net.sf.basedb.clients.web.Base" |
5062 |
19 Aug 09 |
nicklas |
55 |
import="net.sf.basedb.clients.web.ChangeHistoryUtil" |
2386 |
15 Jun 06 |
martin |
56 |
import="net.sf.basedb.clients.web.PermissionUtil" |
1813 |
24 Jan 06 |
nicklas |
57 |
import="net.sf.basedb.clients.web.util.HTML" |
2753 |
20 Oct 06 |
nicklas |
58 |
import="net.sf.basedb.util.Values" |
4698 |
10 Dec 08 |
nicklas |
59 |
import="net.sf.basedb.util.formatter.Formatter" |
4698 |
10 Dec 08 |
nicklas |
60 |
import="net.sf.basedb.clients.web.formatter.FormatterFactory" |
4884 |
03 Apr 09 |
nicklas |
61 |
import="net.sf.basedb.clients.web.extensions.ExtensionsControl" |
4884 |
03 Apr 09 |
nicklas |
62 |
import="net.sf.basedb.clients.web.extensions.JspContext" |
4884 |
03 Apr 09 |
nicklas |
63 |
import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer" |
7604 |
25 Feb 19 |
nicklas |
64 |
import="net.sf.basedb.clients.web.extensions.toolbar.ButtonAction" |
4884 |
03 Apr 09 |
nicklas |
65 |
import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil" |
4884 |
03 Apr 09 |
nicklas |
66 |
import="net.sf.basedb.util.extensions.ExtensionsInvoker" |
3547 |
03 Jul 07 |
martin |
67 |
import="java.util.Collections" |
1813 |
24 Jan 06 |
nicklas |
68 |
import="java.util.Date" |
1813 |
24 Jan 06 |
nicklas |
69 |
import="java.util.Map" |
1813 |
24 Jan 06 |
nicklas |
70 |
import="java.util.Set" |
1813 |
24 Jan 06 |
nicklas |
71 |
import="java.util.List" |
1813 |
24 Jan 06 |
nicklas |
72 |
%> |
1813 |
24 Jan 06 |
nicklas |
73 |
<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> |
1813 |
24 Jan 06 |
nicklas |
74 |
<%@ taglib prefix="t" uri="/WEB-INF/tab.tld" %> |
1813 |
24 Jan 06 |
nicklas |
75 |
<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %> |
1861 |
30 Jan 06 |
nicklas |
76 |
<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %> |
4884 |
03 Apr 09 |
nicklas |
77 |
<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %> |
1813 |
24 Jan 06 |
nicklas |
78 |
<%! |
1813 |
24 Jan 06 |
nicklas |
79 |
private static final Item itemType = Item.ARRAYBATCH; |
1813 |
24 Jan 06 |
nicklas |
80 |
private static final GuiContext guiContext = new GuiContext(itemType, GuiContext.Type.ITEM); |
1813 |
24 Jan 06 |
nicklas |
81 |
%> |
1813 |
24 Jan 06 |
nicklas |
82 |
<% |
1813 |
24 Jan 06 |
nicklas |
83 |
final SessionControl sc = Base.getExistingSessionControl(pageContext, true); |
1813 |
24 Jan 06 |
nicklas |
84 |
final String ID = sc.getId(); |
1813 |
24 Jan 06 |
nicklas |
85 |
final ItemContext cc = Base.getAndSetCurrentContext(sc, itemType, null, null); |
1813 |
24 Jan 06 |
nicklas |
86 |
final int itemId = cc.getId(); |
1861 |
30 Jan 06 |
nicklas |
87 |
final String tab = Values.getString(request.getParameter("tab"), "properties"); |
1813 |
24 Jan 06 |
nicklas |
88 |
final float scale = Base.getScale(sc); |
7954 |
12 May 21 |
nicklas |
89 |
final DbControl dc = sc.newDbControl(":View "+itemType); |
1813 |
24 Jan 06 |
nicklas |
90 |
try |
1813 |
24 Jan 06 |
nicklas |
91 |
{ |
4698 |
10 Dec 08 |
nicklas |
92 |
Formatter<Date> dateFormatter = FormatterFactory.getDateFormatter(sc); |
1813 |
24 Jan 06 |
nicklas |
93 |
Map<Plugin.MainType, Integer> pluginCount = PluginDefinition.countPlugins(dc, guiContext); |
1813 |
24 Jan 06 |
nicklas |
94 |
|
1813 |
24 Jan 06 |
nicklas |
95 |
String title = null; |
1813 |
24 Jan 06 |
nicklas |
96 |
ArrayBatch batch = ArrayBatch.getById(dc, itemId); |
1813 |
24 Jan 06 |
nicklas |
97 |
|
2449 |
29 Jun 06 |
nicklas |
98 |
final boolean usePermission = batch.hasPermission(Permission.USE); |
1813 |
24 Jan 06 |
nicklas |
99 |
final boolean writePermission = batch.hasPermission(Permission.WRITE); |
1813 |
24 Jan 06 |
nicklas |
100 |
final boolean deletePermission = batch.hasPermission(Permission.DELETE); |
1813 |
24 Jan 06 |
nicklas |
101 |
final boolean sharePermission = batch.hasPermission(Permission.SET_PERMISSION); |
2919 |
15 Nov 06 |
nicklas |
102 |
final boolean setOwnerPermission = batch.hasPermission(Permission.SET_OWNER); |
4003 |
26 Nov 07 |
nicklas |
103 |
final boolean isRemoved = batch.isRemoved(); |
4003 |
26 Nov 07 |
nicklas |
104 |
final boolean isUsed = isRemoved && batch.isUsed(); |
4003 |
26 Nov 07 |
nicklas |
105 |
final boolean deletePermanentlyPermission = deletePermission && !isUsed; |
2919 |
15 Nov 06 |
nicklas |
106 |
final boolean isOwner = batch.isOwner(); |
4884 |
03 Apr 09 |
nicklas |
107 |
JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, batch); |
7604 |
25 Feb 19 |
nicklas |
108 |
ExtensionsInvoker<ButtonAction> invoker = ToolbarUtil.useExtensions(jspContext); |
1813 |
24 Jan 06 |
nicklas |
109 |
%> |
6307 |
15 Aug 13 |
nicklas |
110 |
<base:page title="<%=title%>" id="view-page"> |
6307 |
15 Aug 13 |
nicklas |
111 |
<base:head scripts="tabcontrol-2.js,table.js,~batches.js" styles="toolbar.css,table.css,headertabcontrol.css,path.css"> |
4884 |
03 Apr 09 |
nicklas |
112 |
<ext:scripts context="<%=jspContext%>" /> |
4884 |
03 Apr 09 |
nicklas |
113 |
<ext:stylesheets context="<%=jspContext%>" /> |
1813 |
24 Jan 06 |
nicklas |
114 |
</base:head> |
1813 |
24 Jan 06 |
nicklas |
115 |
<base:body> |
5944 |
02 Feb 12 |
nicklas |
116 |
<p:path><p:pathelement |
5944 |
02 Feb 12 |
nicklas |
117 |
title="Array batches" href="<%="index.jsp?ID="+ID%>" |
5944 |
02 Feb 12 |
nicklas |
118 |
/><p:pathelement title="<%=HTML.encodeTags(batch.getName())%>" |
5944 |
02 Feb 12 |
nicklas |
119 |
/></p:path> |
6307 |
15 Aug 13 |
nicklas |
120 |
<div id="page-data" data-item-id="<%=itemId%>"></div> |
1861 |
30 Jan 06 |
nicklas |
121 |
|
5944 |
02 Feb 12 |
nicklas |
122 |
<t:tabcontrol |
5944 |
02 Feb 12 |
nicklas |
123 |
id="main" |
5944 |
02 Feb 12 |
nicklas |
124 |
subclass="content mastertabcontrol" |
6244 |
25 Feb 13 |
nicklas |
125 |
active="<%=tab%>"> |
1861 |
30 Jan 06 |
nicklas |
126 |
<t:tab id="properties" title="Properties"> |
5944 |
02 Feb 12 |
nicklas |
127 |
<div> |
5944 |
02 Feb 12 |
nicklas |
128 |
<table class="fullform bottomborder"> |
5944 |
02 Feb 12 |
nicklas |
129 |
<tr> |
5944 |
02 Feb 12 |
nicklas |
130 |
<th class="itemstatus"> |
4003 |
26 Nov 07 |
nicklas |
131 |
<base:icon |
5946 |
03 Feb 12 |
nicklas |
132 |
image="shared.png" |
5944 |
02 Feb 12 |
nicklas |
133 |
visible="<%=batch.isShared()%>" |
5944 |
02 Feb 12 |
nicklas |
134 |
tooltip="This item is shared to other users, groups and/or projects" |
5944 |
02 Feb 12 |
nicklas |
135 |
/> |
5944 |
02 Feb 12 |
nicklas |
136 |
<base:icon |
6307 |
15 Aug 13 |
nicklas |
137 |
id="btnDeletePermanently" |
5946 |
03 Feb 12 |
nicklas |
138 |
image="deleted.png" |
5944 |
02 Feb 12 |
nicklas |
139 |
tooltip="This item has been flagged for deletion. Click to delete it now." |
5944 |
02 Feb 12 |
nicklas |
140 |
enabled="<%=deletePermanentlyPermission %>" |
5944 |
02 Feb 12 |
nicklas |
141 |
visible="<%=isRemoved%>" |
5944 |
02 Feb 12 |
nicklas |
142 |
/> |
6307 |
15 Aug 13 |
nicklas |
143 |
<base:icon |
6307 |
15 Aug 13 |
nicklas |
144 |
id="btnUsingItems" |
6307 |
15 Aug 13 |
nicklas |
145 |
image="used.png" |
5944 |
02 Feb 12 |
nicklas |
146 |
tooltip="This item is used by other items and can't be permanently deleted. Show the items that are using this one" |
5944 |
02 Feb 12 |
nicklas |
147 |
visible="<%=isRemoved && isUsed%>" /> |
5944 |
02 Feb 12 |
nicklas |
148 |
</th> |
5944 |
02 Feb 12 |
nicklas |
149 |
<td style="padding: 0px;"> |
6605 |
18 Nov 14 |
nicklas |
150 |
<tbl:toolbar subclass="bottomborder bg-filled-50"> |
5944 |
02 Feb 12 |
nicklas |
151 |
<tbl:button |
6307 |
15 Aug 13 |
nicklas |
152 |
id="btnEdit" |
5944 |
02 Feb 12 |
nicklas |
153 |
disabled="<%=!writePermission%>" |
5945 |
02 Feb 12 |
nicklas |
154 |
image="edit.png" |
5944 |
02 Feb 12 |
nicklas |
155 |
title="Edit…" |
5944 |
02 Feb 12 |
nicklas |
156 |
tooltip="<%=writePermission ? "Edit this array batch" : "You do not have permission to edit this array batch"%>" |
5944 |
02 Feb 12 |
nicklas |
157 |
/> |
5944 |
02 Feb 12 |
nicklas |
158 |
<tbl:button |
6307 |
15 Aug 13 |
nicklas |
159 |
id="btnDelete" |
5944 |
02 Feb 12 |
nicklas |
160 |
disabled="<%=!deletePermission%>" |
5946 |
03 Feb 12 |
nicklas |
161 |
image="delete.png" |
5944 |
02 Feb 12 |
nicklas |
162 |
title="Delete" |
5944 |
02 Feb 12 |
nicklas |
163 |
visible="<%=!batch.isRemoved()%>" |
5944 |
02 Feb 12 |
nicklas |
164 |
tooltip="<%=deletePermission ? "Delete this array batch" : "You do not have permission to delete this array batch"%>" |
5944 |
02 Feb 12 |
nicklas |
165 |
/> |
5944 |
02 Feb 12 |
nicklas |
166 |
<tbl:button |
6307 |
15 Aug 13 |
nicklas |
167 |
id="btnRestore" |
5944 |
02 Feb 12 |
nicklas |
168 |
disabled="<%=!writePermission%>" |
5946 |
03 Feb 12 |
nicklas |
169 |
image="restore.png" |
5944 |
02 Feb 12 |
nicklas |
170 |
title="Restore" |
5944 |
02 Feb 12 |
nicklas |
171 |
visible="<%=batch.isRemoved()%>" |
5944 |
02 Feb 12 |
nicklas |
172 |
tooltip="<%=writePermission ? "Restore this array batch" : "You do not have permission to restore this array batch"%>" |
5944 |
02 Feb 12 |
nicklas |
173 |
/> |
5944 |
02 Feb 12 |
nicklas |
174 |
<tbl:button |
6307 |
15 Aug 13 |
nicklas |
175 |
id="btnNewSlide" |
5944 |
02 Feb 12 |
nicklas |
176 |
image="add.png" |
5944 |
02 Feb 12 |
nicklas |
177 |
title="New slide…" |
5944 |
02 Feb 12 |
nicklas |
178 |
tooltip="Create a new array slide in this batch" |
5944 |
02 Feb 12 |
nicklas |
179 |
visible="<%=sc.hasPermission(Permission.CREATE, Item.ARRAYSLIDE) && usePermission%>" |
5944 |
02 Feb 12 |
nicklas |
180 |
/> |
5944 |
02 Feb 12 |
nicklas |
181 |
<tbl:button |
6307 |
15 Aug 13 |
nicklas |
182 |
id="btnNewSlideWizard" |
5946 |
03 Feb 12 |
nicklas |
183 |
image="new_wizard.png" |
5944 |
02 Feb 12 |
nicklas |
184 |
title="Create slides…" |
5944 |
02 Feb 12 |
nicklas |
185 |
tooltip="Create multiple new array slides in this batch using a wizard" |
5944 |
02 Feb 12 |
nicklas |
186 |
visible="<%=sc.hasPermission(Permission.CREATE, Item.ARRAYSLIDE) && usePermission%>" |
5944 |
02 Feb 12 |
nicklas |
187 |
/> |
5944 |
02 Feb 12 |
nicklas |
188 |
<tbl:button |
6307 |
15 Aug 13 |
nicklas |
189 |
id="btnShare" |
5944 |
02 Feb 12 |
nicklas |
190 |
disabled="<%=!sharePermission%>" |
5945 |
02 Feb 12 |
nicklas |
191 |
image="share.png" |
5944 |
02 Feb 12 |
nicklas |
192 |
title="Share…" |
5944 |
02 Feb 12 |
nicklas |
193 |
tooltip="<%=sharePermission ? "Share this array batch to other user, groups and projects" : "You do not have permission to share this array batch"%>" |
5944 |
02 Feb 12 |
nicklas |
194 |
/> |
5944 |
02 Feb 12 |
nicklas |
195 |
<tbl:button |
6307 |
15 Aug 13 |
nicklas |
196 |
id="btnSetOwner" |
5944 |
02 Feb 12 |
nicklas |
197 |
disabled="<%=!setOwnerPermission%>" |
5944 |
02 Feb 12 |
nicklas |
198 |
image="take_ownership.png" |
5944 |
02 Feb 12 |
nicklas |
199 |
title="Set owner…" |
5944 |
02 Feb 12 |
nicklas |
200 |
tooltip="<%=setOwnerPermission ? "Change owner of this item" : "You do not have permission to change ownership of this item"%>" |
5944 |
02 Feb 12 |
nicklas |
201 |
/> |
5944 |
02 Feb 12 |
nicklas |
202 |
<tbl:button |
6307 |
15 Aug 13 |
nicklas |
203 |
id="btnImport" |
5946 |
03 Feb 12 |
nicklas |
204 |
image="import.png" |
6307 |
15 Aug 13 |
nicklas |
205 |
data-plugin-type="IMPORT" |
5944 |
02 Feb 12 |
nicklas |
206 |
title="Import…" |
5944 |
02 Feb 12 |
nicklas |
207 |
tooltip="Import data" |
5944 |
02 Feb 12 |
nicklas |
208 |
visible="<%=pluginCount.containsKey(Plugin.MainType.IMPORT)%>" |
5944 |
02 Feb 12 |
nicklas |
209 |
/> |
5944 |
02 Feb 12 |
nicklas |
210 |
<tbl:button |
6307 |
15 Aug 13 |
nicklas |
211 |
id="btnExport" |
6307 |
15 Aug 13 |
nicklas |
212 |
image="export.png" |
6307 |
15 Aug 13 |
nicklas |
213 |
data-plugin-type="EXPORT" |
5944 |
02 Feb 12 |
nicklas |
214 |
title="Export…" |
5944 |
02 Feb 12 |
nicklas |
215 |
tooltip="Export data" |
5944 |
02 Feb 12 |
nicklas |
216 |
visible="<%=pluginCount.containsKey(Plugin.MainType.EXPORT)%>" |
5944 |
02 Feb 12 |
nicklas |
217 |
/> |
5944 |
02 Feb 12 |
nicklas |
218 |
<tbl:button |
6307 |
15 Aug 13 |
nicklas |
219 |
id="btnRunPlugin" |
6307 |
15 Aug 13 |
nicklas |
220 |
image="runplugin.png" |
6307 |
15 Aug 13 |
nicklas |
221 |
data-plugin-type="OTHER" |
5944 |
02 Feb 12 |
nicklas |
222 |
title="Run plugin…" |
5944 |
02 Feb 12 |
nicklas |
223 |
tooltip="Run a plugin" |
5944 |
02 Feb 12 |
nicklas |
224 |
visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>" |
5944 |
02 Feb 12 |
nicklas |
225 |
/> |
5944 |
02 Feb 12 |
nicklas |
226 |
<ext:render extensions="<%=invoker%>" context="<%=jspContext%>" |
7604 |
25 Feb 19 |
nicklas |
227 |
wrapper="<%=new PrefixSuffixRenderer<ButtonAction>(jspContext, "<td>", "</td>") %>"/> |
5944 |
02 Feb 12 |
nicklas |
228 |
<tbl:button |
5944 |
02 Feb 12 |
nicklas |
229 |
image="help.png" |
6307 |
15 Aug 13 |
nicklas |
230 |
subclass="auto-init" |
6307 |
15 Aug 13 |
nicklas |
231 |
data-auto-init="help" |
6307 |
15 Aug 13 |
nicklas |
232 |
data-help-id="arraybatch.view.properties" |
5944 |
02 Feb 12 |
nicklas |
233 |
title="Help…" |
5944 |
02 Feb 12 |
nicklas |
234 |
tooltip="Get help about this page" |
5944 |
02 Feb 12 |
nicklas |
235 |
/> |
5944 |
02 Feb 12 |
nicklas |
236 |
</tbl:toolbar> |
5944 |
02 Feb 12 |
nicklas |
237 |
</td> |
5944 |
02 Feb 12 |
nicklas |
238 |
</tr> |
1813 |
24 Jan 06 |
nicklas |
239 |
<tr> |
5944 |
02 Feb 12 |
nicklas |
240 |
<th>Name</th> |
1813 |
24 Jan 06 |
nicklas |
241 |
<td><%=HTML.encodeTags(batch.getName())%></td> |
1813 |
24 Jan 06 |
nicklas |
242 |
</tr> |
1813 |
24 Jan 06 |
nicklas |
243 |
<tr> |
5944 |
02 Feb 12 |
nicklas |
244 |
<th>Registered</th> |
4698 |
10 Dec 08 |
nicklas |
245 |
<td><%=dateFormatter.format(batch.getEntryDate())%></td> |
4698 |
10 Dec 08 |
nicklas |
246 |
</tr> |
4698 |
10 Dec 08 |
nicklas |
247 |
<tr> |
5944 |
02 Feb 12 |
nicklas |
248 |
<th>Array design</th> |
2449 |
29 Jun 06 |
nicklas |
249 |
<td><base:propertyvalue item="<%=batch%>" property="arrayDesign" /></td> |
1813 |
24 Jan 06 |
nicklas |
250 |
</tr> |
1813 |
24 Jan 06 |
nicklas |
251 |
<tr> |
5944 |
02 Feb 12 |
nicklas |
252 |
<th>Print robot</th> |
2449 |
29 Jun 06 |
nicklas |
253 |
<td><base:propertyvalue item="<%=batch%>" property="printRobot" /></td> |
1813 |
24 Jan 06 |
nicklas |
254 |
</tr> |
1813 |
24 Jan 06 |
nicklas |
255 |
<tr> |
5944 |
02 Feb 12 |
nicklas |
256 |
<th>Protocol</th> |
2449 |
29 Jun 06 |
nicklas |
257 |
<td><base:propertyvalue item="<%=batch%>" property="protocol" /></td> |
1813 |
24 Jan 06 |
nicklas |
258 |
</tr> |
1813 |
24 Jan 06 |
nicklas |
259 |
<tr> |
5944 |
02 Feb 12 |
nicklas |
260 |
<th>Owner</th> |
2449 |
29 Jun 06 |
nicklas |
261 |
<td><base:propertyvalue item="<%=batch%>" property="owner" /></td> |
1813 |
24 Jan 06 |
nicklas |
262 |
</tr> |
1813 |
24 Jan 06 |
nicklas |
263 |
<tr> |
5944 |
02 Feb 12 |
nicklas |
264 |
<th>Permissions</th> |
5944 |
02 Feb 12 |
nicklas |
265 |
<td><%=PermissionUtil.getFullPermissionNames(batch)%></td> |
5944 |
02 Feb 12 |
nicklas |
266 |
</tr> |
5944 |
02 Feb 12 |
nicklas |
267 |
<tr> |
5944 |
02 Feb 12 |
nicklas |
268 |
<th>Description</th> |
1813 |
24 Jan 06 |
nicklas |
269 |
<td><%=HTML.niceFormat(batch.getDescription())%></td> |
1813 |
24 Jan 06 |
nicklas |
270 |
</tr> |
1813 |
24 Jan 06 |
nicklas |
271 |
</table> |
5944 |
02 Feb 12 |
nicklas |
272 |
</div> |
2449 |
29 Jun 06 |
nicklas |
273 |
<% |
2449 |
29 Jun 06 |
nicklas |
274 |
ItemQuery<ArraySlide> slideQuery = batch.getArraySlides(); |
3888 |
29 Oct 07 |
nicklas |
275 |
slideQuery.include(Include.ALL); |
2449 |
29 Jun 06 |
nicklas |
276 |
slideQuery.order(Orders.asc(Hql.property("name"))); |
2449 |
29 Jun 06 |
nicklas |
277 |
ItemResultList<ArraySlide> slides = slideQuery.list(dc); |
5944 |
02 Feb 12 |
nicklas |
278 |
%> |
5944 |
02 Feb 12 |
nicklas |
279 |
<base:section |
5944 |
02 Feb 12 |
nicklas |
280 |
id="batchSection" |
5944 |
02 Feb 12 |
nicklas |
281 |
title="<%="Array slides (" + slides.size() + ")"%>" |
5944 |
02 Feb 12 |
nicklas |
282 |
context="<%=cc %>" |
5944 |
02 Feb 12 |
nicklas |
283 |
> |
2449 |
29 Jun 06 |
nicklas |
284 |
<% |
5944 |
02 Feb 12 |
nicklas |
285 |
if (slides.size() == 0) |
5944 |
02 Feb 12 |
nicklas |
286 |
{ |
5944 |
02 Feb 12 |
nicklas |
287 |
%> |
5944 |
02 Feb 12 |
nicklas |
288 |
<div class="messagecontainer note"> |
5944 |
02 Feb 12 |
nicklas |
289 |
No slides exists in this batch |
5944 |
02 Feb 12 |
nicklas |
290 |
(or, you don't have permission to view them). |
5944 |
02 Feb 12 |
nicklas |
291 |
</div> |
5944 |
02 Feb 12 |
nicklas |
292 |
<% |
5944 |
02 Feb 12 |
nicklas |
293 |
} |
5944 |
02 Feb 12 |
nicklas |
294 |
else |
5944 |
02 Feb 12 |
nicklas |
295 |
{ |
5944 |
02 Feb 12 |
nicklas |
296 |
%> |
5044 |
11 Aug 09 |
martin |
297 |
<tbl:table |
5044 |
11 Aug 09 |
martin |
298 |
id="batches" |
5044 |
11 Aug 09 |
martin |
299 |
columns="all" |
5044 |
11 Aug 09 |
martin |
300 |
> |
3547 |
03 Jul 07 |
martin |
301 |
<tbl:columndef |
3547 |
03 Jul 07 |
martin |
302 |
id="name" |
3547 |
03 Jul 07 |
martin |
303 |
title="Name" |
3547 |
03 Jul 07 |
martin |
304 |
/> |
5044 |
11 Aug 09 |
martin |
305 |
<tbl:columndef |
5944 |
02 Feb 12 |
nicklas |
306 |
id="physicalBioAssay" |
5944 |
02 Feb 12 |
nicklas |
307 |
title="Physical bioassay" |
5044 |
11 Aug 09 |
martin |
308 |
/> |
3547 |
03 Jul 07 |
martin |
309 |
<tbl:columndef |
5044 |
11 Aug 09 |
martin |
310 |
id="description" |
5044 |
11 Aug 09 |
martin |
311 |
title="Description" |
3547 |
03 Jul 07 |
martin |
312 |
/> |
3547 |
03 Jul 07 |
martin |
313 |
<tbl:data> |
5944 |
02 Feb 12 |
nicklas |
314 |
<tbl:headers> |
5944 |
02 Feb 12 |
nicklas |
315 |
<tbl:headerrow> |
5944 |
02 Feb 12 |
nicklas |
316 |
<tbl:columnheaders /> |
5944 |
02 Feb 12 |
nicklas |
317 |
</tbl:headerrow> |
5944 |
02 Feb 12 |
nicklas |
318 |
</tbl:headers> |
3547 |
03 Jul 07 |
martin |
319 |
<tbl:rows> |
3547 |
03 Jul 07 |
martin |
320 |
<% |
5044 |
11 Aug 09 |
martin |
321 |
for (ArraySlide item : slides) |
3547 |
03 Jul 07 |
martin |
322 |
{ |
5044 |
11 Aug 09 |
martin |
323 |
%> |
3547 |
03 Jul 07 |
martin |
324 |
<tbl:row> |
3888 |
29 Oct 07 |
nicklas |
325 |
<tbl:cell column="name"><base:icon |
5946 |
03 Feb 12 |
nicklas |
326 |
image="deleted.png" |
5044 |
11 Aug 09 |
martin |
327 |
tooltip="This item has been scheduled for deletion" |
5044 |
11 Aug 09 |
martin |
328 |
visible="<%=item.isRemoved()%>" |
5044 |
11 Aug 09 |
martin |
329 |
/><%=Base.getLinkedName(ID, item, false, true)%></tbl:cell> |
5944 |
02 Feb 12 |
nicklas |
330 |
<tbl:cell column="physicalBioAssay"><base:propertyvalue item="<%=item%>" property="physicalBioAssay" /></tbl:cell> |
5044 |
11 Aug 09 |
martin |
331 |
<tbl:cell column="description"><%=HTML.encodeTags(item.getDescription())%></tbl:cell> |
3547 |
03 Jul 07 |
martin |
332 |
</tbl:row> |
3547 |
03 Jul 07 |
martin |
333 |
<% |
3547 |
03 Jul 07 |
martin |
334 |
} |
3547 |
03 Jul 07 |
martin |
335 |
%> |
3547 |
03 Jul 07 |
martin |
336 |
</tbl:rows> |
3547 |
03 Jul 07 |
martin |
337 |
</tbl:data> |
5044 |
11 Aug 09 |
martin |
338 |
</tbl:table> |
5944 |
02 Feb 12 |
nicklas |
339 |
<% |
5944 |
02 Feb 12 |
nicklas |
340 |
} |
5944 |
02 Feb 12 |
nicklas |
341 |
%> |
5944 |
02 Feb 12 |
nicklas |
342 |
</base:section> |
5499 |
17 Nov 10 |
nicklas |
343 |
<jsp:include page="../../common/anytoany/list_anytoany.jsp"> |
5499 |
17 Nov 10 |
nicklas |
344 |
<jsp:param name="ID" value="<%=ID%>" /> |
5499 |
17 Nov 10 |
nicklas |
345 |
<jsp:param name="item_type" value="<%=itemType.name()%>" /> |
5499 |
17 Nov 10 |
nicklas |
346 |
<jsp:param name="item_id" value="<%=itemId%>" /> |
5499 |
17 Nov 10 |
nicklas |
347 |
<jsp:param name="title" value="Other items related to this batch" /> |
5499 |
17 Nov 10 |
nicklas |
348 |
</jsp:include> |
5935 |
26 Jan 12 |
nicklas |
349 |
<jsp:include page="../../common/share/list_share.jsp"> |
5935 |
26 Jan 12 |
nicklas |
350 |
<jsp:param name="ID" value="<%=ID%>" /> |
5935 |
26 Jan 12 |
nicklas |
351 |
<jsp:param name="item_type" value="<%=itemType.name()%>" /> |
5935 |
26 Jan 12 |
nicklas |
352 |
<jsp:param name="item_id" value="<%=itemId%>" /> |
5935 |
26 Jan 12 |
nicklas |
353 |
<jsp:param name="title" value="Shared to" /> |
5935 |
26 Jan 12 |
nicklas |
354 |
</jsp:include> |
5935 |
26 Jan 12 |
nicklas |
355 |
</t:tab> |
5044 |
11 Aug 09 |
martin |
356 |
|
2875 |
08 Nov 06 |
nicklas |
357 |
<t:tab id="annotations" title="Annotations & parameters" |
6307 |
15 Aug 13 |
nicklas |
358 |
tooltip="View annotation values and protocol parameters" clazz="white"> |
6255 |
22 Mar 13 |
nicklas |
359 |
<jsp:include page="../../common/annotations/list_frameset.jsp"> |
1861 |
30 Jan 06 |
nicklas |
360 |
<jsp:param name="item_type" value="<%=itemType.name()%>" /> |
1861 |
30 Jan 06 |
nicklas |
361 |
<jsp:param name="item_id" value="<%=itemId%>" /> |
1861 |
30 Jan 06 |
nicklas |
362 |
<jsp:param name="ID" value="<%=ID%>" /> |
1861 |
30 Jan 06 |
nicklas |
363 |
</jsp:include> |
1861 |
30 Jan 06 |
nicklas |
364 |
</t:tab> |
5935 |
26 Jan 12 |
nicklas |
365 |
|
4746 |
10 Feb 09 |
nicklas |
366 |
<t:tab id="overview" title="Overview" |
6307 |
15 Aug 13 |
nicklas |
367 |
tooltip="Display a tree overview of related items"> |
6242 |
25 Feb 13 |
nicklas |
368 |
<jsp:include page="../../common/overview/overview.jsp"> |
6242 |
25 Feb 13 |
nicklas |
369 |
<jsp:param name="item_type" value="<%=itemType.name()%>" /> |
6242 |
25 Feb 13 |
nicklas |
370 |
<jsp:param name="item_id" value="<%=itemId%>" /> |
6242 |
25 Feb 13 |
nicklas |
371 |
<jsp:param name="ID" value="<%=ID%>" /> |
6242 |
25 Feb 13 |
nicklas |
372 |
</jsp:include> |
4746 |
10 Feb 09 |
nicklas |
373 |
</t:tab> |
7166 |
07 Jun 16 |
nicklas |
374 |
<t:tab id="history" title="History" |
7166 |
07 Jun 16 |
nicklas |
375 |
tooltip="Displays a log with the history of this item" |
6307 |
15 Aug 13 |
nicklas |
376 |
visible="<%=ChangeHistoryUtil.showChangeHistoryTab(sc)%>"> |
6244 |
25 Feb 13 |
nicklas |
377 |
<jsp:include page="../../common/history/frameset.jsp"> |
6244 |
25 Feb 13 |
nicklas |
378 |
<jsp:param name="item_type" value="<%=itemType.name()%>" /> |
6244 |
25 Feb 13 |
nicklas |
379 |
<jsp:param name="item_id" value="<%=itemId%>" /> |
6244 |
25 Feb 13 |
nicklas |
380 |
<jsp:param name="ID" value="<%=ID%>" /> |
6244 |
25 Feb 13 |
nicklas |
381 |
</jsp:include> |
5062 |
19 Aug 09 |
nicklas |
382 |
</t:tab> |
5944 |
02 Feb 12 |
nicklas |
383 |
</t:tabcontrol> |
1861 |
30 Jan 06 |
nicklas |
384 |
|
1813 |
24 Jan 06 |
nicklas |
385 |
</base:body> |
1813 |
24 Jan 06 |
nicklas |
386 |
</base:page> |
1813 |
24 Jan 06 |
nicklas |
387 |
<% |
1813 |
24 Jan 06 |
nicklas |
388 |
} |
1813 |
24 Jan 06 |
nicklas |
389 |
finally |
1813 |
24 Jan 06 |
nicklas |
390 |
{ |
1813 |
24 Jan 06 |
nicklas |
391 |
if (dc != null) dc.close(); |
1813 |
24 Jan 06 |
nicklas |
392 |
} |
1813 |
24 Jan 06 |
nicklas |
393 |
%> |