www/admin/annotationtypecategories/view_category.jsp

Code
Comments
Other
Rev Date Author Line
2356 08 Jun 06 dominic 1 <%-- $Id$
2356 08 Jun 06 dominic 2   ------------------------------------------------------------------
3675 16 Aug 07 jari 3   Copyright (C) 2006 Nicklas Nordborg, Dominic Oyeniran
3675 16 Aug 07 jari 4   Copyright (C) 2007 Martin Svensson
2356 08 Jun 06 dominic 5
2356 08 Jun 06 dominic 6   This file is part of BASE - BioArray Software Environment.
2356 08 Jun 06 dominic 7   Available at http://base.thep.lu.se/
2356 08 Jun 06 dominic 8
2356 08 Jun 06 dominic 9   BASE is free software; you can redistribute it and/or
2356 08 Jun 06 dominic 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
2356 08 Jun 06 dominic 12   of the License, or (at your option) any later version.
2356 08 Jun 06 dominic 13
2356 08 Jun 06 dominic 14   BASE is distributed in the hope that it will be useful,
2356 08 Jun 06 dominic 15   but WITHOUT ANY WARRANTY; without even the implied warranty of
2356 08 Jun 06 dominic 16   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
2356 08 Jun 06 dominic 17   GNU General Public License for more details.
2356 08 Jun 06 dominic 18
2356 08 Jun 06 dominic 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/>.
2356 08 Jun 06 dominic 21   ------------------------------------------------------------------
2356 08 Jun 06 dominic 22
2356 08 Jun 06 dominic 23   @author Dominic
2356 08 Jun 06 dominic 24   @version 2.0
2356 08 Jun 06 dominic 25 --%>
5426 24 Sep 10 nicklas 26 <%@ page pageEncoding="UTF-8" session="false"
2356 08 Jun 06 dominic 27   import="net.sf.basedb.core.SessionControl"
2356 08 Jun 06 dominic 28   import="net.sf.basedb.core.DbControl"
3547 03 Jul 07 martin 29   import="net.sf.basedb.core.Group"
2356 08 Jun 06 dominic 30   import="net.sf.basedb.core.Include"
2356 08 Jun 06 dominic 31   import="net.sf.basedb.core.Item"
2356 08 Jun 06 dominic 32   import="net.sf.basedb.core.ItemContext"
2356 08 Jun 06 dominic 33   import="net.sf.basedb.core.ItemQuery"
2356 08 Jun 06 dominic 34   import="net.sf.basedb.core.ItemResultList"
2356 08 Jun 06 dominic 35   import="net.sf.basedb.core.AnnotationTypeCategory"
2356 08 Jun 06 dominic 36   import="net.sf.basedb.core.AnnotationType"
2356 08 Jun 06 dominic 37   import="net.sf.basedb.core.query.Orders"
2356 08 Jun 06 dominic 38   import="net.sf.basedb.core.query.Hql"
3547 03 Jul 07 martin 39   import="net.sf.basedb.core.MultiPermissions"
2356 08 Jun 06 dominic 40   import="net.sf.basedb.core.Permission"
2356 08 Jun 06 dominic 41   import="net.sf.basedb.core.PermissionDeniedException"
2356 08 Jun 06 dominic 42   import="net.sf.basedb.core.PluginDefinition"
2356 08 Jun 06 dominic 43   import="net.sf.basedb.core.plugin.GuiContext"
2356 08 Jun 06 dominic 44   import="net.sf.basedb.core.plugin.Plugin"
3547 03 Jul 07 martin 45   import="net.sf.basedb.core.Project"
2356 08 Jun 06 dominic 46   import="net.sf.basedb.core.User"
2356 08 Jun 06 dominic 47   import="net.sf.basedb.clients.web.Base"
3547 03 Jul 07 martin 48   import="net.sf.basedb.clients.web.PermissionUtil"
2356 08 Jun 06 dominic 49   import="net.sf.basedb.clients.web.util.HTML"
2753 20 Oct 06 nicklas 50   import="net.sf.basedb.util.Values"
4698 10 Dec 08 nicklas 51   import="net.sf.basedb.util.formatter.Formatter"
4698 10 Dec 08 nicklas 52   import="net.sf.basedb.clients.web.formatter.FormatterFactory"
4886 03 Apr 09 nicklas 53   import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
4886 03 Apr 09 nicklas 54   import="net.sf.basedb.clients.web.extensions.JspContext"
4886 03 Apr 09 nicklas 55   import="net.sf.basedb.clients.web.extensions.renderer.PrefixSuffixRenderer"
7604 25 Feb 19 nicklas 56   import="net.sf.basedb.clients.web.extensions.toolbar.ButtonAction" 
4886 03 Apr 09 nicklas 57   import="net.sf.basedb.clients.web.extensions.toolbar.ToolbarUtil"
4886 03 Apr 09 nicklas 58   import="net.sf.basedb.util.extensions.ExtensionsInvoker"
4698 10 Dec 08 nicklas 59   import="java.util.Date"
3547 03 Jul 07 martin 60   import="java.util.Collections"
2356 08 Jun 06 dominic 61   import="java.util.Map"
3547 03 Jul 07 martin 62   import="java.util.Set"
2356 08 Jun 06 dominic 63 %>
2356 08 Jun 06 dominic 64 <%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
2356 08 Jun 06 dominic 65 <%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %>
2356 08 Jun 06 dominic 66 <%@ taglib prefix="t" uri="/WEB-INF/tab.tld" %>
2356 08 Jun 06 dominic 67 <%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
4886 03 Apr 09 nicklas 68 <%@ taglib prefix="ext" uri="/WEB-INF/extensions.tld" %>
2356 08 Jun 06 dominic 69 <%!
2356 08 Jun 06 dominic 70   private static final Item itemType = Item.ANNOTATIONTYPECATEGORY;
2356 08 Jun 06 dominic 71   private static final GuiContext guiContext = new GuiContext(itemType, GuiContext.Type.ITEM);
2356 08 Jun 06 dominic 72 %>
2356 08 Jun 06 dominic 73 <%
2356 08 Jun 06 dominic 74 final SessionControl sc = Base.getExistingSessionControl(pageContext, true);
2356 08 Jun 06 dominic 75 final String ID = sc.getId();
2356 08 Jun 06 dominic 76 final ItemContext cc = Base.getAndSetCurrentContext(sc, itemType, null, null);
2356 08 Jun 06 dominic 77 final int itemId = cc.getId();
6289 05 Jun 13 nicklas 78 final String tab = Values.getStringOrNull(request.getParameter("tab"));
2356 08 Jun 06 dominic 79 final float scale = Base.getScale(sc);
7954 12 May 21 nicklas 80 final DbControl dc = sc.newDbControl(":View "+itemType);
2356 08 Jun 06 dominic 81 try
2356 08 Jun 06 dominic 82 {
4698 10 Dec 08 nicklas 83   Formatter<Date> dateFormatter = FormatterFactory.getDateFormatter(sc);
2356 08 Jun 06 dominic 84   Map<Plugin.MainType, Integer> pluginCount = PluginDefinition.countPlugins(dc, guiContext);
2356 08 Jun 06 dominic 85
2356 08 Jun 06 dominic 86   String title = null;
2356 08 Jun 06 dominic 87   AnnotationTypeCategory annotationTypeCategory = AnnotationTypeCategory.getById(dc, itemId);
2356 08 Jun 06 dominic 88   
2356 08 Jun 06 dominic 89   final boolean writePermission = annotationTypeCategory.hasPermission(Permission.WRITE);
2356 08 Jun 06 dominic 90   final boolean deletePermission = annotationTypeCategory.hasPermission(Permission.DELETE);
2356 08 Jun 06 dominic 91   final boolean sharePermission = annotationTypeCategory.hasPermission(Permission.SET_PERMISSION);
2921 15 Nov 06 nicklas 92   final boolean setOwnerPermission = annotationTypeCategory.hasPermission(Permission.SET_OWNER);
2921 15 Nov 06 nicklas 93   final boolean isOwner = annotationTypeCategory.isOwner();
4003 26 Nov 07 nicklas 94   final boolean isRemoved = annotationTypeCategory.isRemoved();
4003 26 Nov 07 nicklas 95   final boolean isUsed = isRemoved && annotationTypeCategory.isUsed();
4003 26 Nov 07 nicklas 96   final boolean deletePermanentlyPermission = deletePermission && !isUsed;
4886 03 Apr 09 nicklas 97   JspContext jspContext = ExtensionsControl.createContext(dc, pageContext, guiContext, annotationTypeCategory);
7604 25 Feb 19 nicklas 98   ExtensionsInvoker<ButtonAction> invoker = ToolbarUtil.useExtensions(jspContext);
2356 08 Jun 06 dominic 99   %>
6289 05 Jun 13 nicklas 100   <base:page title="<%=title%>" id="view-page">
6289 05 Jun 13 nicklas 101   <base:head scripts="tabcontrol-2.js,~categories.js" styles="toolbar.css,table.css,headertabcontrol.css,path.css">
4886 03 Apr 09 nicklas 102     <ext:scripts context="<%=jspContext%>" />
4886 03 Apr 09 nicklas 103     <ext:stylesheets context="<%=jspContext%>" />
2356 08 Jun 06 dominic 104   </base:head>
2356 08 Jun 06 dominic 105   <base:body>
5941 01 Feb 12 nicklas 106     <p:path><p:pathelement 
5941 01 Feb 12 nicklas 107       title="Annotation type categories" href="<%="index.jsp?ID="+ID%>" 
5941 01 Feb 12 nicklas 108       /><p:pathelement title="<%=HTML.encodeTags(annotationTypeCategory.getName())%>" 
5941 01 Feb 12 nicklas 109       /></p:path>
6289 05 Jun 13 nicklas 110     <div id="page-data" data-item-id="<%=itemId%>"></div>
2356 08 Jun 06 dominic 111     
5941 01 Feb 12 nicklas 112     <t:tabcontrol 
5941 01 Feb 12 nicklas 113       id="main" 
5941 01 Feb 12 nicklas 114       subclass="content mastertabcontrol" 
6289 05 Jun 13 nicklas 115       active="<%=tab%>">
2356 08 Jun 06 dominic 116     <t:tab id="properties" title="Properties">
5941 01 Feb 12 nicklas 117       <div>
5941 01 Feb 12 nicklas 118       <table class="fullform bottomborder">
5941 01 Feb 12 nicklas 119       <tr>
5941 01 Feb 12 nicklas 120         <th class="itemstatus">
4003 26 Nov 07 nicklas 121           <base:icon 
5946 03 Feb 12 nicklas 122             image="shared.png" 
5941 01 Feb 12 nicklas 123             visible="<%=annotationTypeCategory.isShared()%>"
5941 01 Feb 12 nicklas 124             tooltip="This item is shared to other users, groups and/or projects"
5941 01 Feb 12 nicklas 125           />
5941 01 Feb 12 nicklas 126           <base:icon 
6289 05 Jun 13 nicklas 127             id="btnDeletePermanently"
5946 03 Feb 12 nicklas 128             image="deleted.png"
5941 01 Feb 12 nicklas 129             tooltip="This item has been flagged for deletion. Click to delete it now."
5941 01 Feb 12 nicklas 130             enabled="<%=deletePermanentlyPermission %>"
5941 01 Feb 12 nicklas 131             visible="<%=isRemoved%>" 
5941 01 Feb 12 nicklas 132           />
6289 05 Jun 13 nicklas 133           <base:icon
6289 05 Jun 13 nicklas 134             id="btnUsingItems"
6289 05 Jun 13 nicklas 135             image="used.png" 
5941 01 Feb 12 nicklas 136             tooltip="This item is used by other items and can't be permanently deleted. Show the items that are using this one"
5941 01 Feb 12 nicklas 137             visible="<%=isRemoved && isUsed%>" />
5941 01 Feb 12 nicklas 138         </th>
5941 01 Feb 12 nicklas 139         <td style="padding: 0px;">
6605 18 Nov 14 nicklas 140           <tbl:toolbar subclass="bottomborder bg-filled-50">
5941 01 Feb 12 nicklas 141             <tbl:button 
6289 05 Jun 13 nicklas 142               id="btnEdit"
5942 01 Feb 12 nicklas 143               disabled="<%=!writePermission%>" 
5945 02 Feb 12 nicklas 144               image="edit.png" 
5941 01 Feb 12 nicklas 145               title="Edit&hellip;" 
5941 01 Feb 12 nicklas 146               tooltip="<%=writePermission ? "Edit this category" : "You do not have permission to edit this category"%>" 
5941 01 Feb 12 nicklas 147             />
5941 01 Feb 12 nicklas 148             <tbl:button 
6289 05 Jun 13 nicklas 149               id="btnDelete"
5942 01 Feb 12 nicklas 150               disabled="<%=!deletePermission%>" 
5946 03 Feb 12 nicklas 151               image="delete.png" 
5941 01 Feb 12 nicklas 152               title="Delete"
5941 01 Feb 12 nicklas 153               visible="<%=!annotationTypeCategory.isRemoved()%>"
5941 01 Feb 12 nicklas 154               tooltip="<%=deletePermission ? "Delete this category" : "You do not have permission to delete this category"%>" 
5941 01 Feb 12 nicklas 155             />
5941 01 Feb 12 nicklas 156             <tbl:button 
6289 05 Jun 13 nicklas 157               id="btnRestore"
5942 01 Feb 12 nicklas 158               disabled="<%=!writePermission%>" 
5946 03 Feb 12 nicklas 159               image="restore.png" 
5941 01 Feb 12 nicklas 160               title="Restore"
5941 01 Feb 12 nicklas 161               visible="<%=annotationTypeCategory.isRemoved()%>"
5941 01 Feb 12 nicklas 162               tooltip="<%=writePermission ? "Restore this category" : "You do not have permission to restore this category"%>" 
5941 01 Feb 12 nicklas 163             />
5941 01 Feb 12 nicklas 164             <tbl:button 
6289 05 Jun 13 nicklas 165               id="btnShare"
5942 01 Feb 12 nicklas 166               disabled="<%=!sharePermission%>"
5945 02 Feb 12 nicklas 167               image="share.png"
5941 01 Feb 12 nicklas 168               title="Share&hellip;" 
5941 01 Feb 12 nicklas 169               tooltip="<%=sharePermission ? "Share this annotation type category to other user, groups and projects" : "You do not have permission to share this annotation type"%>"
5941 01 Feb 12 nicklas 170             />
5941 01 Feb 12 nicklas 171             <tbl:button 
6289 05 Jun 13 nicklas 172               id="btnSetOwner"
5942 01 Feb 12 nicklas 173               disabled="<%=!setOwnerPermission%>"
5941 01 Feb 12 nicklas 174               image="take_ownership.png"
5941 01 Feb 12 nicklas 175               title="Set owner&hellip;"
5941 01 Feb 12 nicklas 176               tooltip="<%=setOwnerPermission ? "Change owner of this item" : "You do not have permission to change owner of this item"%>"
5941 01 Feb 12 nicklas 177             />
5941 01 Feb 12 nicklas 178             <tbl:button 
6289 05 Jun 13 nicklas 179               id="btnImport"
5946 03 Feb 12 nicklas 180               image="import.png" 
6289 05 Jun 13 nicklas 181               data-plugin-type="IMPORT"  
5941 01 Feb 12 nicklas 182               title="Import&hellip;" 
5941 01 Feb 12 nicklas 183               tooltip="Import data" 
5941 01 Feb 12 nicklas 184               visible="<%=pluginCount.containsKey(Plugin.MainType.IMPORT)%>"
5941 01 Feb 12 nicklas 185             />
5941 01 Feb 12 nicklas 186             <tbl:button 
6289 05 Jun 13 nicklas 187               id="btnExport"
6289 05 Jun 13 nicklas 188               image="export.png"
6289 05 Jun 13 nicklas 189               data-plugin-type="EXPORT" 
5941 01 Feb 12 nicklas 190               title="Export&hellip;" 
5941 01 Feb 12 nicklas 191               tooltip="Export data" 
5941 01 Feb 12 nicklas 192               visible="<%=pluginCount.containsKey(Plugin.MainType.EXPORT)%>"
5941 01 Feb 12 nicklas 193             />
5941 01 Feb 12 nicklas 194             <tbl:button 
6289 05 Jun 13 nicklas 195               id="btnRunPlugin"
6289 05 Jun 13 nicklas 196               image="runplugin.png"  
6289 05 Jun 13 nicklas 197               data-plugin-type="OTHER" 
5941 01 Feb 12 nicklas 198               title="Run plugin&hellip;" 
5941 01 Feb 12 nicklas 199               tooltip="Run a plugin" 
5941 01 Feb 12 nicklas 200               visible="<%=pluginCount.containsKey(Plugin.MainType.OTHER)%>"
5941 01 Feb 12 nicklas 201             />
5941 01 Feb 12 nicklas 202             <ext:render extensions="<%=invoker%>" context="<%=jspContext%>" 
7604 25 Feb 19 nicklas 203               wrapper="<%=new PrefixSuffixRenderer<ButtonAction>(jspContext, "<td>", "</td>") %>"/>
5941 01 Feb 12 nicklas 204             <tbl:button
5941 01 Feb 12 nicklas 205               image="help.png"
6289 05 Jun 13 nicklas 206               subclass="auto-init"
6289 05 Jun 13 nicklas 207               data-auto-init="help"
6289 05 Jun 13 nicklas 208               data-help-id="annotationtypecategory.view.properties"
5941 01 Feb 12 nicklas 209               title="Help&hellip;"
5941 01 Feb 12 nicklas 210               tooltip="Get help about this page"
5941 01 Feb 12 nicklas 211             />
5941 01 Feb 12 nicklas 212           </tbl:toolbar>
5941 01 Feb 12 nicklas 213         </td>
5941 01 Feb 12 nicklas 214       </tr>
2356 08 Jun 06 dominic 215       <tr>
5941 01 Feb 12 nicklas 216         <th>Name</th>
2356 08 Jun 06 dominic 217         <td><%=HTML.encodeTags(annotationTypeCategory.getName())%></td>
2356 08 Jun 06 dominic 218       </tr>
2356 08 Jun 06 dominic 219       <tr>
5941 01 Feb 12 nicklas 220         <th>Registered</th>
4698 10 Dec 08 nicklas 221         <td><%=dateFormatter.format(annotationTypeCategory.getEntryDate())%></td>
4698 10 Dec 08 nicklas 222       </tr>
4698 10 Dec 08 nicklas 223       <tr>
5941 01 Feb 12 nicklas 224         <th>Owner</th>
5941 01 Feb 12 nicklas 225         <td><base:propertyvalue item="<%=annotationTypeCategory%>" property="owner" /></td>
2356 08 Jun 06 dominic 226       </tr>
2356 08 Jun 06 dominic 227       <tr>
5941 01 Feb 12 nicklas 228         <th>Permissions</th>
5941 01 Feb 12 nicklas 229         <td><%=PermissionUtil.getFullPermissionNames(annotationTypeCategory)%></td>
2356 08 Jun 06 dominic 230       </tr>
5941 01 Feb 12 nicklas 231       <tr>
5941 01 Feb 12 nicklas 232         <th>Description</th>
5941 01 Feb 12 nicklas 233         <td><%=HTML.niceFormat(annotationTypeCategory.getDescription())%></td>
5941 01 Feb 12 nicklas 234       </tr>
2356 08 Jun 06 dominic 235       </table>
5941 01 Feb 12 nicklas 236       </div>
2356 08 Jun 06 dominic 237       
2356 08 Jun 06 dominic 238       <%
5941 01 Feb 12 nicklas 239       ItemQuery<AnnotationType> annotationTypeQuery = annotationTypeCategory.getAnnotationTypes(null);
5941 01 Feb 12 nicklas 240       annotationTypeQuery.include(Include.ALL);
5941 01 Feb 12 nicklas 241       annotationTypeQuery.order(Orders.asc(Hql.property("name")));
5941 01 Feb 12 nicklas 242       ItemResultList<AnnotationType> annotationTypes = annotationTypeQuery.list(dc);
5941 01 Feb 12 nicklas 243       %>
5941 01 Feb 12 nicklas 244       <base:section
5941 01 Feb 12 nicklas 245         id="annotationTypes"
5941 01 Feb 12 nicklas 246         title="<%="Annotation types (" + annotationTypes.size() + ")"%>"
5941 01 Feb 12 nicklas 247         context="<%=cc%>"
5941 01 Feb 12 nicklas 248         >
2356 08 Jun 06 dominic 249         <%
5941 01 Feb 12 nicklas 250         if (annotationTypes.size() == 0)
5941 01 Feb 12 nicklas 251         {
5941 01 Feb 12 nicklas 252           %>
5941 01 Feb 12 nicklas 253           <div class="messagecontainer note">
5941 01 Feb 12 nicklas 254           There are no annotation types in this category (or, you don't have permission to view them).
5941 01 Feb 12 nicklas 255           </div>
5941 01 Feb 12 nicklas 256           <%
5941 01 Feb 12 nicklas 257         }
5941 01 Feb 12 nicklas 258         else
5941 01 Feb 12 nicklas 259         {
5941 01 Feb 12 nicklas 260           %>
5042 11 Aug 09 martin 261           <tbl:table
5042 11 Aug 09 martin 262             id="members"
5042 11 Aug 09 martin 263             columns="all"
5042 11 Aug 09 martin 264             >
3547 03 Jul 07 martin 265           <tbl:columndef 
3547 03 Jul 07 martin 266             id="name"
3547 03 Jul 07 martin 267             title="Name"
3547 03 Jul 07 martin 268           />
3547 03 Jul 07 martin 269           <tbl:columndef 
5042 11 Aug 09 martin 270             id="valuetype"
5042 11 Aug 09 martin 271             title="Value Type"
3547 03 Jul 07 martin 272           />
5042 11 Aug 09 martin 273           <tbl:columndef 
5042 11 Aug 09 martin 274             id="description"
5042 11 Aug 09 martin 275             title="Description"
5042 11 Aug 09 martin 276           />
5042 11 Aug 09 martin 277           <tbl:columndef 
5042 11 Aug 09 martin 278             id="requiredForMiame"
5042 11 Aug 09 martin 279             title="Required For Miame"
5042 11 Aug 09 martin 280           />
3547 03 Jul 07 martin 281           <tbl:data>
5941 01 Feb 12 nicklas 282             <tbl:headers>
5941 01 Feb 12 nicklas 283               <tbl:headerrow>
5941 01 Feb 12 nicklas 284                 <tbl:columnheaders />
5941 01 Feb 12 nicklas 285               </tbl:headerrow>
5941 01 Feb 12 nicklas 286             </tbl:headers>
3547 03 Jul 07 martin 287             <tbl:rows>
3547 03 Jul 07 martin 288             <%
5042 11 Aug 09 martin 289             for (AnnotationType annotationType : annotationTypes)
3547 03 Jul 07 martin 290             {
5042 11 Aug 09 martin 291               %>
3547 03 Jul 07 martin 292               <tbl:row>
3890 30 Oct 07 nicklas 293                 <tbl:cell column="name"><base:icon 
5946 03 Feb 12 nicklas 294                     image="deleted.png" 
5042 11 Aug 09 martin 295                     tooltip="This item has been scheduled for deletion" 
5042 11 Aug 09 martin 296                     visible="<%=annotationType.isRemoved()%>"
5042 11 Aug 09 martin 297                   /><%=Base.getLinkedName(ID, annotationType, false, true)%></tbl:cell>
5042 11 Aug 09 martin 298                 <tbl:cell column="valuetype"><%=annotationType.getValueType()%></tbl:cell>
5042 11 Aug 09 martin 299                 <tbl:cell column="description"><%=HTML.encodeTags(annotationType.getDescription())%></tbl:cell>
5042 11 Aug 09 martin 300                 <tbl:cell column="requiredForMiame"><%=annotationType.isRequiredForMiame() ? "yes" : "no"%></tbl:cell>
3547 03 Jul 07 martin 301               </tbl:row>
3547 03 Jul 07 martin 302               <%
3547 03 Jul 07 martin 303             }
3547 03 Jul 07 martin 304             %>
3547 03 Jul 07 martin 305             </tbl:rows>
3547 03 Jul 07 martin 306           </tbl:data>
5941 01 Feb 12 nicklas 307         </tbl:table>
3547 03 Jul 07 martin 308         <%
5511 19 Nov 10 nicklas 309       }
5511 19 Nov 10 nicklas 310       %>
5941 01 Feb 12 nicklas 311       </base:section>
5511 19 Nov 10 nicklas 312       <jsp:include page="../../common/anytoany/list_anytoany.jsp">
5511 19 Nov 10 nicklas 313         <jsp:param name="ID" value="<%=ID%>" />
5511 19 Nov 10 nicklas 314         <jsp:param name="item_type" value="<%=itemType.name()%>" />
5511 19 Nov 10 nicklas 315         <jsp:param name="item_id" value="<%=itemId%>" />
5511 19 Nov 10 nicklas 316         <jsp:param name="title" value="Other items related to this category" />
5511 19 Nov 10 nicklas 317       </jsp:include>
5941 01 Feb 12 nicklas 318       <jsp:include page="../../common/share/list_share.jsp">
5941 01 Feb 12 nicklas 319         <jsp:param name="ID" value="<%=ID%>" />
5941 01 Feb 12 nicklas 320         <jsp:param name="item_type" value="<%=itemType.name()%>" />
5941 01 Feb 12 nicklas 321         <jsp:param name="item_id" value="<%=itemId%>" />
5941 01 Feb 12 nicklas 322         <jsp:param name="title" value="Shared to" />
5941 01 Feb 12 nicklas 323       </jsp:include>
5941 01 Feb 12 nicklas 324     </t:tab>
5941 01 Feb 12 nicklas 325     </t:tabcontrol>
2356 08 Jun 06 dominic 326
2356 08 Jun 06 dominic 327   </base:body>
2356 08 Jun 06 dominic 328   </base:page>
2356 08 Jun 06 dominic 329   <%
2356 08 Jun 06 dominic 330 }
2356 08 Jun 06 dominic 331 finally
2356 08 Jun 06 dominic 332 {
2356 08 Jun 06 dominic 333   if (dc != null) dc.close();
2356 08 Jun 06 dominic 334 }
2356 08 Jun 06 dominic 335
2356 08 Jun 06 dominic 336 %>