Single Item Filtering corrected.

This commit is contained in:
Lyncode
2012-09-13 18:52:32 +01:00
parent 7bc92a81ca
commit 85a5d8daab
2 changed files with 2 additions and 2 deletions

View File

@@ -105,7 +105,7 @@ public class DSpaceAtLeastOneMetadataFilter extends DSpaceFilter
{ {
if (this.getField() == null) if (this.getField() == null)
return true; return true;
List<String> values = item.getMetadata(this.getField()+".*"); List<String> values = item.getMetadata(this.getField());
for (String praticalValue : values) for (String praticalValue : values)
{ {
for (String theoreticValue : this.getValues()) for (String theoreticValue : this.getValues())

View File

@@ -59,7 +59,7 @@ public class DSpaceMetadataExistsFilter extends DSpaceFilter
@Override @Override
public boolean isShown(DSpaceDatabaseItem item) public boolean isShown(DSpaceDatabaseItem item)
{ {
if (item.getMetadata(this.getField()+".*").size() > 0) if (item.getMetadata(this.getField()).size() > 0)
return true; return true;
return false; return false;