<%-- 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/ --%> <%-- - Display the main page for item mapping (status and controls) - - Attributes to pass in: - - collection - Collection we're managing - collections - Map of Collections, keyed by collection_id - collection_counts - Map of Collection IDs to counts - count_native - how many items are in collection - count_import - how many items are 'virtual' --%> <%@page import="java.util.List"%> <%@ 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="java.net.URLEncoder" %> <%@ page import="java.util.Iterator" %> <%@ page import="java.util.Map" %> <%@ page import="org.dspace.content.Collection" %> <%@ page import="org.dspace.content.Item" %> <%@ page import="org.dspace.core.ConfigurationManager" %> <%@ page import="java.util.UUID" %> <% Collection collection = (Collection)request.getAttribute("collection"); int count_native = ((Integer)request.getAttribute("count_native")).intValue(); int count_import = ((Integer)request.getAttribute("count_import")).intValue(); Map items = (Map)request.getAttribute("items"); Map collections = (Map)request.getAttribute("collections"); Map collection_counts = (Map)request.getAttribute("collection_counts"); List all_collections = (List) request.getAttribute("all_collections"); List searchIndices = (List) request.getAttribute("searchIndices"); String prefixKey = (String) request.getAttribute("prefixKey"); Boolean searchError = (Boolean) request.getAttribute("searchError"); boolean bSearchError = searchError != null?searchError:false; %> <%--

Item Mapper - Map Items from Other Collections

--%>

<%--

Collection: "<%=collection.getMetadata("name")%>"

--%>

<%=collection.getName()%>

<%--

There are <%=count_native%> items owned by this collection, and <%=count_import%> items mapped in from other collections.

--%>

<%=count_native%> <%=count_import%>

<%--

Quick Add Item:

Enter the Handle or internal item ID of the item you want to add:

/" size="12"/>

Import an entire collection

--%> <%--

Import By Author Match

Enter part of an author's name for a list of matching items
--%>

" />
<% if (bSearchError) { %>

<% } %> <%--

Browse Items Imported From Collections:

--%>

<%--

Click on collection names to browse for items to remove that were mapped in from that collection.

--%>

<% String row = "even"; Iterator colKeys = collections.keySet().iterator(); if(!colKeys.hasNext()) { %> <%--

This collection has no items mapped into it.

--%>

<% } while( colKeys.hasNext() ) { Collection myCollection = (Collection)collections.get(colKeys.next()); String myTitle = myCollection.getName(); UUID cid = collection.getID(); UUID myID = myCollection.getID(); int myCount = ((Integer)collection_counts.get( (myID))).intValue(); String myLink = request.getContextPath()+"/tools/itemmap?action=browse"; %>

<%=myTitle%> (<%=myCount%>)

<% } %>