<%-- 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 the user a license which they may grant or reject - - Attributes to pass in: - submission.info - the SubmissionInfo object - license - the license text to display - cclicense.exists - boolean to indicate CC license already exists --%> <%@page import="org.dspace.core.Context"%> <%@page import="org.dspace.app.webui.util.UIUtil"%> <%@ page contentType="text/html;charset=UTF-8" %> <%@page import="org.dspace.app.webui.servlet.admin.EditItemServlet"%> <%@ page import="org.dspace.content.Item" %> <%@ page import="org.dspace.license.CreativeCommonsServiceImpl" %> <%@ page import="org.dspace.core.ConfigurationManager" %> <%@ page import="org.dspace.license.factory.LicenseServiceFactory" %> <%@ page import="org.dspace.license.CCLicense"%> <%@ page import="java.util.Collection"%> <%@ taglib uri="http://www.dspace.org/dspace-tags.tld" prefix="dspace" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> <% Item item = (Item) request.getAttribute("item"); Boolean lExists = (Boolean) request.getAttribute("cclicense.exists"); boolean licenseExists = (lExists == null ? false : lExists.booleanValue()); Collection cclicenses = (Collection) request.getAttribute("cclicense.licenses"); Context context = UIUtil.obtainContext(request); String licenseURL = ""; if (licenseExists) licenseURL = LicenseServiceFactory.getInstance().getCreativeCommonsService().getLicenseURL(context, item); %>

<% if (licenseExists) { %> <% } %>
" /> " />