mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-10 11:33:11 +00:00
[DS-707] Remove unused local variables
git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@5535 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -638,7 +638,6 @@ public class ItemImport
|
|||||||
String oldHandle = mapEntry.getValue();
|
String oldHandle = mapEntry.getValue();
|
||||||
|
|
||||||
Item oldItem = null;
|
Item oldItem = null;
|
||||||
Item newItem = null;
|
|
||||||
|
|
||||||
if (oldHandle.indexOf('/') != -1)
|
if (oldHandle.indexOf('/') != -1)
|
||||||
{
|
{
|
||||||
@@ -674,9 +673,7 @@ public class ItemImport
|
|||||||
handleOut.close();
|
handleOut.close();
|
||||||
|
|
||||||
deleteItem(c, oldItem);
|
deleteItem(c, oldItem);
|
||||||
|
addItem(c, mycollections, sourceDir, newItemName, null, template);
|
||||||
newItem = addItem(c, mycollections, sourceDir, newItemName, null, template);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1020,7 +1017,6 @@ public class ItemImport
|
|||||||
String filename)
|
String filename)
|
||||||
{
|
{
|
||||||
String filePath = path + File.separatorChar + filename;
|
String filePath = path + File.separatorChar + filename;
|
||||||
String line = "";
|
|
||||||
String result = null;
|
String result = null;
|
||||||
|
|
||||||
System.out.println("Processing handle file: " + filename);
|
System.out.println("Processing handle file: " + filename);
|
||||||
|
@@ -208,7 +208,7 @@ public class ScriptLauncher
|
|||||||
System.out.println("");**/
|
System.out.println("");**/
|
||||||
|
|
||||||
Method main = target.getMethod("main", argTypes);
|
Method main = target.getMethod("main", argTypes);
|
||||||
Object output = main.invoke(null, arguments);
|
main.invoke(null, arguments);
|
||||||
|
|
||||||
// ensure we close out the request (happy request)
|
// ensure we close out the request (happy request)
|
||||||
requestService.endRequest(null);
|
requestService.endRequest(null);
|
||||||
|
@@ -583,7 +583,6 @@ public class MediaFilterManager
|
|||||||
{
|
{
|
||||||
String handle = myItem.getHandle();
|
String handle = myItem.getHandle();
|
||||||
Bundle[] bundles = myBitstream.getBundles();
|
Bundle[] bundles = myBitstream.getBundles();
|
||||||
String name = myBitstream.getName();
|
|
||||||
long size = myBitstream.getSize();
|
long size = myBitstream.getSize();
|
||||||
String checksum = myBitstream.getChecksum() + " ("+myBitstream.getChecksumAlgorithm()+")";
|
String checksum = myBitstream.getChecksum() + " ("+myBitstream.getChecksumAlgorithm()+")";
|
||||||
int assetstore = myBitstream.getStoreNumber();
|
int assetstore = myBitstream.getStoreNumber();
|
||||||
|
@@ -283,10 +283,6 @@ public class ReportGenerator
|
|||||||
// set the parameters for this analysis
|
// set the parameters for this analysis
|
||||||
setParameters(myInput);
|
setParameters(myInput);
|
||||||
|
|
||||||
// pre prepare our standard file readers and buffered readers
|
|
||||||
FileReader fr = null;
|
|
||||||
BufferedReader br = null;
|
|
||||||
|
|
||||||
// read the input file
|
// read the input file
|
||||||
readInput(input);
|
readInput(input);
|
||||||
|
|
||||||
|
@@ -372,7 +372,6 @@ public class SubmissionConfigReader
|
|||||||
private void processStepDefinition(Node e) throws SAXException,
|
private void processStepDefinition(Node e) throws SAXException,
|
||||||
ServletException
|
ServletException
|
||||||
{
|
{
|
||||||
int numStepDefns = 0;
|
|
||||||
stepDefns = new HashMap<String, Map>();
|
stepDefns = new HashMap<String, Map>();
|
||||||
|
|
||||||
NodeList nl = e.getChildNodes();
|
NodeList nl = e.getChildNodes();
|
||||||
@@ -383,7 +382,6 @@ public class SubmissionConfigReader
|
|||||||
// process each step definition
|
// process each step definition
|
||||||
if (nd.getNodeName().equals("step"))
|
if (nd.getNodeName().equals("step"))
|
||||||
{
|
{
|
||||||
numStepDefns++;
|
|
||||||
String stepID = getAttribute(nd, "id");
|
String stepID = getAttribute(nd, "id");
|
||||||
if (stepID == null)
|
if (stepID == null)
|
||||||
{
|
{
|
||||||
@@ -475,13 +473,11 @@ public class SubmissionConfigReader
|
|||||||
submitDefns.put(submitName, steps);
|
submitDefns.put(submitName, steps);
|
||||||
|
|
||||||
// loop through all the 'step' nodes of the 'submission-process'
|
// loop through all the 'step' nodes of the 'submission-process'
|
||||||
int stepNum = 0;
|
|
||||||
NodeList pl = nd.getChildNodes();
|
NodeList pl = nd.getChildNodes();
|
||||||
int lenStep = pl.getLength();
|
int lenStep = pl.getLength();
|
||||||
for (int j = 0; j < lenStep; j++)
|
for (int j = 0; j < lenStep; j++)
|
||||||
{
|
{
|
||||||
Node nStep = pl.item(j);
|
Node nStep = pl.item(j);
|
||||||
stepNum++;
|
|
||||||
|
|
||||||
// process each 'step' definition
|
// process each 'step' definition
|
||||||
if (nStep.getNodeName().equals("step"))
|
if (nStep.getNodeName().equals("step"))
|
||||||
|
@@ -181,7 +181,6 @@ public class LDAPAuthentication
|
|||||||
catch (SQLException e)
|
catch (SQLException e)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
boolean loggedIn = false;
|
|
||||||
SpeakerToLDAP ldap = new SpeakerToLDAP(log);
|
SpeakerToLDAP ldap = new SpeakerToLDAP(log);
|
||||||
|
|
||||||
// if they entered a netid that matches an eperson
|
// if they entered a netid that matches an eperson
|
||||||
|
@@ -316,13 +316,6 @@ public class BrowseEngine
|
|||||||
|
|
||||||
log.debug("browsing using focus: " + focusValue);
|
log.debug("browsing using focus: " + focusValue);
|
||||||
|
|
||||||
// Now we have a value to focus on, we need to find out where it is
|
|
||||||
String focusField = browseIndex.getSortField(scope.isSecondLevel());
|
|
||||||
if (scope.getSortBy() > 0)
|
|
||||||
{
|
|
||||||
focusField = "sort_" + Integer.toString(scope.getSortBy());
|
|
||||||
}
|
|
||||||
|
|
||||||
// Convert the focus value into an offset
|
// Convert the focus value into an offset
|
||||||
offset = getOffsetForValue(focusValue);
|
offset = getOffsetForValue(focusValue);
|
||||||
}
|
}
|
||||||
@@ -656,11 +649,6 @@ public class BrowseEngine
|
|||||||
private int getOffsetForValue(String value)
|
private int getOffsetForValue(String value)
|
||||||
throws BrowseException
|
throws BrowseException
|
||||||
{
|
{
|
||||||
// get the table name. We don't really need to care about whether we are in a
|
|
||||||
// community or collection at this point. This is only for full or second
|
|
||||||
// level browse, so there is no need to worry about distinct value browsing
|
|
||||||
String tableName = browseIndex.getTableName();
|
|
||||||
|
|
||||||
// we need to make sure that we select from the correct column. If the sort option
|
// we need to make sure that we select from the correct column. If the sort option
|
||||||
// is the 0th option then we use sort_value, but if it is one of the others we have
|
// is the 0th option then we use sort_value, but if it is one of the others we have
|
||||||
// to select from that column instead. Otherwise, we end up missing the focus value
|
// to select from that column instead. Otherwise, we end up missing the focus value
|
||||||
@@ -697,11 +685,6 @@ public class BrowseEngine
|
|||||||
if (!browseIndex.isMetadataIndex())
|
if (!browseIndex.isMetadataIndex())
|
||||||
throw new IllegalArgumentException("getOffsetForDistinctValue called when not a metadata index");
|
throw new IllegalArgumentException("getOffsetForDistinctValue called when not a metadata index");
|
||||||
|
|
||||||
// get the table name. We don't really need to care about whether we are in a
|
|
||||||
// community or collection at this point. This is only for full or second
|
|
||||||
// level browse, so there is no need to worry about distinct value browsing
|
|
||||||
String tableName = browseIndex.getTableName();
|
|
||||||
|
|
||||||
// now get the DAO to do the query for us, returning the highest
|
// now get the DAO to do the query for us, returning the highest
|
||||||
// string value in the given column in the given table for the
|
// string value in the given column in the given table for the
|
||||||
// item (I think)
|
// item (I think)
|
||||||
@@ -826,9 +809,6 @@ public class BrowseEngine
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// get the table name that we are going to be getting our data from
|
|
||||||
String tableName = browseIndex.getTableName(distinct, scope.inCommunity(), scope.inCollection());
|
|
||||||
|
|
||||||
// ensure that the select is set to "*"
|
// ensure that the select is set to "*"
|
||||||
String[] select = { "*" };
|
String[] select = { "*" };
|
||||||
dao.setCountValues(select);
|
dao.setCountValues(select);
|
||||||
|
@@ -667,7 +667,6 @@ public class Item extends DSpaceObject
|
|||||||
{
|
{
|
||||||
List<DCValue> dublinCore = getMetadata();
|
List<DCValue> dublinCore = getMetadata();
|
||||||
MetadataAuthorityManager mam = MetadataAuthorityManager.getManager();
|
MetadataAuthorityManager mam = MetadataAuthorityManager.getManager();
|
||||||
ChoiceAuthorityManager cam = ChoiceAuthorityManager.getManager();
|
|
||||||
boolean authorityControlled = mam.isAuthorityControlled(schema, element, qualifier);
|
boolean authorityControlled = mam.isAuthorityControlled(schema, element, qualifier);
|
||||||
boolean authorityRequired = mam.isAuthorityRequired(schema, element, qualifier);
|
boolean authorityRequired = mam.isAuthorityRequired(schema, element, qualifier);
|
||||||
String fieldName = schema+"."+element+((qualifier==null)? "": "."+qualifier);
|
String fieldName = schema+"."+element+((qualifier==null)? "": "."+qualifier);
|
||||||
@@ -2135,8 +2134,6 @@ public class Item extends DSpaceObject
|
|||||||
|
|
||||||
for (int j = 0; j < bs.length; j++)
|
for (int j = 0; j < bs.length; j++)
|
||||||
{
|
{
|
||||||
Bitstream mybitstream = bs[j];
|
|
||||||
|
|
||||||
// remove bitstream policies
|
// remove bitstream policies
|
||||||
AuthorizeManager.removeGroupPolicies(ourContext, bs[j], g);
|
AuthorizeManager.removeGroupPolicies(ourContext, bs[j], g);
|
||||||
}
|
}
|
||||||
|
@@ -39,7 +39,6 @@ package org.dspace.content.authority;
|
|||||||
|
|
||||||
import org.xml.sax.ContentHandler;
|
import org.xml.sax.ContentHandler;
|
||||||
import org.xml.sax.SAXException;
|
import org.xml.sax.SAXException;
|
||||||
import org.xml.sax.Attributes;
|
|
||||||
import org.xml.sax.helpers.AttributesImpl;
|
import org.xml.sax.helpers.AttributesImpl;
|
||||||
|
|
||||||
|
|
||||||
@@ -59,7 +58,6 @@ public class ChoicesXMLGenerator
|
|||||||
public static void generate(Choices result, String format, ContentHandler contentHandler)
|
public static void generate(Choices result, String format, ContentHandler contentHandler)
|
||||||
throws SAXException
|
throws SAXException
|
||||||
{
|
{
|
||||||
Attributes noAtts = new AttributesImpl();
|
|
||||||
AttributesImpl resultAtts = new AttributesImpl();
|
AttributesImpl resultAtts = new AttributesImpl();
|
||||||
if (result.more)
|
if (result.more)
|
||||||
resultAtts.addAttribute("", "more", "more", "boolean", "true");
|
resultAtts.addAttribute("", "more", "more", "boolean", "true");
|
||||||
|
@@ -122,10 +122,12 @@ public class LCNameAuthority implements ChoiceAuthority
|
|||||||
*/
|
*/
|
||||||
public Choices getMatches(String text, int collection, int start, int limit, String locale)
|
public Choices getMatches(String text, int collection, int start, int limit, String locale)
|
||||||
{
|
{
|
||||||
boolean error = false;
|
|
||||||
Choices result = queryPerson(text, start, limit);
|
Choices result = queryPerson(text, start, limit);
|
||||||
if (result == null)
|
if (result == null)
|
||||||
|
{
|
||||||
result = new Choices(true);
|
result = new Choices(true);
|
||||||
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -144,7 +146,9 @@ public class LCNameAuthority implements ChoiceAuthority
|
|||||||
{
|
{
|
||||||
// punt if there is no query text
|
// punt if there is no query text
|
||||||
if (text == null || text.trim().length() == 0)
|
if (text == null || text.trim().length() == 0)
|
||||||
|
{
|
||||||
return new Choices(true);
|
return new Choices(true);
|
||||||
|
}
|
||||||
|
|
||||||
// 1. build CQL query
|
// 1. build CQL query
|
||||||
DCPersonName pn = new DCPersonName(text);
|
DCPersonName pn = new DCPersonName(text);
|
||||||
|
@@ -155,12 +155,8 @@ public class OREIngestionCrosswalk
|
|||||||
nf.setGroupingUsed(false);
|
nf.setGroupingUsed(false);
|
||||||
nf.setMinimumIntegerDigits(4);
|
nf.setMinimumIntegerDigits(4);
|
||||||
|
|
||||||
int countInt=0;
|
|
||||||
String count;
|
|
||||||
for (Element resource : aggregatedResources)
|
for (Element resource : aggregatedResources)
|
||||||
{
|
{
|
||||||
countInt++;
|
|
||||||
count = nf.format((long)countInt);
|
|
||||||
String href = resource.getAttributeValue("href");
|
String href = resource.getAttributeValue("href");
|
||||||
log.debug("ORE processing: " + href);
|
log.debug("ORE processing: " + href);
|
||||||
|
|
||||||
|
@@ -345,7 +345,6 @@ public class PDFPackager
|
|||||||
log.debug("PDF Info dict title=\""+title+"\"");
|
log.debug("PDF Info dict title=\""+title+"\"");
|
||||||
item.addDC("title", null, "en", title);
|
item.addDC("title", null, "en", title);
|
||||||
String value;
|
String value;
|
||||||
Calendar date;
|
|
||||||
if ((value = docinfo.getAuthor()) != null)
|
if ((value = docinfo.getAuthor()) != null)
|
||||||
{
|
{
|
||||||
item.addDC("contributor", "author", null, value);
|
item.addDC("contributor", "author", null, value);
|
||||||
|
@@ -519,9 +519,11 @@ public class PluginManager
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Class intf = Class.forName(iname);
|
if (Class.forName(iname) != null)
|
||||||
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
catch (ClassNotFoundException ce)
|
catch (ClassNotFoundException ce)
|
||||||
{
|
{
|
||||||
log.error("No class definition found for "+msg+": \""+iname+"\"");
|
log.error("No class definition found for "+msg+": \""+iname+"\"");
|
||||||
|
@@ -944,8 +944,6 @@ public class DSIndexer
|
|||||||
log.debug("Building Item: " + handle);
|
log.debug("Building Item: " + handle);
|
||||||
|
|
||||||
int j;
|
int j;
|
||||||
int k = 0;
|
|
||||||
|
|
||||||
if (indexConfigArr.length > 0)
|
if (indexConfigArr.length > 0)
|
||||||
{
|
{
|
||||||
DCValue[] mydc;
|
DCValue[] mydc;
|
||||||
|
@@ -1083,7 +1083,7 @@ public class DatabaseManager
|
|||||||
{
|
{
|
||||||
// Use execute, not executeQuery (which expects results) or
|
// Use execute, not executeQuery (which expects results) or
|
||||||
// executeUpdate
|
// executeUpdate
|
||||||
boolean succeeded = statement.execute(SQL);
|
statement.execute(SQL);
|
||||||
}
|
}
|
||||||
catch (SQLWarning sqlw)
|
catch (SQLWarning sqlw)
|
||||||
{
|
{
|
||||||
@@ -1776,6 +1776,7 @@ public class DatabaseManager
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
Connection connection = DatabaseManager.getConnection();
|
Connection connection = DatabaseManager.getConnection();
|
||||||
|
connection.close();
|
||||||
}
|
}
|
||||||
catch (SQLException sqle)
|
catch (SQLException sqle)
|
||||||
{
|
{
|
||||||
|
@@ -470,7 +470,7 @@ public class WorkflowManager
|
|||||||
+ e.getID()));
|
+ e.getID()));
|
||||||
|
|
||||||
// convert into personal workspace
|
// convert into personal workspace
|
||||||
WorkspaceItem wsi = returnToWorkspace(c, wi);
|
returnToWorkspace(c, wi);
|
||||||
}
|
}
|
||||||
|
|
||||||
// returns true if archived
|
// returns true if archived
|
||||||
|
@@ -586,11 +586,12 @@ public class SolrServiceImpl implements SearchService, IndexingService {
|
|||||||
Community[] communities = target.getCommunities();
|
Community[] communities = target.getCommunities();
|
||||||
|
|
||||||
// now put those into strings
|
// now put those into strings
|
||||||
String location = "";
|
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
|
||||||
for (i = 0; i < communities.length; i++)
|
for (i = 0; i < communities.length; i++)
|
||||||
locations.add(new String("m" + communities[i].getID()));
|
{
|
||||||
|
locations.add("m" + communities[i].getID());
|
||||||
|
}
|
||||||
|
|
||||||
return locations;
|
return locations;
|
||||||
}
|
}
|
||||||
@@ -1017,8 +1018,6 @@ public class SolrServiceImpl implements SearchService, IndexingService {
|
|||||||
while (iter.hasNext()) {
|
while (iter.hasNext()) {
|
||||||
SolrDocument doc = (SolrDocument) iter.next();
|
SolrDocument doc = (SolrDocument) iter.next();
|
||||||
|
|
||||||
String handle = (String) doc.getFieldValue("handle");
|
|
||||||
|
|
||||||
DSpaceObject o = DSpaceObject.find(context, (Integer) doc.getFirstValue("search.resourcetype"), (Integer) doc.getFirstValue("search.resourceid"));
|
DSpaceObject o = DSpaceObject.find(context, (Integer) doc.getFirstValue("search.resourcetype"), (Integer) doc.getFirstValue("search.resourceid"));
|
||||||
|
|
||||||
if (o != null) {
|
if (o != null) {
|
||||||
|
@@ -148,7 +148,6 @@ public abstract class AbstractSearch extends AbstractFiltersTransformer {
|
|||||||
String key = "";
|
String key = "";
|
||||||
|
|
||||||
// Page Parameter
|
// Page Parameter
|
||||||
Request request = ObjectModelHelper.getRequest(objectModel);
|
|
||||||
key += "-" + getParameterPage();
|
key += "-" + getParameterPage();
|
||||||
key += "-" + getParameterRpp();
|
key += "-" + getParameterRpp();
|
||||||
key += "-" + getParameterSortBy();
|
key += "-" + getParameterSortBy();
|
||||||
@@ -291,9 +290,6 @@ public abstract class AbstractSearch extends AbstractFiltersTransformer {
|
|||||||
// Look for any communities or collections in the mix
|
// Look for any communities or collections in the mix
|
||||||
ReferenceSet referenceSet = null;
|
ReferenceSet referenceSet = null;
|
||||||
|
|
||||||
|
|
||||||
boolean resultsContainsBothContainersAndItems = false;
|
|
||||||
|
|
||||||
for (SolrDocument doc : solrResults) {
|
for (SolrDocument doc : solrResults) {
|
||||||
|
|
||||||
DSpaceObject resultDSO =
|
DSpaceObject resultDSO =
|
||||||
@@ -306,8 +302,6 @@ public abstract class AbstractSearch extends AbstractFiltersTransformer {
|
|||||||
ReferenceSet.TYPE_SUMMARY_LIST, null, "repository-search-results");
|
ReferenceSet.TYPE_SUMMARY_LIST, null, "repository-search-results");
|
||||||
// Set a heading showing that we will be listing containers that matched:
|
// Set a heading showing that we will be listing containers that matched:
|
||||||
referenceSet.setHead(T_head2);
|
referenceSet.setHead(T_head2);
|
||||||
resultsContainsBothContainersAndItems = true;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
referenceSet.addReference(resultDSO);
|
referenceSet.addReference(resultDSO);
|
||||||
}
|
}
|
||||||
|
@@ -373,8 +373,6 @@ public class BrowseFacet extends AbstractDSpaceTransformer implements CacheableP
|
|||||||
|
|
||||||
DSpaceObject dso = HandleUtil.obtainHandle(objectModel);
|
DSpaceObject dso = HandleUtil.obtainHandle(objectModel);
|
||||||
|
|
||||||
java.util.List fqs = Arrays.asList(getParameterFacetQueries());
|
|
||||||
|
|
||||||
// Set up the major variables
|
// Set up the major variables
|
||||||
//Collection collection = (Collection) dso;
|
//Collection collection = (Collection) dso;
|
||||||
|
|
||||||
|
@@ -88,13 +88,9 @@ public class CommunityRecentSubmissions extends AbstractFiltersTransformer
|
|||||||
if (!(dso instanceof Community))
|
if (!(dso instanceof Community))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Set up the major variables
|
|
||||||
Community community = (Community) dso;
|
|
||||||
|
|
||||||
// Build the community viewer division.
|
// Build the community viewer division.
|
||||||
Division home = body.addDivision("community-home", "primary repository community");
|
Division home = body.addDivision("community-home", "primary repository community");
|
||||||
|
|
||||||
|
|
||||||
performSearch(dso);
|
performSearch(dso);
|
||||||
|
|
||||||
Division lastSubmittedDiv = home
|
Division lastSubmittedDiv = home
|
||||||
|
@@ -115,7 +115,7 @@ public class Navigation extends AbstractDSpaceTransformer implements CacheablePr
|
|||||||
public void addOptions(Options options) throws SAXException, WingException,
|
public void addOptions(Options options) throws SAXException, WingException,
|
||||||
UIException, SQLException, IOException, AuthorizeException
|
UIException, SQLException, IOException, AuthorizeException
|
||||||
{
|
{
|
||||||
DSpaceObject dso = HandleUtil.obtainHandle(objectModel);
|
// DSpaceObject dso = HandleUtil.obtainHandle(objectModel);
|
||||||
|
|
||||||
// List test = options.addList("browse");
|
// List test = options.addList("browse");
|
||||||
|
|
||||||
|
@@ -137,8 +137,6 @@ public class RelatedItems extends AbstractFiltersTransformer
|
|||||||
List<DSpaceObject> dsos = new ArrayList<DSpaceObject>();
|
List<DSpaceObject> dsos = new ArrayList<DSpaceObject>();
|
||||||
for(Map.Entry<String,SolrDocumentList> entry : mlt)
|
for(Map.Entry<String,SolrDocumentList> entry : mlt)
|
||||||
{
|
{
|
||||||
String key = entry.getKey();
|
|
||||||
|
|
||||||
//org.dspace.app.xmlui.wing.element.List mltList = mltDiv.addList(key);
|
//org.dspace.app.xmlui.wing.element.List mltList = mltDiv.addList(key);
|
||||||
|
|
||||||
//mltList.setHead(key);
|
//mltList.setHead(key);
|
||||||
@@ -175,7 +173,7 @@ public class RelatedItems extends AbstractFiltersTransformer
|
|||||||
null, "related-items");
|
null, "related-items");
|
||||||
|
|
||||||
for (DSpaceObject dso : dsos) {
|
for (DSpaceObject dso : dsos) {
|
||||||
Reference ref = set.addReference(dso);
|
set.addReference(dso);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -137,7 +137,6 @@ public class SimpleSearch extends AbstractSearch implements CacheableProcessingC
|
|||||||
search.addHidden("solr-search-url").setValue(searchUrl);
|
search.addHidden("solr-search-url").setValue(searchUrl);
|
||||||
search.addHidden("contextpath").setValue(contextPath);
|
search.addHidden("contextpath").setValue(contextPath);
|
||||||
|
|
||||||
Request request = ObjectModelHelper.getRequest(objectModel);
|
|
||||||
String[] fqs = getParameterFilterQueries();
|
String[] fqs = getParameterFilterQueries();
|
||||||
|
|
||||||
Division query = search.addInteractiveDivision("general-query",
|
Division query = search.addInteractiveDivision("general-query",
|
||||||
|
@@ -260,9 +260,7 @@ public class ItemTag extends TagSupport
|
|||||||
for (int i = 1; null != (urn = ConfigurationManager.getProperty("webui.resolver."+i+".urn")); i++){
|
for (int i = 1; null != (urn = ConfigurationManager.getProperty("webui.resolver."+i+".urn")); i++){
|
||||||
String baseurl = ConfigurationManager.getProperty("webui.resolver."+i+".baseurl");
|
String baseurl = ConfigurationManager.getProperty("webui.resolver."+i+".baseurl");
|
||||||
if (baseurl != null){
|
if (baseurl != null){
|
||||||
urn2baseurl.put(ConfigurationManager
|
urn2baseurl.put(urn, baseurl);
|
||||||
.getProperty("webui.resolver."+i+".urn"),
|
|
||||||
baseurl);
|
|
||||||
} else {
|
} else {
|
||||||
log.warn("Wrong webui.resolver configuration, you need to specify both webui.resolver.<n>.urn and webui.resolver.<n>.baseurl: missing baseurl for n = "+i);
|
log.warn("Wrong webui.resolver configuration, you need to specify both webui.resolver.<n>.urn and webui.resolver.<n>.baseurl: missing baseurl for n = "+i);
|
||||||
}
|
}
|
||||||
|
@@ -37,7 +37,6 @@ import java.io.IOException;
|
|||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Enumeration;
|
import java.util.Enumeration;
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@@ -151,9 +150,6 @@ public class ControlledVocabularySearchServlet extends DSpaceServlet
|
|||||||
// String query = request.getParameter("query");
|
// String query = request.getParameter("query");
|
||||||
int start = UIUtil.getIntParameter(request, "start");
|
int start = UIUtil.getIntParameter(request, "start");
|
||||||
String advanced = request.getParameter("advanced");
|
String advanced = request.getParameter("advanced");
|
||||||
String fromAdvanced = request.getParameter("from_advanced");
|
|
||||||
String advancedQuery = "";
|
|
||||||
HashMap queryHash = new HashMap();
|
|
||||||
|
|
||||||
// can't start earlier than 0 in the results!
|
// can't start earlier than 0 in the results!
|
||||||
if (start < 0)
|
if (start < 0)
|
||||||
@@ -177,7 +173,6 @@ public class ControlledVocabularySearchServlet extends DSpaceServlet
|
|||||||
if (advanced != null)
|
if (advanced != null)
|
||||||
{
|
{
|
||||||
query = qArgs.buildQuery(request);
|
query = qArgs.buildQuery(request);
|
||||||
advancedQuery = qArgs.buildHTTPQuery(request);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ensure the query is non-null
|
// Ensure the query is non-null
|
||||||
@@ -186,10 +181,6 @@ public class ControlledVocabularySearchServlet extends DSpaceServlet
|
|||||||
query = "";
|
query = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get the location parameter, if any
|
|
||||||
String location = request.getParameter("location");
|
|
||||||
String newURL;
|
|
||||||
|
|
||||||
// Build log information
|
// Build log information
|
||||||
String logInfo = "";
|
String logInfo = "";
|
||||||
|
|
||||||
|
@@ -102,8 +102,6 @@ public class EditProfileServlet extends DSpaceServlet
|
|||||||
request.setAttribute("missing.fields", Boolean.TRUE);
|
request.setAttribute("missing.fields", Boolean.TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
String passwordProblem = null;
|
|
||||||
|
|
||||||
if (ok && settingPassword)
|
if (ok && settingPassword)
|
||||||
{
|
{
|
||||||
// They want to set a new password.
|
// They want to set a new password.
|
||||||
|
@@ -116,7 +116,6 @@ public class RegisterServlet extends DSpaceServlet
|
|||||||
* will go to the "enter personal info" or "enter new password" page as
|
* will go to the "enter personal info" or "enter new password" page as
|
||||||
* appropriate.
|
* appropriate.
|
||||||
*/
|
*/
|
||||||
boolean updated = false;
|
|
||||||
|
|
||||||
// Get the token
|
// Get the token
|
||||||
String token = request.getParameter("token");
|
String token = request.getParameter("token");
|
||||||
|
@@ -177,7 +177,6 @@ public class SimpleSearchServlet extends DSpaceServlet
|
|||||||
|
|
||||||
// Get the location parameter, if any
|
// Get the location parameter, if any
|
||||||
String location = request.getParameter("location");
|
String location = request.getParameter("location");
|
||||||
String newURL;
|
|
||||||
|
|
||||||
// If there is a location parameter, we should redirect to
|
// If there is a location parameter, we should redirect to
|
||||||
// do the search with the correct location.
|
// do the search with the correct location.
|
||||||
|
@@ -289,8 +289,6 @@ public class CollectionWizardServlet extends DSpaceServlet
|
|||||||
Collection collection) throws SQLException, ServletException,
|
Collection collection) throws SQLException, ServletException,
|
||||||
IOException, AuthorizeException
|
IOException, AuthorizeException
|
||||||
{
|
{
|
||||||
Group anonymousGroup = Group.find(context, 0);
|
|
||||||
|
|
||||||
// "Public read" checkbox. Only need to do anything
|
// "Public read" checkbox. Only need to do anything
|
||||||
// if it's not checked (only system admin can uncheck this!).
|
// if it's not checked (only system admin can uncheck this!).
|
||||||
if (!UIUtil.getBoolParameter(request, "public_read")
|
if (!UIUtil.getBoolParameter(request, "public_read")
|
||||||
@@ -307,7 +305,7 @@ public class CollectionWizardServlet extends DSpaceServlet
|
|||||||
if (UIUtil.getBoolParameter(request, "submitters"))
|
if (UIUtil.getBoolParameter(request, "submitters"))
|
||||||
{
|
{
|
||||||
// Create submitters group
|
// Create submitters group
|
||||||
Group g = collection.createSubmitters();
|
collection.createSubmitters();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for the workflow steps
|
// Check for the workflow steps
|
||||||
@@ -316,7 +314,7 @@ public class CollectionWizardServlet extends DSpaceServlet
|
|||||||
if (UIUtil.getBoolParameter(request, "workflow" + i))
|
if (UIUtil.getBoolParameter(request, "workflow" + i))
|
||||||
{
|
{
|
||||||
// should have workflow step i
|
// should have workflow step i
|
||||||
Group g = collection.createWorkflowGroup(i);
|
collection.createWorkflowGroup(i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -324,7 +322,7 @@ public class CollectionWizardServlet extends DSpaceServlet
|
|||||||
if (UIUtil.getBoolParameter(request, "admins"))
|
if (UIUtil.getBoolParameter(request, "admins"))
|
||||||
{
|
{
|
||||||
// Create administrators group
|
// Create administrators group
|
||||||
Group g = collection.createAdministrators();
|
collection.createAdministrators();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Default item stuff?
|
// Default item stuff?
|
||||||
@@ -367,7 +365,6 @@ public class CollectionWizardServlet extends DSpaceServlet
|
|||||||
if (UIUtil.getBoolParameter(request, "mitgroup"))
|
if (UIUtil.getBoolParameter(request, "mitgroup"))
|
||||||
{
|
{
|
||||||
Group mitGroup = Group.findByName(context, "MIT Users");
|
Group mitGroup = Group.findByName(context, "MIT Users");
|
||||||
int action;
|
|
||||||
|
|
||||||
if (permission == PERM_READ)
|
if (permission == PERM_READ)
|
||||||
{
|
{
|
||||||
|
@@ -252,14 +252,14 @@ public class JSPSampleStep extends JSPStep
|
|||||||
|
|
||||||
// This function retrieves the path of the JSP which just submitted its
|
// This function retrieves the path of the JSP which just submitted its
|
||||||
// form to this class (e.g. "/submit/sample-step.jsp", in this case)
|
// form to this class (e.g. "/submit/sample-step.jsp", in this case)
|
||||||
String lastJSPDisplayed = JSPStepManager.getLastJSPDisplayed(request);
|
// String lastJSPDisplayed = JSPStepManager.getLastJSPDisplayed(request);
|
||||||
|
|
||||||
// This function retrieves the number of the current "page"
|
// This function retrieves the number of the current "page"
|
||||||
// within this Step. This is useful if your step actually
|
// within this Step. This is useful if your step actually
|
||||||
// has more than one "page" within the Progress Bar. It can
|
// has more than one "page" within the Progress Bar. It can
|
||||||
// help you determine which Page the user just came from,
|
// help you determine which Page the user just came from,
|
||||||
// as well as determine which JSP to load in doPreProcessing()
|
// as well as determine which JSP to load in doPreProcessing()
|
||||||
int currentPageNum = SampleStep.getCurrentPage(request);
|
// int currentPageNum = SampleStep.getCurrentPage(request);
|
||||||
|
|
||||||
// This function returns the NAME of the button the user
|
// This function returns the NAME of the button the user
|
||||||
// just pressed in order to submit the form.
|
// just pressed in order to submit the form.
|
||||||
|
@@ -129,17 +129,8 @@ public class DSpaceLNISoapBindingStub extends org.apache.axis.client.Stub implem
|
|||||||
((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.2");
|
((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.2");
|
||||||
java.lang.Class cls;
|
java.lang.Class cls;
|
||||||
javax.xml.namespace.QName qName;
|
javax.xml.namespace.QName qName;
|
||||||
javax.xml.namespace.QName qName2;
|
|
||||||
java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
|
java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
|
||||||
java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
|
java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
|
||||||
java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
|
|
||||||
java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
|
|
||||||
java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
|
|
||||||
java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
|
|
||||||
java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
|
|
||||||
java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
|
|
||||||
java.lang.Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
|
|
||||||
java.lang.Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
|
|
||||||
qName = new javax.xml.namespace.QName("http://dspace.org/xmlns/lni", "LNIRemoteException");
|
qName = new javax.xml.namespace.QName("http://dspace.org/xmlns/lni", "LNIRemoteException");
|
||||||
cachedSerQNames.add(qName);
|
cachedSerQNames.add(qName);
|
||||||
cls = org.dspace.app.dav.client.LNIRemoteException.class;
|
cls = org.dspace.app.dav.client.LNIRemoteException.class;
|
||||||
|
@@ -482,7 +482,6 @@ class DAVItem extends DAVDSpaceObject
|
|||||||
|
|
||||||
String packageType = this.request.getParameter("package");
|
String packageType = this.request.getParameter("package");
|
||||||
Bundle[] original = this.item.getBundles("ORIGINAL");
|
Bundle[] original = this.item.getBundles("ORIGINAL");
|
||||||
int bsid;
|
|
||||||
|
|
||||||
if (packageType == null)
|
if (packageType == null)
|
||||||
{
|
{
|
||||||
|
@@ -192,7 +192,7 @@ public class DIDLCrosswalk extends Crosswalk
|
|||||||
BufferedInputStream bis = new BufferedInputStream(is);
|
BufferedInputStream bis = new BufferedInputStream(is);
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
int size=bis.read(buffer);
|
bis.read(buffer);
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
|
@@ -531,7 +531,6 @@ public class SolrLogger
|
|||||||
List<String> fieldNames, List<List<Object>> fieldValuesList)
|
List<String> fieldNames, List<List<Object>> fieldValuesList)
|
||||||
throws SolrServerException, IOException
|
throws SolrServerException, IOException
|
||||||
{
|
{
|
||||||
long start = new Date().getTime();
|
|
||||||
// Since there is NO update
|
// Since there is NO update
|
||||||
// We need to get our documents
|
// We need to get our documents
|
||||||
// QueryResponse queryResponse = solr.query()//query(query, null, -1,
|
// QueryResponse queryResponse = solr.query()//query(query, null, -1,
|
||||||
|
@@ -377,15 +377,14 @@ public class ClassicDSpaceLogConverter {
|
|||||||
String out = line.getOptionValue('o') +
|
String out = line.getOptionValue('o') +
|
||||||
(dir.getAbsolutePath() +
|
(dir.getAbsolutePath() +
|
||||||
System.getProperty("file.separator") + in).substring(line.getOptionValue('i').length());
|
System.getProperty("file.separator") + in).substring(line.getOptionValue('i').length());
|
||||||
int count = converter.convert(dir.getAbsolutePath() + System.getProperty("file.separator") + in,
|
|
||||||
out);
|
converter.convert(dir.getAbsolutePath() + System.getProperty("file.separator") + in, out);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Just convert the one file
|
// Just convert the one file
|
||||||
int count = converter.convert(line.getOptionValue('i'),
|
converter.convert(line.getOptionValue('i'), line.getOptionValue('o'));
|
||||||
line.getOptionValue('o'));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Clean everything up
|
// Clean everything up
|
||||||
|
@@ -24,7 +24,6 @@ import java.io.IOException;
|
|||||||
public class DnsLookup {
|
public class DnsLookup {
|
||||||
|
|
||||||
public static String reverseDns(String hostIp) throws IOException {
|
public static String reverseDns(String hostIp) throws IOException {
|
||||||
Record opt = null;
|
|
||||||
Resolver res = new ExtendedResolver();
|
Resolver res = new ExtendedResolver();
|
||||||
|
|
||||||
// set the timeout, defaults to 200 milliseconds
|
// set the timeout, defaults to 200 milliseconds
|
||||||
|
@@ -164,7 +164,6 @@ public class StatisticsDataGenerator {
|
|||||||
String ip = "";
|
String ip = "";
|
||||||
Date time;
|
Date time;
|
||||||
String continent;
|
String continent;
|
||||||
String country = "";
|
|
||||||
String countryCode;
|
String countryCode;
|
||||||
float longitude;
|
float longitude;
|
||||||
float latitude;
|
float latitude;
|
||||||
@@ -196,7 +195,6 @@ public class StatisticsDataGenerator {
|
|||||||
}
|
}
|
||||||
|
|
||||||
city = location.city;
|
city = location.city;
|
||||||
country = location.countryName;
|
|
||||||
countryCode = location.countryCode;
|
countryCode = location.countryCode;
|
||||||
longitude = location.longitude;
|
longitude = location.longitude;
|
||||||
latitude = location.latitude;
|
latitude = location.latitude;
|
||||||
|
@@ -183,7 +183,7 @@ public class StatisticsImporter
|
|||||||
BufferedReader input = new BufferedReader(new FileReader(new File(filename)));
|
BufferedReader input = new BufferedReader(new FileReader(new File(filename)));
|
||||||
|
|
||||||
String line;
|
String line;
|
||||||
String uuid;
|
// String uuid;
|
||||||
String action;
|
String action;
|
||||||
String id;
|
String id;
|
||||||
Date date;
|
Date date;
|
||||||
@@ -210,7 +210,7 @@ public class StatisticsImporter
|
|||||||
errors++;
|
errors++;
|
||||||
if (verbose) System.out.println("Line:" + line);
|
if (verbose) System.out.println("Line:" + line);
|
||||||
String[] parts = line.split(",");
|
String[] parts = line.split(",");
|
||||||
uuid = parts[0];
|
// uuid = parts[0];
|
||||||
action = parts[1];
|
action = parts[1];
|
||||||
id = parts[2];
|
id = parts[2];
|
||||||
date = dateFormat.parse(parts[3]);
|
date = dateFormat.parse(parts[3]);
|
||||||
|
@@ -106,10 +106,6 @@ public class CollectionCollectionGenerator extends ATOMCollectionGenerator
|
|||||||
// we just do support mediation
|
// we just do support mediation
|
||||||
boolean mediation = swordConfig.isMediated();
|
boolean mediation = swordConfig.isMediated();
|
||||||
|
|
||||||
// the list of mime types that we accept
|
|
||||||
// for the time being, we just take a zip, and we have to trust what's in it
|
|
||||||
String zip = "application/zip";
|
|
||||||
|
|
||||||
// load up the sword collection
|
// load up the sword collection
|
||||||
scol.setLocation(location);
|
scol.setLocation(location);
|
||||||
|
|
||||||
|
@@ -222,8 +222,6 @@ public class ItemEntryGenerator extends DSpaceATOMEntry
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
String base = ConfigurationManager.getProperty("dspace.url");
|
|
||||||
|
|
||||||
// link to all the files in the item
|
// link to all the files in the item
|
||||||
Bundle[] bundles = item.getBundles("ORIGINAL");
|
Bundle[] bundles = item.getBundles("ORIGINAL");
|
||||||
for (int i = 0; i < bundles.length ; i++)
|
for (int i = 0; i < bundles.length ; i++)
|
||||||
|
@@ -496,7 +496,6 @@ public class SWORDAuthenticator
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Context context = swordContext.getContext();
|
|
||||||
EPerson authenticated = swordContext.getAuthenticated();
|
EPerson authenticated = swordContext.getAuthenticated();
|
||||||
if (authenticated != null)
|
if (authenticated != null)
|
||||||
{
|
{
|
||||||
@@ -523,7 +522,6 @@ public class SWORDAuthenticator
|
|||||||
public boolean isOnBehalfOfAdmin(SWORDContext swordContext)
|
public boolean isOnBehalfOfAdmin(SWORDContext swordContext)
|
||||||
throws DSpaceSWORDException
|
throws DSpaceSWORDException
|
||||||
{
|
{
|
||||||
Context context = swordContext.getContext();
|
|
||||||
EPerson onBehalfOf = swordContext.getOnBehalfOf();
|
EPerson onBehalfOf = swordContext.getOnBehalfOf();
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@@ -733,7 +731,6 @@ public class SWORDAuthenticator
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
Community[] comms = community.getSubcommunities();
|
Community[] comms = community.getSubcommunities();
|
||||||
Context context = swordContext.getContext();
|
|
||||||
List<Community> allowed = new ArrayList<Community>();
|
List<Community> allowed = new ArrayList<Community>();
|
||||||
|
|
||||||
for (int i = 0; i < comms.length; i++)
|
for (int i = 0; i < comms.length; i++)
|
||||||
|
@@ -234,9 +234,6 @@ public class WithdrawnItems extends AbstractDSpaceTransformer implements
|
|||||||
{
|
{
|
||||||
BrowseInfo info = getBrowseInfo();
|
BrowseInfo info = getBrowseInfo();
|
||||||
|
|
||||||
// Get the name of the index
|
|
||||||
String type = info.getBrowseIndex().getName();
|
|
||||||
|
|
||||||
pageMeta.addMetadata("title").addContent(getTitleMessage(info));
|
pageMeta.addMetadata("title").addContent(getTitleMessage(info));
|
||||||
|
|
||||||
DSpaceObject dso = HandleUtil.obtainHandle(objectModel);
|
DSpaceObject dso = HandleUtil.obtainHandle(objectModel);
|
||||||
@@ -356,9 +353,6 @@ public class WithdrawnItems extends AbstractDSpaceTransformer implements
|
|||||||
private void addBrowseJumpNavigation(Division div, BrowseInfo info, BrowseParams params)
|
private void addBrowseJumpNavigation(Division div, BrowseInfo info, BrowseParams params)
|
||||||
throws WingException
|
throws WingException
|
||||||
{
|
{
|
||||||
// Get the name of the index
|
|
||||||
String type = info.getBrowseIndex().getName();
|
|
||||||
|
|
||||||
// Prepare a Map of query parameters required for all links
|
// Prepare a Map of query parameters required for all links
|
||||||
Map<String, String> queryParams = new HashMap<String, String>();
|
Map<String, String> queryParams = new HashMap<String, String>();
|
||||||
queryParams.putAll(params.getCommonParameters());
|
queryParams.putAll(params.getCommonParameters());
|
||||||
|
@@ -40,8 +40,6 @@
|
|||||||
package org.dspace.app.xmlui.aspect.administrative.collection;
|
package org.dspace.app.xmlui.aspect.administrative.collection;
|
||||||
|
|
||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
import org.apache.cocoon.environment.ObjectModelHelper;
|
|
||||||
import org.apache.cocoon.environment.Request;
|
|
||||||
import org.dspace.app.xmlui.cocoon.AbstractDSpaceTransformer;
|
import org.dspace.app.xmlui.cocoon.AbstractDSpaceTransformer;
|
||||||
import org.dspace.app.xmlui.wing.Message;
|
import org.dspace.app.xmlui.wing.Message;
|
||||||
import org.dspace.app.xmlui.wing.WingException;
|
import org.dspace.app.xmlui.wing.WingException;
|
||||||
@@ -124,7 +122,6 @@ public class EditCollectionHarvestingForm extends AbstractDSpaceTransformer
|
|||||||
int collectionID = parameters.getParameterAsInteger("collectionID", -1);
|
int collectionID = parameters.getParameterAsInteger("collectionID", -1);
|
||||||
Collection thisCollection = Collection.find(context, collectionID);
|
Collection thisCollection = Collection.find(context, collectionID);
|
||||||
HarvestedCollection hc = HarvestedCollection.find(context, collectionID);
|
HarvestedCollection hc = HarvestedCollection.find(context, collectionID);
|
||||||
Request request = ObjectModelHelper.getRequest(objectModel);
|
|
||||||
|
|
||||||
String baseURL = contextPath + "/admin/collection?administrative-continue=" + knot.getId();
|
String baseURL = contextPath + "/admin/collection?administrative-continue=" + knot.getId();
|
||||||
|
|
||||||
|
@@ -128,7 +128,6 @@ public class MetadataImportConfirm extends AbstractDSpaceTransformer {
|
|||||||
|
|
||||||
|
|
||||||
// Display the changes
|
// Display the changes
|
||||||
int changeCounter = 0;
|
|
||||||
for (BulkEditChange change : changes)
|
for (BulkEditChange change : changes)
|
||||||
{
|
{
|
||||||
// Get the changes
|
// Get the changes
|
||||||
@@ -155,7 +154,6 @@ public class MetadataImportConfirm extends AbstractDSpaceTransformer {
|
|||||||
headerrow.addCellContent(T_new_item);
|
headerrow.addCellContent(T_new_item);
|
||||||
}
|
}
|
||||||
headerrow.addCell();
|
headerrow.addCell();
|
||||||
changeCounter++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Show new owning collection
|
// Show new owning collection
|
||||||
|
@@ -129,7 +129,6 @@ public class MetadataImportUpload extends AbstractDSpaceTransformer {
|
|||||||
Table mdchanges = div.addTable("metadata-changes", num_changes, 2);
|
Table mdchanges = div.addTable("metadata-changes", num_changes, 2);
|
||||||
|
|
||||||
// Display the changes
|
// Display the changes
|
||||||
int changeCounter = 0;
|
|
||||||
for (BulkEditChange change : changes)
|
for (BulkEditChange change : changes)
|
||||||
{
|
{
|
||||||
// Get the changes
|
// Get the changes
|
||||||
@@ -157,7 +156,6 @@ public class MetadataImportUpload extends AbstractDSpaceTransformer {
|
|||||||
headerrow.addCellContent(T_new_item);
|
headerrow.addCellContent(T_new_item);
|
||||||
}
|
}
|
||||||
headerrow.addCell();
|
headerrow.addCell();
|
||||||
changeCounter++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Show new owning collection
|
// Show new owning collection
|
||||||
|
@@ -153,7 +153,6 @@ public abstract class AbstractSearch extends AbstractDSpaceTransformer
|
|||||||
String key = "";
|
String key = "";
|
||||||
|
|
||||||
// Page Parameter
|
// Page Parameter
|
||||||
Request request = ObjectModelHelper.getRequest(objectModel);
|
|
||||||
key += "-" + getParameterPage();
|
key += "-" + getParameterPage();
|
||||||
key += "-" + getParameterRpp();
|
key += "-" + getParameterRpp();
|
||||||
key += "-" + getParameterSortBy();
|
key += "-" + getParameterSortBy();
|
||||||
|
@@ -162,10 +162,8 @@ public class CommunityBrowser extends AbstractDSpaceTransformer implements Cache
|
|||||||
Stack<TreeNode> stack = new Stack<TreeNode>();
|
Stack<TreeNode> stack = new Stack<TreeNode>();
|
||||||
stack.push(root);
|
stack.push(root);
|
||||||
|
|
||||||
int objectCount = 0;
|
|
||||||
while (!stack.empty())
|
while (!stack.empty())
|
||||||
{
|
{
|
||||||
objectCount++;
|
|
||||||
TreeNode node = stack.pop();
|
TreeNode node = stack.pop();
|
||||||
|
|
||||||
validity.add(node.getDSO());
|
validity.add(node.getDSO());
|
||||||
|
@@ -245,9 +245,6 @@ public class ConfigurableBrowse extends AbstractDSpaceTransformer implements
|
|||||||
{
|
{
|
||||||
BrowseInfo info = getBrowseInfo();
|
BrowseInfo info = getBrowseInfo();
|
||||||
|
|
||||||
// Get the name of the index
|
|
||||||
String type = info.getBrowseIndex().getName();
|
|
||||||
|
|
||||||
pageMeta.addMetadata("title").addContent(getTitleMessage(info));
|
pageMeta.addMetadata("title").addContent(getTitleMessage(info));
|
||||||
|
|
||||||
DSpaceObject dso = HandleUtil.obtainHandle(objectModel);
|
DSpaceObject dso = HandleUtil.obtainHandle(objectModel);
|
||||||
@@ -370,9 +367,6 @@ public class ConfigurableBrowse extends AbstractDSpaceTransformer implements
|
|||||||
private void addBrowseJumpNavigation(Division div, BrowseInfo info, BrowseParams params)
|
private void addBrowseJumpNavigation(Division div, BrowseInfo info, BrowseParams params)
|
||||||
throws WingException
|
throws WingException
|
||||||
{
|
{
|
||||||
// Get the name of the index
|
|
||||||
String type = info.getBrowseIndex().getName();
|
|
||||||
|
|
||||||
// Prepare a Map of query parameters required for all links
|
// Prepare a Map of query parameters required for all links
|
||||||
Map<String, String> queryParamsGET = new HashMap<String, String>();
|
Map<String, String> queryParamsGET = new HashMap<String, String>();
|
||||||
queryParamsGET.putAll(params.getCommonParametersEncoded());
|
queryParamsGET.putAll(params.getCommonParametersEncoded());
|
||||||
|
@@ -49,7 +49,6 @@ import org.dspace.app.xmlui.cocoon.AbstractDSpaceTransformer;
|
|||||||
import org.dspace.app.xmlui.utils.HandleUtil;
|
import org.dspace.app.xmlui.utils.HandleUtil;
|
||||||
import org.dspace.app.xmlui.utils.UIException;
|
import org.dspace.app.xmlui.utils.UIException;
|
||||||
import org.dspace.app.xmlui.wing.WingException;
|
import org.dspace.app.xmlui.wing.WingException;
|
||||||
import org.dspace.app.xmlui.wing.element.List;
|
|
||||||
import org.dspace.app.xmlui.wing.element.Options;
|
import org.dspace.app.xmlui.wing.element.Options;
|
||||||
import org.dspace.app.xmlui.wing.element.PageMeta;
|
import org.dspace.app.xmlui.wing.element.PageMeta;
|
||||||
import org.dspace.authorize.AuthorizeException;
|
import org.dspace.authorize.AuthorizeException;
|
||||||
@@ -99,7 +98,7 @@ public class Navigation extends AbstractDSpaceTransformer implements CacheablePr
|
|||||||
/* Create skeleton menu structure to ensure consistent order between aspects,
|
/* Create skeleton menu structure to ensure consistent order between aspects,
|
||||||
* even if they are never used
|
* even if they are never used
|
||||||
*/
|
*/
|
||||||
List browse = options.addList("browse");
|
options.addList("browse");
|
||||||
options.addList("account");
|
options.addList("account");
|
||||||
options.addList("context");
|
options.addList("context");
|
||||||
options.addList("administrative");
|
options.addList("administrative");
|
||||||
|
@@ -391,7 +391,6 @@ public class UploadStep extends AbstractSubmissionStep
|
|||||||
{
|
{
|
||||||
BitstreamFormat bitstreamFormat = bitstream.getFormat();
|
BitstreamFormat bitstreamFormat = bitstream.getFormat();
|
||||||
|
|
||||||
int id = item.getID();
|
|
||||||
String name = bitstream.getName();
|
String name = bitstream.getName();
|
||||||
String url = makeBitstreamLink(item, bitstream);
|
String url = makeBitstreamLink(item, bitstream);
|
||||||
String format = bitstreamFormat.getShortDescription();
|
String format = bitstreamFormat.getShortDescription();
|
||||||
|
@@ -50,7 +50,6 @@ import org.dspace.app.xmlui.cocoon.AbstractDSpaceTransformer;
|
|||||||
import org.dspace.app.xmlui.utils.HandleUtil;
|
import org.dspace.app.xmlui.utils.HandleUtil;
|
||||||
import org.dspace.app.xmlui.utils.UIException;
|
import org.dspace.app.xmlui.utils.UIException;
|
||||||
import org.dspace.app.xmlui.wing.WingException;
|
import org.dspace.app.xmlui.wing.WingException;
|
||||||
import org.dspace.app.xmlui.wing.element.List;
|
|
||||||
import org.dspace.app.xmlui.wing.element.Options;
|
import org.dspace.app.xmlui.wing.element.Options;
|
||||||
import org.dspace.app.xmlui.wing.element.PageMeta;
|
import org.dspace.app.xmlui.wing.element.PageMeta;
|
||||||
import org.dspace.authorize.AuthorizeException;
|
import org.dspace.authorize.AuthorizeException;
|
||||||
@@ -113,7 +112,7 @@ public class Navigation extends AbstractDSpaceTransformer implements CacheablePr
|
|||||||
/* Create skeleton menu structure to ensure consistent order between aspects,
|
/* Create skeleton menu structure to ensure consistent order between aspects,
|
||||||
* even if they are never used
|
* even if they are never used
|
||||||
*/
|
*/
|
||||||
List browse = options.addList("browse");
|
options.addList("browse");
|
||||||
options.addList("account");
|
options.addList("account");
|
||||||
options.addList("context");
|
options.addList("context");
|
||||||
options.addList("administrative");
|
options.addList("administrative");
|
||||||
|
@@ -120,7 +120,6 @@ public class DSpaceCocoonServletFilter implements Filter
|
|||||||
* Previous stages moved to shared ServletListener available in dspace-api
|
* Previous stages moved to shared ServletListener available in dspace-api
|
||||||
*/
|
*/
|
||||||
String dspaceConfig = null;
|
String dspaceConfig = null;
|
||||||
String log4jConfig = null;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Stage 1
|
* Stage 1
|
||||||
|
@@ -111,9 +111,6 @@ public class DSpaceOREGenerator extends AbstractGenerator
|
|||||||
|
|
||||||
private Item getItem(Context context) throws SQLException, CrosswalkException
|
private Item getItem(Context context) throws SQLException, CrosswalkException
|
||||||
{
|
{
|
||||||
Request request = ObjectModelHelper.getRequest(objectModel);
|
|
||||||
String contextPath = request.getContextPath();
|
|
||||||
|
|
||||||
// Determine the correct adatper to use for this item
|
// Determine the correct adatper to use for this item
|
||||||
String handle = parameters.getParameter("handle",null);
|
String handle = parameters.getParameter("handle",null);
|
||||||
String internal = parameters.getParameter("internal",null);
|
String internal = parameters.getParameter("internal",null);
|
||||||
|
@@ -290,14 +290,11 @@ public class OpenURLReader extends AbstractReader implements Recyclable {
|
|||||||
|
|
||||||
Enumeration<String> e = request.getParameterNames();
|
Enumeration<String> e = request.getParameterNames();
|
||||||
|
|
||||||
boolean error = true;
|
|
||||||
|
|
||||||
while (e.hasMoreElements()) {
|
while (e.hasMoreElements()) {
|
||||||
String name = e.nextElement();
|
String name = e.nextElement();
|
||||||
if (name.startsWith("rft.")) {
|
if (name.startsWith("rft.")) {
|
||||||
for (String value : request.getParameterValues(name)) {
|
for (String value : request.getParameterValues(name)) {
|
||||||
queryBuilder.append(value).append(" ");
|
queryBuilder.append(value).append(" ");
|
||||||
error = false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user