mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
Single Item Filtering corrected.
This commit is contained in:
@@ -105,7 +105,7 @@ public class DSpaceAtLeastOneMetadataFilter extends DSpaceFilter
|
||||
{
|
||||
if (this.getField() == null)
|
||||
return true;
|
||||
List<String> values = item.getMetadata(this.getField()+".*");
|
||||
List<String> values = item.getMetadata(this.getField());
|
||||
for (String praticalValue : values)
|
||||
{
|
||||
for (String theoreticValue : this.getValues())
|
||||
|
@@ -59,7 +59,7 @@ public class DSpaceMetadataExistsFilter extends DSpaceFilter
|
||||
@Override
|
||||
public boolean isShown(DSpaceDatabaseItem item)
|
||||
{
|
||||
if (item.getMetadata(this.getField()+".*").size() > 0)
|
||||
if (item.getMetadata(this.getField()).size() > 0)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user