4745 |
10 Feb 09 |
nicklas |
1 |
<%-- $Id$ |
4745 |
10 Feb 09 |
nicklas |
2 |
------------------------------------------------------------------ |
4745 |
10 Feb 09 |
nicklas |
Copyright (C) 2009 Nicklas Nordborg |
4745 |
10 Feb 09 |
nicklas |
4 |
|
4745 |
10 Feb 09 |
nicklas |
5 |
This file is part of BASE - BioArray Software Environment. |
4745 |
10 Feb 09 |
nicklas |
6 |
Available at http://base.thep.lu.se/ |
4745 |
10 Feb 09 |
nicklas |
7 |
|
4745 |
10 Feb 09 |
nicklas |
8 |
BASE is free software; you can redistribute it and/or |
4745 |
10 Feb 09 |
nicklas |
9 |
modify it under the terms of the GNU General Public License |
4745 |
10 Feb 09 |
nicklas |
10 |
as published by the Free Software Foundation; either version 3 |
4745 |
10 Feb 09 |
nicklas |
11 |
of the License, or (at your option) any later version. |
4745 |
10 Feb 09 |
nicklas |
12 |
|
4745 |
10 Feb 09 |
nicklas |
13 |
BASE is distributed in the hope that it will be useful, |
4745 |
10 Feb 09 |
nicklas |
14 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
4745 |
10 Feb 09 |
nicklas |
15 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
4745 |
10 Feb 09 |
nicklas |
16 |
GNU General Public License for more details. |
4745 |
10 Feb 09 |
nicklas |
17 |
|
4745 |
10 Feb 09 |
nicklas |
18 |
You should have received a copy of the GNU General Public License |
4745 |
10 Feb 09 |
nicklas |
19 |
along with BASE. If not, see <http://www.gnu.org/licenses/>. |
4745 |
10 Feb 09 |
nicklas |
20 |
------------------------------------------------------------------ |
4745 |
10 Feb 09 |
nicklas |
21 |
|
4745 |
10 Feb 09 |
nicklas |
22 |
--%> |
5426 |
24 Sep 10 |
nicklas |
23 |
<%@ page pageEncoding="UTF-8" session="false" |
4745 |
10 Feb 09 |
nicklas |
24 |
import="net.sf.basedb.core.SessionControl" |
4745 |
10 Feb 09 |
nicklas |
25 |
import="net.sf.basedb.core.DbControl" |
4745 |
10 Feb 09 |
nicklas |
26 |
import="net.sf.basedb.core.Item" |
4745 |
10 Feb 09 |
nicklas |
27 |
import="net.sf.basedb.core.BasicItem" |
4745 |
10 Feb 09 |
nicklas |
28 |
import="net.sf.basedb.core.Permission" |
4745 |
10 Feb 09 |
nicklas |
29 |
import="net.sf.basedb.core.ItemContext" |
4745 |
10 Feb 09 |
nicklas |
30 |
import="net.sf.basedb.core.Project" |
4745 |
10 Feb 09 |
nicklas |
31 |
import="net.sf.basedb.util.Values" |
4745 |
10 Feb 09 |
nicklas |
32 |
import="net.sf.basedb.clients.web.Base" |
4745 |
10 Feb 09 |
nicklas |
33 |
import="net.sf.basedb.clients.web.util.HTML" |
4745 |
10 Feb 09 |
nicklas |
34 |
import="net.sf.basedb.util.overview.GenericOverview" |
4745 |
10 Feb 09 |
nicklas |
35 |
import="net.sf.basedb.util.overview.OverviewUtil" |
4887 |
06 Apr 09 |
nicklas |
36 |
import="net.sf.basedb.clients.web.extensions.ExtensionsControl" |
4887 |
06 Apr 09 |
nicklas |
37 |
import="net.sf.basedb.clients.web.extensions.JspContext" |
4887 |
06 Apr 09 |
nicklas |
38 |
import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer" |
7604 |
25 Feb 19 |
nicklas |
39 |
import="net.sf.basedb.clients.web.extensions.toolbar.ButtonAction" |
4887 |
06 Apr 09 |
nicklas |
40 |
import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil" |
4887 |
06 Apr 09 |
nicklas |
41 |
import="net.sf.basedb.util.extensions.ExtensionsInvoker" |
4745 |
10 Feb 09 |
nicklas |
42 |
%> |
4745 |
10 Feb 09 |
nicklas |
43 |
<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> |
4745 |
10 Feb 09 |
nicklas |
44 |
<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %> |
4745 |
10 Feb 09 |
nicklas |
45 |
<%@ taglib prefix="t" uri="/WEB-INF/tab.tld" %> |
4745 |
10 Feb 09 |
nicklas |
46 |
<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %> |
4887 |
06 Apr 09 |
nicklas |
47 |
<%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %> |
4745 |
10 Feb 09 |
nicklas |
48 |
<% |
4745 |
10 Feb 09 |
nicklas |
49 |
final Item itemType = Item.valueOf(request.getParameter("item_type")); |
4745 |
10 Feb 09 |
nicklas |
50 |
final int itemId = Values.getInt(request.getParameter("item_id")); |
4745 |
10 Feb 09 |
nicklas |
51 |
final SessionControl sc = Base.getExistingSessionControl(pageContext, Permission.DENIED, itemType); |
4745 |
10 Feb 09 |
nicklas |
52 |
final String ID = sc.getId(); |
4745 |
10 Feb 09 |
nicklas |
53 |
final String root = request.getContextPath(); |
7954 |
12 May 21 |
nicklas |
54 |
final DbControl dc = sc.newDbControl("Item overview"); |
4745 |
10 Feb 09 |
nicklas |
55 |
try |
4745 |
10 Feb 09 |
nicklas |
56 |
{ |
4887 |
06 Apr 09 |
nicklas |
57 |
BasicItem item = itemType.getById(dc, itemId); |
4887 |
06 Apr 09 |
nicklas |
58 |
JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, null, item); |
7605 |
26 Feb 19 |
nicklas |
59 |
ExtensionsInvoker<ButtonAction> invoker = ExtensionsControl.useExtensions(jspContext, |
4887 |
06 Apr 09 |
nicklas |
60 |
"net.sf.basedb.clients.web.toolbar.item.overview"); |
5918 |
21 Dec 11 |
nicklas |
61 |
final String showFailures = request.getParameter("show_failures"); |
4745 |
10 Feb 09 |
nicklas |
62 |
%> |
4745 |
10 Feb 09 |
nicklas |
63 |
<base:page type="include"> |
6402 |
29 Jan 14 |
nicklas |
64 |
<base:head scripts="/common/overview/overview.js" /> |
4745 |
10 Feb 09 |
nicklas |
65 |
<base:body> |
6195 |
01 Nov 12 |
nicklas |
66 |
<div id="overview-data" class="datacontainer" |
6195 |
01 Nov 12 |
nicklas |
67 |
data-item-type="<%=itemType.name() %>" |
6195 |
01 Nov 12 |
nicklas |
68 |
data-item-id="<%=itemId %>" |
6195 |
01 Nov 12 |
nicklas |
69 |
></div> |
4887 |
06 Apr 09 |
nicklas |
70 |
<ext:scripts context="<%=jspContext%>" /> |
4887 |
06 Apr 09 |
nicklas |
71 |
<ext:stylesheets context="<%=jspContext%>" /> |
6606 |
18 Nov 14 |
nicklas |
72 |
<tbl:toolbar subclass="absolutefull bg-filled-50" style="height: 1.75em;"> |
5946 |
03 Feb 12 |
nicklas |
73 |
<tbl:button image="refresh.png" title="Reset" |
6195 |
01 Nov 12 |
nicklas |
74 |
id="btnResetOverview" |
6195 |
01 Nov 12 |
nicklas |
75 |
tooltip="Unload all cached items and restart from the root item again." |
5807 |
14 Oct 11 |
nicklas |
76 |
/> |
5946 |
03 Feb 12 |
nicklas |
77 |
<tbl:button image="validate.png" title="Validate" |
6195 |
01 Nov 12 |
nicklas |
78 |
id="btnValidateOverview" |
6195 |
01 Nov 12 |
nicklas |
79 |
tooltip="Load and validate entire tree" |
5807 |
14 Oct 11 |
nicklas |
80 |
/> |
4745 |
10 Feb 09 |
nicklas |
81 |
<tbl:button image="configure.png" title="Validation options…" |
6195 |
01 Nov 12 |
nicklas |
82 |
id="btnOverviewValidationOptions" |
6195 |
01 Nov 12 |
nicklas |
83 |
tooltip="Change validation options" |
5807 |
14 Oct 11 |
nicklas |
84 |
/> |
4887 |
06 Apr 09 |
nicklas |
85 |
<ext:render extensions="<%=invoker%>" context="<%=jspContext%>" |
7604 |
25 Feb 19 |
nicklas |
86 |
wrapper="<%=new PrefixSuffixRenderer<ButtonAction>(jspContext, "<td>", "</td>") %>"/> |
6242 |
25 Feb 13 |
nicklas |
87 |
<tbl:button |
6242 |
25 Feb 13 |
nicklas |
88 |
image="help.png" |
6242 |
25 Feb 13 |
nicklas |
89 |
subclass="auto-init" |
6242 |
25 Feb 13 |
nicklas |
90 |
data-auto-init="help" |
6242 |
25 Feb 13 |
nicklas |
91 |
data-help-id="item.overview" |
6242 |
25 Feb 13 |
nicklas |
92 |
title="Help…" |
4745 |
10 Feb 09 |
nicklas |
93 |
tooltip="Get help about this page" |
5918 |
21 Dec 11 |
nicklas |
94 |
/> |
4745 |
10 Feb 09 |
nicklas |
95 |
</tbl:toolbar> |
5951 |
09 Feb 12 |
nicklas |
96 |
<div class="absolutefull topborder" style="top: 1.75em;"><iframe |
6195 |
01 Nov 12 |
nicklas |
97 |
name="overview" id="idOverview" |
6242 |
25 Feb 13 |
nicklas |
98 |
src="<%=root%>/common/overview/wait.jsp" |
6139 |
19 Sep 12 |
nicklas |
99 |
class="absolutefull" style="width: 100%; height: 100%;"></iframe></div> |
4745 |
10 Feb 09 |
nicklas |
100 |
|
4745 |
10 Feb 09 |
nicklas |
101 |
</base:body> |
4745 |
10 Feb 09 |
nicklas |
102 |
</base:page> |
4745 |
10 Feb 09 |
nicklas |
103 |
<% |
4745 |
10 Feb 09 |
nicklas |
104 |
} |
4745 |
10 Feb 09 |
nicklas |
105 |
finally |
4745 |
10 Feb 09 |
nicklas |
106 |
{ |
4745 |
10 Feb 09 |
nicklas |
107 |
if (dc != null) dc.close(); |
4745 |
10 Feb 09 |
nicklas |
108 |
} |
4745 |
10 Feb 09 |
nicklas |
109 |
%> |