From d68a9212c4f5477fd1fd8aef52e09528f6e3c680 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Ko=C5=A1arko?= Date: Tue, 28 Apr 2015 11:01:14 +0200 Subject: [PATCH] our hidden items are not discoverable --- dspace-api/src/main/java/org/dspace/content/Item.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dspace-api/src/main/java/org/dspace/content/Item.java b/dspace-api/src/main/java/org/dspace/content/Item.java index 8f3b179e63f8..7af1b8e7c781 100644 --- a/dspace-api/src/main/java/org/dspace/content/Item.java +++ b/dspace-api/src/main/java/org/dspace/content/Item.java @@ -386,7 +386,7 @@ public boolean isWithdrawn() */ public boolean isDiscoverable() { - return itemRow.getBooleanColumn("discoverable"); + return itemRow.getBooleanColumn("discoverable") && !this.isHidden(); } /**