1872 |
31 Jan 06 |
nicklas |
1 |
<%-- $Id$ |
1872 |
31 Jan 06 |
nicklas |
2 |
------------------------------------------------------------------ |
4889 |
06 Apr 09 |
nicklas |
Copyright (C) 2006 Johan Enell, Jari Häkkinen, Nicklas Nordborg, Martin Svensson |
3675 |
16 Aug 07 |
jari |
Copyright (C) 2007 Martin Svensson |
1872 |
31 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/ |
1872 |
31 Jan 06 |
nicklas |
8 |
|
1872 |
31 Jan 06 |
nicklas |
9 |
BASE is free software; you can redistribute it and/or |
1872 |
31 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 |
1872 |
31 Jan 06 |
nicklas |
12 |
of the License, or (at your option) any later version. |
1872 |
31 Jan 06 |
nicklas |
13 |
|
1872 |
31 Jan 06 |
nicklas |
14 |
BASE is distributed in the hope that it will be useful, |
1872 |
31 Jan 06 |
nicklas |
15 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
1872 |
31 Jan 06 |
nicklas |
16 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
1872 |
31 Jan 06 |
nicklas |
17 |
GNU General Public License for more details. |
1872 |
31 Jan 06 |
nicklas |
18 |
|
1872 |
31 Jan 06 |
nicklas |
19 |
You should have received a copy of the GNU General Public License |
4510 |
11 Sep 08 |
jari |
20 |
along with BASE. If not, see <http://www.gnu.org/licenses/>. |
1872 |
31 Jan 06 |
nicklas |
21 |
------------------------------------------------------------------ |
1872 |
31 Jan 06 |
nicklas |
22 |
|
1872 |
31 Jan 06 |
nicklas |
23 |
@author Nicklas |
1872 |
31 Jan 06 |
nicklas |
24 |
@version 2.0 |
1872 |
31 Jan 06 |
nicklas |
25 |
--%> |
5426 |
24 Sep 10 |
nicklas |
26 |
<%@ page pageEncoding="UTF-8" session="false" |
1872 |
31 Jan 06 |
nicklas |
27 |
import="net.sf.basedb.core.SessionControl" |
1872 |
31 Jan 06 |
nicklas |
28 |
import="net.sf.basedb.core.DbControl" |
1872 |
31 Jan 06 |
nicklas |
29 |
import="net.sf.basedb.core.SystemItems" |
3547 |
03 Jul 07 |
martin |
30 |
import="net.sf.basedb.core.Group" |
1872 |
31 Jan 06 |
nicklas |
31 |
import="net.sf.basedb.core.Item" |
5664 |
23 Jun 11 |
nicklas |
32 |
import="net.sf.basedb.core.CommonItem" |
1872 |
31 Jan 06 |
nicklas |
33 |
import="net.sf.basedb.core.ItemContext" |
4539 |
18 Sep 08 |
martin |
34 |
import="net.sf.basedb.core.ItemProxy" |
1872 |
31 Jan 06 |
nicklas |
35 |
import="net.sf.basedb.core.Permission" |
1872 |
31 Jan 06 |
nicklas |
36 |
import="net.sf.basedb.core.Extract" |
5642 |
26 May 11 |
nicklas |
37 |
import="net.sf.basedb.core.PhysicalBioAssay" |
1872 |
31 Jan 06 |
nicklas |
38 |
import="net.sf.basedb.core.Sample" |
5664 |
23 Jun 11 |
nicklas |
39 |
import="net.sf.basedb.core.BioMaterial" |
1872 |
31 Jan 06 |
nicklas |
40 |
import="net.sf.basedb.core.BioMaterialEvent" |
5664 |
23 Jun 11 |
nicklas |
41 |
import="net.sf.basedb.core.BioMaterialEventSource" |
4730 |
15 Jan 09 |
martin |
42 |
import="net.sf.basedb.core.BioWell" |
7587 |
06 Feb 19 |
nicklas |
43 |
import="net.sf.basedb.core.RawDataType" |
7587 |
06 Feb 19 |
nicklas |
44 |
import="net.sf.basedb.core.RawBioAssay" |
7587 |
06 Feb 19 |
nicklas |
45 |
import="net.sf.basedb.core.DerivedBioAssay" |
3547 |
03 Jul 07 |
martin |
46 |
import="net.sf.basedb.core.MultiPermissions" |
6053 |
03 May 12 |
nicklas |
47 |
import="net.sf.basedb.core.ItemSubtype" |
1872 |
31 Jan 06 |
nicklas |
48 |
import="net.sf.basedb.core.Protocol" |
3547 |
03 Jul 07 |
martin |
49 |
import="net.sf.basedb.core.Project" |
1872 |
31 Jan 06 |
nicklas |
50 |
import="net.sf.basedb.core.User" |
1872 |
31 Jan 06 |
nicklas |
51 |
import="net.sf.basedb.core.ItemQuery" |
1872 |
31 Jan 06 |
nicklas |
52 |
import="net.sf.basedb.core.ItemResultList" |
5664 |
23 Jun 11 |
nicklas |
53 |
import="net.sf.basedb.core.SpecialQuery" |
1872 |
31 Jan 06 |
nicklas |
54 |
import="net.sf.basedb.core.Include" |
5664 |
23 Jun 11 |
nicklas |
55 |
import="net.sf.basedb.core.query.ResultList" |
1872 |
31 Jan 06 |
nicklas |
56 |
import="net.sf.basedb.core.query.Orders" |
1872 |
31 Jan 06 |
nicklas |
57 |
import="net.sf.basedb.core.query.Hql" |
2464 |
04 Jul 06 |
martin |
58 |
import="net.sf.basedb.core.query.Restrictions" |
2464 |
04 Jul 06 |
martin |
59 |
import="net.sf.basedb.core.query.Expressions" |
1872 |
31 Jan 06 |
nicklas |
60 |
import="net.sf.basedb.core.PermissionDeniedException" |
1872 |
31 Jan 06 |
nicklas |
61 |
import="net.sf.basedb.core.PluginDefinition" |
1872 |
31 Jan 06 |
nicklas |
62 |
import="net.sf.basedb.core.plugin.GuiContext" |
1872 |
31 Jan 06 |
nicklas |
63 |
import="net.sf.basedb.core.plugin.Plugin" |
2464 |
04 Jul 06 |
martin |
64 |
import="net.sf.basedb.core.Type" |
1872 |
31 Jan 06 |
nicklas |
65 |
import="net.sf.basedb.clients.web.Base" |
5050 |
17 Aug 09 |
nicklas |
66 |
import="net.sf.basedb.clients.web.ChangeHistoryUtil" |
2386 |
15 Jun 06 |
martin |
67 |
import="net.sf.basedb.clients.web.PermissionUtil" |
1872 |
31 Jan 06 |
nicklas |
68 |
import="net.sf.basedb.clients.web.util.HTML" |
2753 |
20 Oct 06 |
nicklas |
69 |
import="net.sf.basedb.util.Values" |
2942 |
22 Nov 06 |
nicklas |
70 |
import="net.sf.basedb.util.formatter.Formatter" |
4869 |
31 Mar 09 |
martin |
71 |
import="net.sf.basedb.util.formatter.WellCoordinateFormatter" |
6268 |
11 Apr 13 |
nicklas |
72 |
import="net.sf.basedb.util.formatter.PrefixSuffixFormatter" |
2942 |
22 Nov 06 |
nicklas |
73 |
import="net.sf.basedb.clients.web.formatter.FormatterFactory" |
6268 |
11 Apr 13 |
nicklas |
74 |
import="net.sf.basedb.clients.web.formatter.FormatterSettings" |
4882 |
03 Apr 09 |
nicklas |
75 |
import="net.sf.basedb.clients.web.extensions.ExtensionsControl" |
4882 |
03 Apr 09 |
nicklas |
76 |
import="net.sf.basedb.clients.web.extensions.JspContext" |
4882 |
03 Apr 09 |
nicklas |
77 |
import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer" |
7604 |
25 Feb 19 |
nicklas |
78 |
import="net.sf.basedb.clients.web.extensions.toolbar.ButtonAction" |
4882 |
03 Apr 09 |
nicklas |
79 |
import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil" |
4882 |
03 Apr 09 |
nicklas |
80 |
import="net.sf.basedb.util.extensions.ExtensionsInvoker" |
4539 |
18 Sep 08 |
martin |
81 |
import="java.util.ArrayList" |
3547 |
03 Jul 07 |
martin |
82 |
import="java.util.Collections" |
1872 |
31 Jan 06 |
nicklas |
83 |
import="java.util.Date" |
1872 |
31 Jan 06 |
nicklas |
84 |
import="java.util.Map" |
1872 |
31 Jan 06 |
nicklas |
85 |
import="java.util.Set" |
1872 |
31 Jan 06 |
nicklas |
86 |
import="java.util.List" |
1872 |
31 Jan 06 |
nicklas |
87 |
%> |
1872 |
31 Jan 06 |
nicklas |
88 |
<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> |
1872 |
31 Jan 06 |
nicklas |
89 |
<%@ taglib prefix="t" uri="/WEB-INF/tab.tld" %> |
1872 |
31 Jan 06 |
nicklas |
90 |
<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %> |
1872 |
31 Jan 06 |
nicklas |
91 |
<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %> |
4882 |
03 Apr 09 |
nicklas |
92 |
<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %> |
1872 |
31 Jan 06 |
nicklas |
93 |
<%! |
1872 |
31 Jan 06 |
nicklas |
94 |
private static final Item itemType = Item.EXTRACT; |
1872 |
31 Jan 06 |
nicklas |
95 |
private static final GuiContext guiContext = new GuiContext(itemType, GuiContext.Type.ITEM); |
1872 |
31 Jan 06 |
nicklas |
96 |
%> |
1872 |
31 Jan 06 |
nicklas |
97 |
<% |
1872 |
31 Jan 06 |
nicklas |
98 |
final SessionControl sc = Base.getExistingSessionControl(pageContext, true); |
1872 |
31 Jan 06 |
nicklas |
99 |
final String ID = sc.getId(); |
1872 |
31 Jan 06 |
nicklas |
100 |
final ItemContext cc = Base.getAndSetCurrentContext(sc, itemType, null, null); |
1872 |
31 Jan 06 |
nicklas |
101 |
final int itemId = cc.getId(); |
6261 |
27 Mar 13 |
nicklas |
102 |
final String tab = Values.getStringOrNull(request.getParameter("tab")); |
1872 |
31 Jan 06 |
nicklas |
103 |
final float scale = Base.getScale(sc); |
7954 |
12 May 21 |
nicklas |
104 |
final DbControl dc = sc.newDbControl(":View "+itemType); |
1872 |
31 Jan 06 |
nicklas |
105 |
try |
1872 |
31 Jan 06 |
nicklas |
106 |
{ |
2942 |
22 Nov 06 |
nicklas |
107 |
Formatter<Date> dateFormatter = FormatterFactory.getDateFormatter(sc); |
6268 |
11 Apr 13 |
nicklas |
108 |
Formatter<Number> numberFormatter = FormatterFactory.getNumberFormatter(sc); |
7604 |
25 Feb 19 |
nicklas |
109 |
Formatter<Number> quantityFormatter = new PrefixSuffixFormatter<Number>(null, false, numberFormatter, " µg", false); |
6268 |
11 Apr 13 |
nicklas |
110 |
|
1872 |
31 Jan 06 |
nicklas |
111 |
Map<Plugin.MainType, Integer> pluginCount = PluginDefinition.countPlugins(dc, guiContext); |
4869 |
31 Mar 09 |
martin |
112 |
|
4869 |
31 Mar 09 |
martin |
113 |
WellCoordinateFormatter rowFormatter = new WellCoordinateFormatter(true); |
4869 |
31 Mar 09 |
martin |
114 |
WellCoordinateFormatter columnFormatter = new WellCoordinateFormatter(false); |
1872 |
31 Jan 06 |
nicklas |
115 |
|
1872 |
31 Jan 06 |
nicklas |
116 |
String title = null; |
1872 |
31 Jan 06 |
nicklas |
117 |
Extract extract = Extract.getById(dc, itemId); |
1872 |
31 Jan 06 |
nicklas |
118 |
BioMaterialEvent creationEvent = extract.getCreationEvent(); |
1872 |
31 Jan 06 |
nicklas |
119 |
|
1872 |
31 Jan 06 |
nicklas |
120 |
final boolean writePermission = extract.hasPermission(Permission.WRITE); |
1872 |
31 Jan 06 |
nicklas |
121 |
final boolean deletePermission = extract.hasPermission(Permission.DELETE); |
1872 |
31 Jan 06 |
nicklas |
122 |
final boolean sharePermission = extract.hasPermission(Permission.SET_PERMISSION); |
2464 |
04 Jul 06 |
martin |
123 |
final boolean usePermission = extract.hasPermission(Permission.USE); |
2917 |
15 Nov 06 |
nicklas |
124 |
final boolean setOwnerPermission = extract.hasPermission(Permission.SET_OWNER); |
4003 |
26 Nov 07 |
nicklas |
125 |
final boolean isRemoved = extract.isRemoved(); |
4003 |
26 Nov 07 |
nicklas |
126 |
final boolean isUsed = isRemoved && extract.isUsed(); |
4003 |
26 Nov 07 |
nicklas |
127 |
final boolean deletePermanentlyPermission = deletePermission && !isUsed; |
2917 |
15 Nov 06 |
nicklas |
128 |
final boolean isOwner = extract.isOwner(); |
4882 |
03 Apr 09 |
nicklas |
129 |
JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, extract); |
7604 |
25 Feb 19 |
nicklas |
130 |
ExtensionsInvoker<ButtonAction> invoker = ToolbarUtil.useExtensions(jspContext); |
1872 |
31 Jan 06 |
nicklas |
131 |
%> |
6261 |
27 Mar 13 |
nicklas |
132 |
<base:page title="<%=title%>" id="view-page"> |
6261 |
27 Mar 13 |
nicklas |
133 |
<base:head scripts="table.js,tabcontrol-2.js,~extracts.js" styles="table.css,toolbar.css,headertabcontrol.css,path.css"> |
4882 |
03 Apr 09 |
nicklas |
134 |
<ext:scripts context="<%=jspContext%>" /> |
4882 |
03 Apr 09 |
nicklas |
135 |
<ext:stylesheets context="<%=jspContext%>" /> |
1872 |
31 Jan 06 |
nicklas |
136 |
</base:head> |
1872 |
31 Jan 06 |
nicklas |
137 |
<base:body> |
5935 |
26 Jan 12 |
nicklas |
138 |
<p:path><p:pathelement |
5935 |
26 Jan 12 |
nicklas |
139 |
title="Extracts" href="<%="index.jsp?ID="+ID%>" /><p:pathelement |
5935 |
26 Jan 12 |
nicklas |
140 |
title="<%=HTML.encodeTags(extract.getName())%>" /></p:path> |
6261 |
27 Mar 13 |
nicklas |
141 |
<div id="page-data" data-item-id="<%=itemId%>"></div> |
1872 |
31 Jan 06 |
nicklas |
142 |
|
6261 |
27 Mar 13 |
nicklas |
143 |
<t:tabcontrol id="main" subclass="content mastertabcontrol" active="<%=tab%>"> |
1872 |
31 Jan 06 |
nicklas |
144 |
<t:tab id="properties" title="Properties"> |
5935 |
26 Jan 12 |
nicklas |
145 |
<div> |
5935 |
26 Jan 12 |
nicklas |
146 |
<table class="fullform bottomborder"> |
5935 |
26 Jan 12 |
nicklas |
147 |
<tr> |
5935 |
26 Jan 12 |
nicklas |
148 |
<th class="itemstatus"> |
4003 |
26 Nov 07 |
nicklas |
149 |
<base:icon |
5946 |
03 Feb 12 |
nicklas |
150 |
image="shared.png" |
5935 |
26 Jan 12 |
nicklas |
151 |
visible="<%=extract.isShared()%>" |
5935 |
26 Jan 12 |
nicklas |
152 |
tooltip="This item is shared to other users, groups and/or projects" |
5935 |
26 Jan 12 |
nicklas |
153 |
/> |
5935 |
26 Jan 12 |
nicklas |
154 |
<base:icon |
6261 |
27 Mar 13 |
nicklas |
155 |
id="btnDeletePermanently" |
5946 |
03 Feb 12 |
nicklas |
156 |
image="deleted.png" |
5935 |
26 Jan 12 |
nicklas |
157 |
tooltip="This item has been flagged for deletion. Click to delete it now." |
5935 |
26 Jan 12 |
nicklas |
158 |
enabled="<%=deletePermanentlyPermission %>" |
5935 |
26 Jan 12 |
nicklas |
159 |
visible="<%=isRemoved%>" |
5935 |
26 Jan 12 |
nicklas |
160 |
/> |
6261 |
27 Mar 13 |
nicklas |
161 |
<base:icon |
6261 |
27 Mar 13 |
nicklas |
162 |
id="btnUsingItems" |
6261 |
27 Mar 13 |
nicklas |
163 |
image="used.png" |
5935 |
26 Jan 12 |
nicklas |
164 |
tooltip="This item is used by other items and can't be permanently deleted. Show the items that are using this one" |
5935 |
26 Jan 12 |
nicklas |
165 |
visible="<%=isRemoved && isUsed%>" /> |
5935 |
26 Jan 12 |
nicklas |
166 |
</th> |
5935 |
26 Jan 12 |
nicklas |
167 |
<td style="padding: 0px;"> |
6605 |
18 Nov 14 |
nicklas |
168 |
<tbl:toolbar subclass="bottomborder bg-filled-50"> |
5935 |
26 Jan 12 |
nicklas |
169 |
<tbl:button |
6261 |
27 Mar 13 |
nicklas |
170 |
id="btnEdit" |
5942 |
01 Feb 12 |
nicklas |
171 |
disabled="<%=!writePermission%>" |
5945 |
02 Feb 12 |
nicklas |
172 |
image="edit.png" |
5935 |
26 Jan 12 |
nicklas |
173 |
title="Edit…" |
5935 |
26 Jan 12 |
nicklas |
174 |
tooltip="<%=writePermission ? "Edit this extract" : "You do not have permission to edit this extract"%>" |
5935 |
26 Jan 12 |
nicklas |
175 |
/> |
5935 |
26 Jan 12 |
nicklas |
176 |
<tbl:button |
6261 |
27 Mar 13 |
nicklas |
177 |
id="btnDelete" |
5942 |
01 Feb 12 |
nicklas |
178 |
disabled="<%=!deletePermission%>" |
5946 |
03 Feb 12 |
nicklas |
179 |
image="delete.png" |
5935 |
26 Jan 12 |
nicklas |
180 |
title="Delete" |
5935 |
26 Jan 12 |
nicklas |
181 |
visible="<%=!extract.isRemoved()%>" |
5935 |
26 Jan 12 |
nicklas |
182 |
tooltip="<%=deletePermission ? "Delete this extract" : "You do not have permission to delete this extract"%>" |
5935 |
26 Jan 12 |
nicklas |
183 |
/> |
5935 |
26 Jan 12 |
nicklas |
184 |
<tbl:button |
6261 |
27 Mar 13 |
nicklas |
185 |
id="btnRestore" |
5942 |
01 Feb 12 |
nicklas |
186 |
disabled="<%=!writePermission%>" |
5946 |
03 Feb 12 |
nicklas |
187 |
image="restore.png" |
5935 |
26 Jan 12 |
nicklas |
188 |
title="Restore" |
5935 |
26 Jan 12 |
nicklas |
189 |
visible="<%=extract.isRemoved()%>" |
5935 |
26 Jan 12 |
nicklas |
190 |
tooltip="<%=writePermission ? "Restore this extract" : "You do not have permission to restore this extract"%>" |
5935 |
26 Jan 12 |
nicklas |
191 |
/> |
5935 |
26 Jan 12 |
nicklas |
192 |
<tbl:button |
6261 |
27 Mar 13 |
nicklas |
193 |
id="btnShare" |
5942 |
01 Feb 12 |
nicklas |
194 |
disabled="<%=!sharePermission%>" |
5945 |
02 Feb 12 |
nicklas |
195 |
image="share.png" |
5935 |
26 Jan 12 |
nicklas |
196 |
title="Share…" |
5935 |
26 Jan 12 |
nicklas |
197 |
tooltip="<%=sharePermission ? "Share this extract to other user, groups and projects" : "You do not have permission to share this extract"%>" |
5935 |
26 Jan 12 |
nicklas |
198 |
/> |
5935 |
26 Jan 12 |
nicklas |
199 |
<tbl:button |
6261 |
27 Mar 13 |
nicklas |
200 |
id="btnSetOwner" |
5942 |
01 Feb 12 |
nicklas |
201 |
disabled="<%=!setOwnerPermission%>" |
5935 |
26 Jan 12 |
nicklas |
202 |
image="take_ownership.png" |
5935 |
26 Jan 12 |
nicklas |
203 |
title="Set owner…" |
5935 |
26 Jan 12 |
nicklas |
204 |
tooltip="<%=setOwnerPermission ? "Change owner of this item" : "You do not have permission to change ownership of this item"%>" |
5935 |
26 Jan 12 |
nicklas |
205 |
/> |
5935 |
26 Jan 12 |
nicklas |
206 |
<tbl:button |
6261 |
27 Mar 13 |
nicklas |
207 |
id="btnNewExtract" |
5935 |
26 Jan 12 |
nicklas |
208 |
image="add.png" |
5935 |
26 Jan 12 |
nicklas |
209 |
title="New child extract…" |
5935 |
26 Jan 12 |
nicklas |
210 |
tooltip="Create a new child extract from this extract" |
5935 |
26 Jan 12 |
nicklas |
211 |
visible="<%=sc.hasPermission(Permission.CREATE, Item.EXTRACT) && usePermission%>" |
5935 |
26 Jan 12 |
nicklas |
212 |
/> |
5935 |
26 Jan 12 |
nicklas |
213 |
<tbl:button |
6261 |
27 Mar 13 |
nicklas |
214 |
id="btnNewPhysicalBioAssay" |
5935 |
26 Jan 12 |
nicklas |
215 |
image="add.png" |
5935 |
26 Jan 12 |
nicklas |
216 |
title="New physical bioassay…" |
5935 |
26 Jan 12 |
nicklas |
217 |
tooltip="Create a new physical bioassay from this extract" |
5935 |
26 Jan 12 |
nicklas |
218 |
visible="<%=sc.hasPermission(Permission.CREATE, Item.PHYSICALBIOASSAY) && usePermission%>" |
5935 |
26 Jan 12 |
nicklas |
219 |
/> |
5935 |
26 Jan 12 |
nicklas |
220 |
<tbl:button |
6261 |
27 Mar 13 |
nicklas |
221 |
id="btnNewRawBioAssay" |
5935 |
26 Jan 12 |
nicklas |
222 |
image="add.png" |
5935 |
26 Jan 12 |
nicklas |
223 |
title="New raw bioassay…" |
5935 |
26 Jan 12 |
nicklas |
224 |
tooltip="Create a new raw bioassay from this extract" |
5935 |
26 Jan 12 |
nicklas |
225 |
visible="<%=sc.hasPermission(Permission.CREATE, Item.RAWBIOASSAY) && usePermission%>" |
5935 |
26 Jan 12 |
nicklas |
226 |
/> |
5935 |
26 Jan 12 |
nicklas |
227 |
<tbl:button |
6261 |
27 Mar 13 |
nicklas |
228 |
id="btnImport" |
5946 |
03 Feb 12 |
nicklas |
229 |
image="import.png" |
6261 |
27 Mar 13 |
nicklas |
230 |
data-plugin-type="IMPORT" |
5935 |
26 Jan 12 |
nicklas |
231 |
title="Import…" |
5935 |
26 Jan 12 |
nicklas |
232 |
tooltip="Import data" |
5935 |
26 Jan 12 |
nicklas |
233 |
visible="<%=pluginCount.containsKey(Plugin.MainType.IMPORT)%>" |
5935 |
26 Jan 12 |
nicklas |
234 |
/> |
5935 |
26 Jan 12 |
nicklas |
235 |
<tbl:button |
6261 |
27 Mar 13 |
nicklas |
236 |
id="btnExport" |
6261 |
27 Mar 13 |
nicklas |
237 |
image="export.png" |
6261 |
27 Mar 13 |
nicklas |
238 |
data-plugin-type="EXPORT" |
5935 |
26 Jan 12 |
nicklas |
239 |
title="Export…" |
5935 |
26 Jan 12 |
nicklas |
240 |
tooltip="Export data" |
5935 |
26 Jan 12 |
nicklas |
241 |
visible="<%=pluginCount.containsKey(Plugin.MainType.EXPORT)%>" |
5935 |
26 Jan 12 |
nicklas |
242 |
/> |
5935 |
26 Jan 12 |
nicklas |
243 |
<tbl:button |
6261 |
27 Mar 13 |
nicklas |
244 |
id="btnRunPlugin" |
6261 |
27 Mar 13 |
nicklas |
245 |
image="runplugin.png" |
6261 |
27 Mar 13 |
nicklas |
246 |
data-plugin-type="OTHER" |
5935 |
26 Jan 12 |
nicklas |
247 |
title="Run plugin…" |
5935 |
26 Jan 12 |
nicklas |
248 |
tooltip="Run a plugin" |
5935 |
26 Jan 12 |
nicklas |
249 |
visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>" |
5935 |
26 Jan 12 |
nicklas |
250 |
/> |
5935 |
26 Jan 12 |
nicklas |
251 |
<ext:render extensions="<%=invoker%>" context="<%=jspContext%>" |
7604 |
25 Feb 19 |
nicklas |
252 |
wrapper="<%=new PrefixSuffixRenderer<ButtonAction>(jspContext, "<td>", "</td>") %>"/> |
5935 |
26 Jan 12 |
nicklas |
253 |
<tbl:button |
5935 |
26 Jan 12 |
nicklas |
254 |
image="help.png" |
6261 |
27 Mar 13 |
nicklas |
255 |
subclass="auto-init" |
6261 |
27 Mar 13 |
nicklas |
256 |
data-auto-init="help" |
6261 |
27 Mar 13 |
nicklas |
257 |
data-help-id="extract.view.properties" |
5935 |
26 Jan 12 |
nicklas |
258 |
title="Help…" |
5935 |
26 Jan 12 |
nicklas |
259 |
tooltip="Get help about this page" |
5935 |
26 Jan 12 |
nicklas |
260 |
/> |
5935 |
26 Jan 12 |
nicklas |
261 |
</tbl:toolbar> |
5935 |
26 Jan 12 |
nicklas |
262 |
</td> |
5935 |
26 Jan 12 |
nicklas |
263 |
</tr> |
5935 |
26 Jan 12 |
nicklas |
264 |
<tr> |
5935 |
26 Jan 12 |
nicklas |
265 |
<th>Name</th> |
5935 |
26 Jan 12 |
nicklas |
266 |
<td><%=HTML.encodeTags(extract.getName())%></td> |
5935 |
26 Jan 12 |
nicklas |
267 |
</tr> |
5935 |
26 Jan 12 |
nicklas |
268 |
<tr> |
5935 |
26 Jan 12 |
nicklas |
269 |
<th>Type</th> |
5935 |
26 Jan 12 |
nicklas |
270 |
<td><base:propertyvalue item="<%=extract%>" property="itemSubtype" /></td> |
5935 |
26 Jan 12 |
nicklas |
271 |
</tr> |
5935 |
26 Jan 12 |
nicklas |
272 |
<tr> |
5935 |
26 Jan 12 |
nicklas |
273 |
<th>External ID</th> |
5935 |
26 Jan 12 |
nicklas |
274 |
<td><%=HTML.encodeTags(extract.getExternalId())%></td> |
5935 |
26 Jan 12 |
nicklas |
275 |
</tr> |
5935 |
26 Jan 12 |
nicklas |
276 |
<tr> |
5935 |
26 Jan 12 |
nicklas |
277 |
<th>Created</th> |
5935 |
26 Jan 12 |
nicklas |
278 |
<td><%=dateFormatter.format(creationEvent.getEventDate())%></td> |
5935 |
26 Jan 12 |
nicklas |
279 |
</tr> |
5935 |
26 Jan 12 |
nicklas |
280 |
<tr> |
5935 |
26 Jan 12 |
nicklas |
281 |
<th>Registered</th> |
5935 |
26 Jan 12 |
nicklas |
282 |
<td><%=dateFormatter.format(creationEvent.getEntryDate())%></td> |
5935 |
26 Jan 12 |
nicklas |
283 |
</tr> |
5935 |
26 Jan 12 |
nicklas |
284 |
<tr> |
5935 |
26 Jan 12 |
nicklas |
285 |
<th>Tag</th> |
5935 |
26 Jan 12 |
nicklas |
286 |
<td><base:propertyvalue item="<%=extract%>" property="tag"/></td> |
5935 |
26 Jan 12 |
nicklas |
287 |
</tr> |
5935 |
26 Jan 12 |
nicklas |
288 |
<tr> |
5935 |
26 Jan 12 |
nicklas |
289 |
<th>Protocol</th> |
5935 |
26 Jan 12 |
nicklas |
290 |
<td><base:propertyvalue item="<%=creationEvent%>" property="protocol"/></td> |
5935 |
26 Jan 12 |
nicklas |
291 |
</tr> |
5935 |
26 Jan 12 |
nicklas |
292 |
<tr> |
6992 |
03 Nov 15 |
nicklas |
293 |
<th>Kit</th> |
6992 |
03 Nov 15 |
nicklas |
294 |
<td><base:propertyvalue item="<%=creationEvent%>" property="kit"/></td> |
6992 |
03 Nov 15 |
nicklas |
295 |
</tr> |
6992 |
03 Nov 15 |
nicklas |
296 |
<tr> |
5935 |
26 Jan 12 |
nicklas |
297 |
<th>Original quantity</th> |
6268 |
11 Apr 13 |
nicklas |
298 |
<td><%=quantityFormatter.format(extract.getOriginalQuantity())%></td> |
5935 |
26 Jan 12 |
nicklas |
299 |
</tr> |
5935 |
26 Jan 12 |
nicklas |
300 |
<tr> |
5935 |
26 Jan 12 |
nicklas |
301 |
<th class="subprompt">- remaining</th> |
6268 |
11 Apr 13 |
nicklas |
302 |
<td><%=quantityFormatter.format(extract.getRemainingQuantity())%></td> |
5935 |
26 Jan 12 |
nicklas |
303 |
</tr> |
5935 |
26 Jan 12 |
nicklas |
304 |
<tr> |
5935 |
26 Jan 12 |
nicklas |
305 |
<th>Bioplate</th> |
5935 |
26 Jan 12 |
nicklas |
306 |
<td> |
5935 |
26 Jan 12 |
nicklas |
307 |
<base:propertyvalue item="<%=extract%>" property="bioWell.bioPlate" /> |
5935 |
26 Jan 12 |
nicklas |
308 |
<% |
5935 |
26 Jan 12 |
nicklas |
309 |
try |
4730 |
15 Jan 09 |
martin |
310 |
{ |
5935 |
26 Jan 12 |
nicklas |
311 |
BioWell well = extract.getBioWell(); |
5935 |
26 Jan 12 |
nicklas |
312 |
if (well != null) |
5935 |
26 Jan 12 |
nicklas |
313 |
{ |
5935 |
26 Jan 12 |
nicklas |
314 |
%> |
5935 |
26 Jan 12 |
nicklas |
315 |
[<%=rowFormatter.format(well.getRow())%><%=columnFormatter.format(well.getColumn())%>] |
5946 |
03 Feb 12 |
nicklas |
316 |
<base:icon image="locked.png" visible="<%=extract.isLockedInWell()%>"/> |
5935 |
26 Jan 12 |
nicklas |
317 |
<% |
5935 |
26 Jan 12 |
nicklas |
318 |
} |
4730 |
15 Jan 09 |
martin |
319 |
} |
5935 |
26 Jan 12 |
nicklas |
320 |
catch (PermissionDeniedException ex) |
5935 |
26 Jan 12 |
nicklas |
321 |
{} |
5935 |
26 Jan 12 |
nicklas |
322 |
%> |
5935 |
26 Jan 12 |
nicklas |
323 |
</td> |
5935 |
26 Jan 12 |
nicklas |
324 |
</tr> |
5935 |
26 Jan 12 |
nicklas |
325 |
<tr> |
5935 |
26 Jan 12 |
nicklas |
326 |
<th>Owner</th> |
5935 |
26 Jan 12 |
nicklas |
327 |
<td><base:propertyvalue item="<%=extract%>" property="owner"/></td> |
5935 |
26 Jan 12 |
nicklas |
328 |
</tr> |
5935 |
26 Jan 12 |
nicklas |
329 |
<tr> |
5935 |
26 Jan 12 |
nicklas |
330 |
<th>Permissions</th> |
5935 |
26 Jan 12 |
nicklas |
331 |
<td><%=PermissionUtil.getFullPermissionNames(extract)%></td> |
5935 |
26 Jan 12 |
nicklas |
332 |
</tr> |
5935 |
26 Jan 12 |
nicklas |
333 |
<tr> |
5935 |
26 Jan 12 |
nicklas |
334 |
<th>Description</th> |
5935 |
26 Jan 12 |
nicklas |
335 |
<td><%=HTML.niceFormat(extract.getDescription())%></td> |
5935 |
26 Jan 12 |
nicklas |
336 |
</tr> |
1872 |
31 Jan 06 |
nicklas |
337 |
</table> |
5935 |
26 Jan 12 |
nicklas |
338 |
</div> |
1872 |
31 Jan 06 |
nicklas |
339 |
|
1872 |
31 Jan 06 |
nicklas |
340 |
<% |
5664 |
23 Jun 11 |
nicklas |
341 |
SpecialQuery<BioMaterialEventSource> sourceQuery = creationEvent.getEventSources(); |
5664 |
23 Jun 11 |
nicklas |
342 |
sourceQuery.order(Orders.asc(Hql.property("bioMaterial.name"))); |
5664 |
23 Jun 11 |
nicklas |
343 |
ResultList<BioMaterialEventSource> sources = sourceQuery.list(dc); |
5935 |
26 Jan 12 |
nicklas |
344 |
%> |
5935 |
26 Jan 12 |
nicklas |
345 |
<base:section |
5935 |
26 Jan 12 |
nicklas |
346 |
id="parentsSection" |
5935 |
26 Jan 12 |
nicklas |
347 |
title="<%="Parent items (" + sources.size() + ")"%>" |
5935 |
26 Jan 12 |
nicklas |
348 |
context="<%=cc%>" |
5935 |
26 Jan 12 |
nicklas |
349 |
> |
5664 |
23 Jun 11 |
nicklas |
350 |
<% |
5935 |
26 Jan 12 |
nicklas |
351 |
if (sources.size() == 0) |
5935 |
26 Jan 12 |
nicklas |
352 |
{ |
5935 |
26 Jan 12 |
nicklas |
353 |
%> |
5935 |
26 Jan 12 |
nicklas |
354 |
<div class="messagecontainer note"> |
5935 |
26 Jan 12 |
nicklas |
355 |
This extract doesn't have any parent items |
5935 |
26 Jan 12 |
nicklas |
356 |
(or, you don't have permission to view them). |
5935 |
26 Jan 12 |
nicklas |
357 |
</div> |
5935 |
26 Jan 12 |
nicklas |
358 |
<% |
5935 |
26 Jan 12 |
nicklas |
359 |
} |
5935 |
26 Jan 12 |
nicklas |
360 |
else |
5935 |
26 Jan 12 |
nicklas |
361 |
{ |
5935 |
26 Jan 12 |
nicklas |
362 |
%> |
5664 |
23 Jun 11 |
nicklas |
363 |
<tbl:table |
5664 |
23 Jun 11 |
nicklas |
364 |
id="parents" |
5664 |
23 Jun 11 |
nicklas |
365 |
columns="all" |
5664 |
23 Jun 11 |
nicklas |
366 |
> |
5664 |
23 Jun 11 |
nicklas |
367 |
<tbl:columndef |
5664 |
23 Jun 11 |
nicklas |
368 |
id="name" |
5664 |
23 Jun 11 |
nicklas |
369 |
title="Name" |
5664 |
23 Jun 11 |
nicklas |
370 |
/> |
5664 |
23 Jun 11 |
nicklas |
371 |
<tbl:columndef |
5664 |
23 Jun 11 |
nicklas |
372 |
id="type" |
5664 |
23 Jun 11 |
nicklas |
373 |
title="Type" |
5664 |
23 Jun 11 |
nicklas |
374 |
/> |
5664 |
23 Jun 11 |
nicklas |
375 |
<tbl:columndef |
5664 |
23 Jun 11 |
nicklas |
376 |
id="quantity" |
5664 |
23 Jun 11 |
nicklas |
377 |
title="Used quantity (µg)" |
5664 |
23 Jun 11 |
nicklas |
378 |
/> |
5664 |
23 Jun 11 |
nicklas |
379 |
<tbl:columndef |
5664 |
23 Jun 11 |
nicklas |
380 |
id="description" |
5664 |
23 Jun 11 |
nicklas |
381 |
title="Description" |
5664 |
23 Jun 11 |
nicklas |
382 |
/> |
5664 |
23 Jun 11 |
nicklas |
383 |
<tbl:data> |
5949 |
08 Feb 12 |
nicklas |
384 |
<tbl:headers> |
5949 |
08 Feb 12 |
nicklas |
385 |
<tbl:headerrow> |
5949 |
08 Feb 12 |
nicklas |
386 |
<tbl:columnheaders /> |
5949 |
08 Feb 12 |
nicklas |
387 |
</tbl:headerrow> |
5949 |
08 Feb 12 |
nicklas |
388 |
</tbl:headers> |
5664 |
23 Jun 11 |
nicklas |
389 |
<tbl:rows> |
5664 |
23 Jun 11 |
nicklas |
390 |
<% |
5664 |
23 Jun 11 |
nicklas |
391 |
for (BioMaterialEventSource item : sources) |
5664 |
23 Jun 11 |
nicklas |
392 |
{ |
5664 |
23 Jun 11 |
nicklas |
393 |
BioMaterial bm = null; |
6053 |
03 May 12 |
nicklas |
394 |
ItemSubtype subtype = null; |
5664 |
23 Jun 11 |
nicklas |
395 |
try |
5664 |
23 Jun 11 |
nicklas |
396 |
{ |
5664 |
23 Jun 11 |
nicklas |
397 |
bm = item.getBioMaterial(); |
6053 |
03 May 12 |
nicklas |
398 |
subtype = bm.getItemSubtype(); |
5664 |
23 Jun 11 |
nicklas |
399 |
} |
5664 |
23 Jun 11 |
nicklas |
400 |
catch (PermissionDeniedException ex) |
5664 |
23 Jun 11 |
nicklas |
401 |
{} |
5664 |
23 Jun 11 |
nicklas |
402 |
%> |
5664 |
23 Jun 11 |
nicklas |
403 |
<tbl:row> |
5664 |
23 Jun 11 |
nicklas |
404 |
<tbl:cell column="name"><base:icon |
5946 |
03 Feb 12 |
nicklas |
405 |
image="deleted.png" |
3888 |
29 Oct 07 |
nicklas |
406 |
tooltip="This item has been scheduled for deletion" |
5664 |
23 Jun 11 |
nicklas |
407 |
visible="<%=bm != null && bm.isRemoved()%>" |
5664 |
23 Jun 11 |
nicklas |
408 |
/><%=Base.getLinkedName(ID, bm, bm == null, true)%></tbl:cell> |
6053 |
03 May 12 |
nicklas |
409 |
<tbl:cell column="type"> |
6053 |
03 May 12 |
nicklas |
410 |
<% |
6053 |
03 May 12 |
nicklas |
411 |
if (subtype != null) |
6053 |
03 May 12 |
nicklas |
412 |
{ |
6053 |
03 May 12 |
nicklas |
413 |
%> |
6053 |
03 May 12 |
nicklas |
414 |
<%=Base.getLinkedName(ID, subtype, false, true)%> <span class="itemsubtype">(<%=bm.getType() %>)</span> |
6053 |
03 May 12 |
nicklas |
415 |
<% |
6053 |
03 May 12 |
nicklas |
416 |
} |
6053 |
03 May 12 |
nicklas |
417 |
else |
6053 |
03 May 12 |
nicklas |
418 |
{ |
6053 |
03 May 12 |
nicklas |
419 |
%> |
6053 |
03 May 12 |
nicklas |
420 |
<%=bm != null ? bm.getType() : "" %> |
6053 |
03 May 12 |
nicklas |
421 |
<% |
6053 |
03 May 12 |
nicklas |
422 |
} |
6053 |
03 May 12 |
nicklas |
423 |
%> |
6053 |
03 May 12 |
nicklas |
424 |
</tbl:cell> |
6268 |
11 Apr 13 |
nicklas |
425 |
<tbl:cell column="quantity"><%=numberFormatter.format(item.getUsedQuantity())%></tbl:cell> |
5664 |
23 Jun 11 |
nicklas |
426 |
<tbl:cell column="description"><%=HTML.encodeTags(bm == null ? "" : bm.getDescription())%></tbl:cell> |
5664 |
23 Jun 11 |
nicklas |
427 |
</tbl:row> |
5664 |
23 Jun 11 |
nicklas |
428 |
<% |
5664 |
23 Jun 11 |
nicklas |
429 |
} |
5664 |
23 Jun 11 |
nicklas |
430 |
%> |
1996 |
16 Feb 06 |
nicklas |
431 |
</tbl:rows> |
5664 |
23 Jun 11 |
nicklas |
432 |
</tbl:data> |
5664 |
23 Jun 11 |
nicklas |
433 |
</tbl:table> |
5935 |
26 Jan 12 |
nicklas |
434 |
<% |
5935 |
26 Jan 12 |
nicklas |
435 |
} |
5935 |
26 Jan 12 |
nicklas |
436 |
%> |
5935 |
26 Jan 12 |
nicklas |
437 |
</base:section> |
5935 |
26 Jan 12 |
nicklas |
438 |
<% |
5664 |
23 Jun 11 |
nicklas |
439 |
SpecialQuery<BioMaterialEventSource> childQuery = extract.getChildCreationEvents(); |
5664 |
23 Jun 11 |
nicklas |
440 |
childQuery.join(Hql.innerJoin("es", "event", "evt", true)); |
5664 |
23 Jun 11 |
nicklas |
441 |
childQuery.join(Hql.leftJoin("evt", "bioMaterial", "bm", null, true)); |
5664 |
23 Jun 11 |
nicklas |
442 |
childQuery.join(Hql.leftJoin("evt", "physicalBioAssay", "pba", null, true)); |
5664 |
23 Jun 11 |
nicklas |
443 |
childQuery.order(Orders.asc(Hql.property("pba", "name"))); |
5664 |
23 Jun 11 |
nicklas |
444 |
childQuery.order(Orders.asc(Hql.property("bm", "name"))); |
5664 |
23 Jun 11 |
nicklas |
445 |
ResultList<BioMaterialEventSource> children = childQuery.list(dc); |
7587 |
06 Feb 19 |
nicklas |
446 |
|
7587 |
06 Feb 19 |
nicklas |
447 |
ItemQuery<DerivedBioAssay> dbaQuery = extract.getDerivedBioAssays(); |
7587 |
06 Feb 19 |
nicklas |
448 |
dbaQuery.include(Include.ALL); |
7587 |
06 Feb 19 |
nicklas |
449 |
dbaQuery.order(Orders.asc(Hql.property("name"))); |
7587 |
06 Feb 19 |
nicklas |
450 |
ItemResultList<DerivedBioAssay> derivedBioAssays = dbaQuery.list(dc); |
7587 |
06 Feb 19 |
nicklas |
451 |
|
7587 |
06 Feb 19 |
nicklas |
452 |
ItemQuery<RawBioAssay> rbaQuery = extract.getRawBioAssays(); |
7587 |
06 Feb 19 |
nicklas |
453 |
rbaQuery.include(Include.ALL); |
7587 |
06 Feb 19 |
nicklas |
454 |
rbaQuery.order(Orders.asc(Hql.property("name"))); |
7587 |
06 Feb 19 |
nicklas |
455 |
ItemResultList<RawBioAssay> rawBioAssays = rbaQuery.list(dc); |
7587 |
06 Feb 19 |
nicklas |
456 |
|
7587 |
06 Feb 19 |
nicklas |
457 |
int numChildren = children.size() + derivedBioAssays.size() + rawBioAssays.size(); |
5935 |
26 Jan 12 |
nicklas |
458 |
%> |
5935 |
26 Jan 12 |
nicklas |
459 |
<base:section |
5935 |
26 Jan 12 |
nicklas |
460 |
id="childSection" |
7587 |
06 Feb 19 |
nicklas |
461 |
title="<%="Child items (" + numChildren + ")"%>" |
5935 |
26 Jan 12 |
nicklas |
462 |
context="<%=cc%>" |
5935 |
26 Jan 12 |
nicklas |
463 |
> |
4539 |
18 Sep 08 |
martin |
464 |
<% |
7587 |
06 Feb 19 |
nicklas |
465 |
if (numChildren == 0) |
5935 |
26 Jan 12 |
nicklas |
466 |
{ |
5935 |
26 Jan 12 |
nicklas |
467 |
%> |
5935 |
26 Jan 12 |
nicklas |
468 |
<div class="messagecontainer note"> |
5935 |
26 Jan 12 |
nicklas |
469 |
No child items have been created from this extract |
5935 |
26 Jan 12 |
nicklas |
470 |
(or, you don't have permission to view them). |
5935 |
26 Jan 12 |
nicklas |
471 |
</div> |
5935 |
26 Jan 12 |
nicklas |
472 |
<% |
5935 |
26 Jan 12 |
nicklas |
473 |
} |
5935 |
26 Jan 12 |
nicklas |
474 |
else |
5935 |
26 Jan 12 |
nicklas |
475 |
{ |
5935 |
26 Jan 12 |
nicklas |
476 |
%> |
5044 |
11 Aug 09 |
martin |
477 |
<tbl:table |
5664 |
23 Jun 11 |
nicklas |
478 |
id="children" |
5044 |
11 Aug 09 |
martin |
479 |
columns="all" |
5044 |
11 Aug 09 |
martin |
480 |
> |
5044 |
11 Aug 09 |
martin |
481 |
<tbl:columndef |
5044 |
11 Aug 09 |
martin |
482 |
id="name" |
5044 |
11 Aug 09 |
martin |
483 |
title="Name" |
5044 |
11 Aug 09 |
martin |
484 |
/> |
5044 |
11 Aug 09 |
martin |
485 |
<tbl:columndef |
5664 |
23 Jun 11 |
nicklas |
486 |
id="type" |
5664 |
23 Jun 11 |
nicklas |
487 |
title="Type" |
5044 |
11 Aug 09 |
martin |
488 |
/> |
5044 |
11 Aug 09 |
martin |
489 |
<tbl:columndef |
5664 |
23 Jun 11 |
nicklas |
490 |
id="quantity" |
5664 |
23 Jun 11 |
nicklas |
491 |
title="Used quantity (µg)" |
5044 |
11 Aug 09 |
martin |
492 |
/> |
5044 |
11 Aug 09 |
martin |
493 |
<tbl:columndef |
5044 |
11 Aug 09 |
martin |
494 |
id="description" |
5044 |
11 Aug 09 |
martin |
495 |
title="Description" |
5044 |
11 Aug 09 |
martin |
496 |
/> |
5044 |
11 Aug 09 |
martin |
497 |
<tbl:data> |
5949 |
08 Feb 12 |
nicklas |
498 |
<tbl:headers> |
5949 |
08 Feb 12 |
nicklas |
499 |
<tbl:headerrow> |
5949 |
08 Feb 12 |
nicklas |
500 |
<tbl:columnheaders /> |
5949 |
08 Feb 12 |
nicklas |
501 |
</tbl:headerrow> |
5949 |
08 Feb 12 |
nicklas |
502 |
</tbl:headers> |
5044 |
11 Aug 09 |
martin |
503 |
<tbl:rows> |
5044 |
11 Aug 09 |
martin |
504 |
<% |
5664 |
23 Jun 11 |
nicklas |
505 |
for (BioMaterialEventSource item : children) |
5044 |
11 Aug 09 |
martin |
506 |
{ |
5664 |
23 Jun 11 |
nicklas |
507 |
CommonItem child = null; |
6053 |
03 May 12 |
nicklas |
508 |
ItemSubtype subtype = null; |
5664 |
23 Jun 11 |
nicklas |
509 |
try |
5664 |
23 Jun 11 |
nicklas |
510 |
{ |
5664 |
23 Jun 11 |
nicklas |
511 |
BioMaterialEvent evt = item.getEvent(); |
5664 |
23 Jun 11 |
nicklas |
512 |
if (evt.getEventType() == BioMaterialEvent.Type.BIOASSAY) |
5664 |
23 Jun 11 |
nicklas |
513 |
{ |
6053 |
03 May 12 |
nicklas |
514 |
PhysicalBioAssay bioAssay = evt.getPhysicalBioAssay(); |
6053 |
03 May 12 |
nicklas |
515 |
subtype = bioAssay.getItemSubtype(); |
6053 |
03 May 12 |
nicklas |
516 |
child = bioAssay; |
5664 |
23 Jun 11 |
nicklas |
517 |
} |
5664 |
23 Jun 11 |
nicklas |
518 |
else |
5664 |
23 Jun 11 |
nicklas |
519 |
{ |
6053 |
03 May 12 |
nicklas |
520 |
BioMaterial bm = evt.getBioMaterial(); |
6053 |
03 May 12 |
nicklas |
521 |
subtype = bm.getItemSubtype(); |
6053 |
03 May 12 |
nicklas |
522 |
child = bm; |
5664 |
23 Jun 11 |
nicklas |
523 |
} |
5664 |
23 Jun 11 |
nicklas |
524 |
} |
5664 |
23 Jun 11 |
nicklas |
525 |
catch (PermissionDeniedException ex) |
5664 |
23 Jun 11 |
nicklas |
526 |
{} |
5044 |
11 Aug 09 |
martin |
527 |
%> |
5044 |
11 Aug 09 |
martin |
528 |
<tbl:row> |
5664 |
23 Jun 11 |
nicklas |
529 |
<tbl:cell column="name"><base:icon |
5946 |
03 Feb 12 |
nicklas |
530 |
image="deleted.png" |
5044 |
11 Aug 09 |
martin |
531 |
tooltip="This item has been scheduled for deletion" |
5664 |
23 Jun 11 |
nicklas |
532 |
visible="<%=child != null && child.isRemoved()%>" |
5664 |
23 Jun 11 |
nicklas |
533 |
/><%=Base.getLinkedName(ID, child, child == null, true)%></tbl:cell> |
6053 |
03 May 12 |
nicklas |
534 |
<tbl:cell column="type"> |
6053 |
03 May 12 |
nicklas |
535 |
<% |
6053 |
03 May 12 |
nicklas |
536 |
if (subtype != null) |
6053 |
03 May 12 |
nicklas |
537 |
{ |
6053 |
03 May 12 |
nicklas |
538 |
%> |
6053 |
03 May 12 |
nicklas |
539 |
<%=Base.getLinkedName(ID, subtype, false, true)%> <span class="itemsubtype">(<%=child.getType() %>)</span> |
6053 |
03 May 12 |
nicklas |
540 |
<% |
6053 |
03 May 12 |
nicklas |
541 |
} |
6053 |
03 May 12 |
nicklas |
542 |
else |
6053 |
03 May 12 |
nicklas |
543 |
{ |
6053 |
03 May 12 |
nicklas |
544 |
%> |
6053 |
03 May 12 |
nicklas |
545 |
<%=child != null ? child.getType() : "" %> |
6053 |
03 May 12 |
nicklas |
546 |
<% |
6053 |
03 May 12 |
nicklas |
547 |
} |
6053 |
03 May 12 |
nicklas |
548 |
%> |
6053 |
03 May 12 |
nicklas |
549 |
</tbl:cell> |
6268 |
11 Apr 13 |
nicklas |
550 |
<tbl:cell column="quantity"><%=numberFormatter.format(item.getUsedQuantity())%></tbl:cell> |
5664 |
23 Jun 11 |
nicklas |
551 |
<tbl:cell column="description"><%=HTML.encodeTags(child == null ? "" : child.getDescription())%></tbl:cell> |
5044 |
11 Aug 09 |
martin |
552 |
</tbl:row> |
4539 |
18 Sep 08 |
martin |
553 |
<% |
5044 |
11 Aug 09 |
martin |
554 |
} |
7587 |
06 Feb 19 |
nicklas |
555 |
for (DerivedBioAssay dba : derivedBioAssays) |
7587 |
06 Feb 19 |
nicklas |
556 |
{ |
7587 |
06 Feb 19 |
nicklas |
557 |
ItemSubtype subtype = null; |
7587 |
06 Feb 19 |
nicklas |
558 |
try |
7587 |
06 Feb 19 |
nicklas |
559 |
{ |
7587 |
06 Feb 19 |
nicklas |
560 |
subtype = dba.getItemSubtype(); |
7587 |
06 Feb 19 |
nicklas |
561 |
} |
7587 |
06 Feb 19 |
nicklas |
562 |
catch (PermissionDeniedException ex) |
7587 |
06 Feb 19 |
nicklas |
563 |
{} |
7587 |
06 Feb 19 |
nicklas |
564 |
%> |
7587 |
06 Feb 19 |
nicklas |
565 |
<tbl:row> |
7587 |
06 Feb 19 |
nicklas |
566 |
<tbl:cell column="name"><base:icon |
7587 |
06 Feb 19 |
nicklas |
567 |
image="deleted.png" |
7587 |
06 Feb 19 |
nicklas |
568 |
tooltip="This item has been scheduled for deletion" |
7587 |
06 Feb 19 |
nicklas |
569 |
visible="<%=dba.isRemoved()%>" |
7587 |
06 Feb 19 |
nicklas |
570 |
/><%=Base.getLinkedName(ID, dba, false, true)%></tbl:cell> |
7587 |
06 Feb 19 |
nicklas |
571 |
<tbl:cell column="type"> |
7587 |
06 Feb 19 |
nicklas |
572 |
<% |
7587 |
06 Feb 19 |
nicklas |
573 |
if (subtype != null) |
7587 |
06 Feb 19 |
nicklas |
574 |
{ |
7587 |
06 Feb 19 |
nicklas |
575 |
%> |
7587 |
06 Feb 19 |
nicklas |
576 |
<%=Base.getLinkedName(ID, subtype, false, true)%> <span class="itemsubtype">(<%=dba.getType() %>)</span> |
7587 |
06 Feb 19 |
nicklas |
577 |
<% |
7587 |
06 Feb 19 |
nicklas |
578 |
} |
7587 |
06 Feb 19 |
nicklas |
579 |
else |
7587 |
06 Feb 19 |
nicklas |
580 |
{ |
7587 |
06 Feb 19 |
nicklas |
581 |
%> |
7587 |
06 Feb 19 |
nicklas |
582 |
<%=dba.getType()%> |
7587 |
06 Feb 19 |
nicklas |
583 |
<% |
7587 |
06 Feb 19 |
nicklas |
584 |
} |
7587 |
06 Feb 19 |
nicklas |
585 |
%> |
7587 |
06 Feb 19 |
nicklas |
586 |
</tbl:cell> |
7587 |
06 Feb 19 |
nicklas |
587 |
<tbl:cell column="quantity"></tbl:cell> |
7587 |
06 Feb 19 |
nicklas |
588 |
<tbl:cell column="description"><%=HTML.encodeTags(dba.getDescription())%></tbl:cell> |
7587 |
06 Feb 19 |
nicklas |
589 |
</tbl:row> |
7587 |
06 Feb 19 |
nicklas |
590 |
<% |
7587 |
06 Feb 19 |
nicklas |
591 |
} |
7587 |
06 Feb 19 |
nicklas |
592 |
for (RawBioAssay rba : rawBioAssays) |
7587 |
06 Feb 19 |
nicklas |
593 |
{ |
7587 |
06 Feb 19 |
nicklas |
594 |
RawDataType rawtype = null; |
7587 |
06 Feb 19 |
nicklas |
595 |
try |
7587 |
06 Feb 19 |
nicklas |
596 |
{ |
7587 |
06 Feb 19 |
nicklas |
597 |
rawtype = rba.getRawDataType(); |
7587 |
06 Feb 19 |
nicklas |
598 |
} |
7587 |
06 Feb 19 |
nicklas |
599 |
catch (PermissionDeniedException ex) |
7587 |
06 Feb 19 |
nicklas |
600 |
{} |
7587 |
06 Feb 19 |
nicklas |
601 |
%> |
7587 |
06 Feb 19 |
nicklas |
602 |
<tbl:row> |
7587 |
06 Feb 19 |
nicklas |
603 |
<tbl:cell column="name"><base:icon |
7587 |
06 Feb 19 |
nicklas |
604 |
image="deleted.png" |
7587 |
06 Feb 19 |
nicklas |
605 |
tooltip="This item has been scheduled for deletion" |
7587 |
06 Feb 19 |
nicklas |
606 |
visible="<%=rba.isRemoved()%>" |
7587 |
06 Feb 19 |
nicklas |
607 |
/><%=Base.getLinkedName(ID, rba, false, true)%></tbl:cell> |
7587 |
06 Feb 19 |
nicklas |
608 |
<tbl:cell column="type"> |
7587 |
06 Feb 19 |
nicklas |
609 |
<%=rawtype.getName()%> <span class="itemsubtype">(<%=rba.getType() %>)</span> |
7587 |
06 Feb 19 |
nicklas |
610 |
</tbl:cell> |
7587 |
06 Feb 19 |
nicklas |
611 |
<tbl:cell column="quantity"></tbl:cell> |
7587 |
06 Feb 19 |
nicklas |
612 |
<tbl:cell column="description"><%=HTML.encodeTags(rba.getDescription())%></tbl:cell> |
7587 |
06 Feb 19 |
nicklas |
613 |
</tbl:row> |
7587 |
06 Feb 19 |
nicklas |
614 |
<% |
7587 |
06 Feb 19 |
nicklas |
615 |
} |
7587 |
06 Feb 19 |
nicklas |
616 |
%> |
5044 |
11 Aug 09 |
martin |
617 |
</tbl:rows> |
5044 |
11 Aug 09 |
martin |
618 |
</tbl:data> |
5044 |
11 Aug 09 |
martin |
619 |
</tbl:table> |
5935 |
26 Jan 12 |
nicklas |
620 |
<% |
5935 |
26 Jan 12 |
nicklas |
621 |
} |
5935 |
26 Jan 12 |
nicklas |
622 |
%> |
5935 |
26 Jan 12 |
nicklas |
623 |
</base:section> |
5496 |
17 Nov 10 |
nicklas |
624 |
<jsp:include page="../../common/anytoany/list_anytoany.jsp"> |
5496 |
17 Nov 10 |
nicklas |
625 |
<jsp:param name="ID" value="<%=ID%>" /> |
5496 |
17 Nov 10 |
nicklas |
626 |
<jsp:param name="item_type" value="<%=itemType.name()%>" /> |
5496 |
17 Nov 10 |
nicklas |
627 |
<jsp:param name="item_id" value="<%=itemId%>" /> |
5496 |
17 Nov 10 |
nicklas |
628 |
<jsp:param name="title" value="Other items related to this extract" /> |
5496 |
17 Nov 10 |
nicklas |
629 |
</jsp:include> |
7813 |
19 May 20 |
nicklas |
630 |
|
7813 |
19 May 20 |
nicklas |
631 |
<jsp:include page="../../common/itemlists/list_membership.jsp"> |
7813 |
19 May 20 |
nicklas |
632 |
<jsp:param name="ID" value="<%=ID%>" /> |
7813 |
19 May 20 |
nicklas |
633 |
<jsp:param name="item_type" value="<%=itemType.name()%>" /> |
7813 |
19 May 20 |
nicklas |
634 |
<jsp:param name="item_id" value="<%=itemId%>" /> |
7813 |
19 May 20 |
nicklas |
635 |
<jsp:param name="title" value="Item lists where this extract is a member" /> |
7813 |
19 May 20 |
nicklas |
636 |
</jsp:include> |
7813 |
19 May 20 |
nicklas |
637 |
|
5935 |
26 Jan 12 |
nicklas |
638 |
<jsp:include page="../../common/share/list_share.jsp"> |
5935 |
26 Jan 12 |
nicklas |
639 |
<jsp:param name="ID" value="<%=ID%>" /> |
5935 |
26 Jan 12 |
nicklas |
640 |
<jsp:param name="item_type" value="<%=itemType.name()%>" /> |
5935 |
26 Jan 12 |
nicklas |
641 |
<jsp:param name="item_id" value="<%=itemId%>" /> |
5935 |
26 Jan 12 |
nicklas |
642 |
<jsp:param name="title" value="Shared to" /> |
5935 |
26 Jan 12 |
nicklas |
643 |
</jsp:include> |
1872 |
31 Jan 06 |
nicklas |
644 |
</t:tab> |
1872 |
31 Jan 06 |
nicklas |
645 |
|
2875 |
08 Nov 06 |
nicklas |
646 |
<t:tab id="annotations" title="Annotations & parameters" |
6261 |
27 Mar 13 |
nicklas |
647 |
tooltip="View annotation values and protocol parameters" clazz="white"> |
6255 |
22 Mar 13 |
nicklas |
648 |
<jsp:include page="../../common/annotations/list_frameset.jsp"> |
1872 |
31 Jan 06 |
nicklas |
649 |
<jsp:param name="item_type" value="<%=itemType.name()%>" /> |
1872 |
31 Jan 06 |
nicklas |
650 |
<jsp:param name="item_id" value="<%=itemId%>" /> |
1872 |
31 Jan 06 |
nicklas |
651 |
<jsp:param name="ID" value="<%=ID%>" /> |
1872 |
31 Jan 06 |
nicklas |
652 |
</jsp:include> |
1872 |
31 Jan 06 |
nicklas |
653 |
</t:tab> |
1872 |
31 Jan 06 |
nicklas |
654 |
|
1872 |
31 Jan 06 |
nicklas |
655 |
<t:tab id="events" title="Events" /> |
4746 |
10 Feb 09 |
nicklas |
656 |
|
4746 |
10 Feb 09 |
nicklas |
657 |
<t:tab id="overview" title="Overview" |
6261 |
27 Mar 13 |
nicklas |
658 |
tooltip="Display a tree overview of related items"> |
6242 |
25 Feb 13 |
nicklas |
659 |
<jsp:include page="../../common/overview/overview.jsp"> |
6242 |
25 Feb 13 |
nicklas |
660 |
<jsp:param name="item_type" value="<%=itemType.name()%>" /> |
6242 |
25 Feb 13 |
nicklas |
661 |
<jsp:param name="item_id" value="<%=itemId%>" /> |
6242 |
25 Feb 13 |
nicklas |
662 |
<jsp:param name="ID" value="<%=ID%>" /> |
6242 |
25 Feb 13 |
nicklas |
663 |
</jsp:include> |
4746 |
10 Feb 09 |
nicklas |
664 |
</t:tab> |
7166 |
07 Jun 16 |
nicklas |
665 |
<t:tab id="history" title="History" |
7166 |
07 Jun 16 |
nicklas |
666 |
tooltip="Displays a log with the history of this item" |
6261 |
27 Mar 13 |
nicklas |
667 |
visible="<%=ChangeHistoryUtil.showChangeHistoryTab(sc)%>"> |
6244 |
25 Feb 13 |
nicklas |
668 |
<jsp:include page="../../common/history/frameset.jsp"> |
6244 |
25 Feb 13 |
nicklas |
669 |
<jsp:param name="item_type" value="<%=itemType.name()%>" /> |
6244 |
25 Feb 13 |
nicklas |
670 |
<jsp:param name="item_id" value="<%=itemId%>" /> |
6244 |
25 Feb 13 |
nicklas |
671 |
<jsp:param name="ID" value="<%=ID%>" /> |
6244 |
25 Feb 13 |
nicklas |
672 |
</jsp:include> |
5050 |
17 Aug 09 |
nicklas |
673 |
</t:tab> |
1872 |
31 Jan 06 |
nicklas |
674 |
</t:tabcontrol> |
1872 |
31 Jan 06 |
nicklas |
675 |
|
1872 |
31 Jan 06 |
nicklas |
676 |
|
1872 |
31 Jan 06 |
nicklas |
677 |
</base:body> |
1872 |
31 Jan 06 |
nicklas |
678 |
</base:page> |
1872 |
31 Jan 06 |
nicklas |
679 |
<% |
1872 |
31 Jan 06 |
nicklas |
680 |
} |
1872 |
31 Jan 06 |
nicklas |
681 |
finally |
1872 |
31 Jan 06 |
nicklas |
682 |
{ |
1872 |
31 Jan 06 |
nicklas |
683 |
if (dc != null) dc.close(); |
1872 |
31 Jan 06 |
nicklas |
684 |
} |
1872 |
31 Jan 06 |
nicklas |
685 |
|
1872 |
31 Jan 06 |
nicklas |
686 |
%> |