mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
(Scott Phillips) SF#1896110 - Long metadata fields cause problems in the workflow task/pool submission system. Added protection for these cases.
git-svn-id: http://scm.dspace.org/svn/repo/branches/dspace-1_5_x@2718 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -253,7 +253,7 @@ public class UploadStep extends AbstractProcessingStep
|
||||
// -----------------------------------
|
||||
String contentType = request.getContentType();
|
||||
|
||||
if (buttonPressed.equalsIgnoreCase(SUBMIT_UPLOAD_BUTTON))
|
||||
if (buttonPressed.equalsIgnoreCase(SUBMIT_UPLOAD_BUTTON) || buttonPressed.equalsIgnoreCase(NEXT_BUTTON))
|
||||
{
|
||||
// if multipart form, then we are uploading a file
|
||||
if ((contentType != null)
|
||||
|
@@ -265,7 +265,12 @@ public class Submissions extends AbstractDSpaceTransformer
|
||||
|
||||
// The item description
|
||||
if (titles != null && titles.length > 0)
|
||||
row.addCell().addXref(url,titles[0].value);
|
||||
{
|
||||
String displayTitle = titles[0].value;
|
||||
if (displayTitle.length() > 50)
|
||||
displayTitle = displayTitle.substring(0,50)+ " ...";
|
||||
row.addCell().addXref(url,displayTitle);
|
||||
}
|
||||
else
|
||||
row.addCell().addXref(url,T_untitled);
|
||||
|
||||
@@ -329,7 +334,13 @@ public class Submissions extends AbstractDSpaceTransformer
|
||||
|
||||
// The item description
|
||||
if (titles != null && titles.length > 0)
|
||||
row.addCell().addXref(url,titles[0].value);
|
||||
{
|
||||
String displayTitle = titles[0].value;
|
||||
if (displayTitle.length() > 50)
|
||||
displayTitle = displayTitle.substring(0,50)+ " ...";
|
||||
|
||||
row.addCell().addXref(url,displayTitle);
|
||||
}
|
||||
else
|
||||
row.addCell().addXref(url,T_untitled);
|
||||
|
||||
@@ -436,7 +447,12 @@ public class Submissions extends AbstractDSpaceTransformer
|
||||
remove.addOption(workspaceItemID);
|
||||
|
||||
if (titles.length > 0)
|
||||
row.addCell().addXref(url,titles[0].value);
|
||||
{
|
||||
String displayTitle = titles[0].value;
|
||||
if (displayTitle.length() > 50)
|
||||
displayTitle = displayTitle.substring(0,50)+ " ...";
|
||||
row.addCell().addXref(url,displayTitle);
|
||||
}
|
||||
else
|
||||
row.addCell().addXref(url,T_untitled);
|
||||
row.addCell().addXref(url,collectionName);
|
||||
@@ -529,7 +545,12 @@ public class Submissions extends AbstractDSpaceTransformer
|
||||
|
||||
// Add the title column
|
||||
if (titles.length > 0)
|
||||
{
|
||||
String displayTitle = titles[0].value;
|
||||
if (displayTitle.length() > 50)
|
||||
displayTitle = displayTitle.substring(0,50)+ " ...";
|
||||
row.addCellContent(titles[0].value);
|
||||
}
|
||||
else
|
||||
row.addCellContent(T_untitled);
|
||||
|
||||
|
Reference in New Issue
Block a user