mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-18 07:23:08 +00:00
Single Item Filtering corrected.
This commit is contained in:
@@ -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())
|
||||||
|
@@ -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;
|
||||||
|
Reference in New Issue
Block a user