mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-14 13:33:08 +00:00
[DS-707] Style / readability improvements
git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@5565 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -636,7 +636,9 @@ public class Item extends DSpaceObject
|
||||
addMetadata(schema, element, qualifier, lang, values, authorities, confidences);
|
||||
}
|
||||
else
|
||||
{
|
||||
addMetadata(schema, element, qualifier, lang, values, null, null);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1632,11 +1634,17 @@ public class Item extends DSpaceObject
|
||||
{
|
||||
String text = tr.getStringColumn("text_value");
|
||||
if (dcv.value == null && text == null)
|
||||
{
|
||||
matched = true;
|
||||
}
|
||||
else if (dcv.value != null && dcv.value.equals(text))
|
||||
{
|
||||
matched = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
matched = false;
|
||||
}
|
||||
}
|
||||
|
||||
// Check the language is the same
|
||||
@@ -1644,11 +1652,17 @@ public class Item extends DSpaceObject
|
||||
{
|
||||
String lang = tr.getStringColumn("text_lang");
|
||||
if (dcv.language == null && lang == null)
|
||||
{
|
||||
matched = true;
|
||||
}
|
||||
else if (dcv.language != null && dcv.language.equals(lang))
|
||||
{
|
||||
matched = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
matched = false;
|
||||
}
|
||||
}
|
||||
|
||||
// check that authority and confidence match
|
||||
|
Reference in New Issue
Block a user