mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
DS-419, fix array exception for unqualified metadata field specified
git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@4634 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -391,24 +391,24 @@ public class EmbargoManager
|
||||
}
|
||||
}
|
||||
|
||||
// return the schema part of "schema.element.qualifier" metadata field
|
||||
// return the schema part of "schema.element.qualifier" metadata field spec
|
||||
private static String getSchemaOf(String field)
|
||||
{
|
||||
String sa[] = field.split("\\.", 3);
|
||||
return sa[0];
|
||||
}
|
||||
|
||||
// return the schema part of "schema.element.qualifier" metadata field
|
||||
// return the element part of "schema.element.qualifier" metadata field spec, if any
|
||||
private static String getElementOf(String field)
|
||||
{
|
||||
String sa[] = field.split("\\.", 3);
|
||||
return sa.length > 0 ? sa[1] : null;
|
||||
return sa.length > 1 ? sa[1] : null;
|
||||
}
|
||||
|
||||
// return the schema part of "schema.element.qualifier" metadata field
|
||||
// return the qualifier part of "schema.element.qualifier" metadata field spec, if any
|
||||
private static String getQualifierOf(String field)
|
||||
{
|
||||
String sa[] = field.split("\\.", 3);
|
||||
return sa.length > 1 ? sa[2] : null;
|
||||
return sa.length > 2 ? sa[2] : null;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user