mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-14 05:23:14 +00:00
DS-2529 CSV import bugfix for fields under authority control with a language
This commit is contained in:

committed by
Hardy Pottinger

parent
0e9f78e9df
commit
d011e24f74
@@ -1169,10 +1169,8 @@ public class MetadataImport
|
|||||||
*/
|
*/
|
||||||
private static boolean isAuthorityControlledField(String md)
|
private static boolean isAuthorityControlledField(String md)
|
||||||
{
|
{
|
||||||
int pos = md.indexOf("[");
|
String mdf = StringUtils.substringAfter(md, ":");
|
||||||
String mdf = (pos > -1 ? md.substring(0, pos) : md);
|
mdf = StringUtils.substringBefore(mdf, "[");
|
||||||
pos = md.indexOf(":");
|
|
||||||
mdf = (pos > -1 ? md.substring(pos+1) : md);
|
|
||||||
return authorityControlled.contains(mdf);
|
return authorityControlled.contains(mdf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user