<%-- The contents of this file are subject to the license and copyright detailed in the LICENSE and NOTICE files at the root of the source tree and available online at http://www.dspace.org/license/ --%> <%-- - Show a user's subscriptions and allow them to be modified - - Attributes: - avail - List - collections available to this user for subscription. - subscriptions - List - collections user is subscribed to. - updated - Boolean - if true, subscriptions have just been updated. --%> <%@ page contentType="text/html;charset=UTF-8" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> <%@ taglib uri="http://www.dspace.org/dspace-tags.tld" prefix="dspace" %> <%@ page import="javax.servlet.jsp.jstl.fmt.LocaleSupport" %> <%@ page import="org.dspace.content.Community" %> <%@ page import="org.dspace.content.Collection" %> <%@ page import="org.dspace.app.util.CollectionDropDown" %> <%@ page import="org.dspace.eperson.Subscription" %> <%@ page import="java.util.List" %> <%@ page import="org.dspace.app.webui.util.UIUtil" %> <%@ page import="org.dspace.core.Context" %> <% List availableSubscriptions = (List) request.getAttribute("availableSubscriptions"); List subscriptions = (List) request.getAttribute("subscriptions"); boolean updated = ((Boolean) request.getAttribute("updated")).booleanValue(); Context context = UIUtil.obtainContext(request); %> <%--

Your Subscriptions

--%>

<% if (updated) { %>

<% } %>
" /> " />
<% if (subscriptions.size() > 0) { %>

<% String row = "odd"; for (int i = 0; i < subscriptions.size(); i++) { %> <%-- - HACK: form shouldn't open here, but IE adds a carraige - return where is placed, breaking our nice layout. --%> <% row = (row.equals("even") ? "odd" : "even" ); } %>
<%= CollectionDropDown.collectionPath(context, subscriptions.get(i).getCollection(),0) %>
" />

<% } else { %>

<% } %>