From f87eb0ba8c41be422204a8efcb2d602c1552ecef Mon Sep 17 00:00:00 2001 From: Andrea Bollini Date: Sun, 17 Oct 2010 14:03:31 +0000 Subject: [PATCH] [DS-637] Browse index bug/fix ONLY for authority index: first "too low" confidence value stop current item metadata to be indexed in the autority index git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@5440 9c30dcfa-912a-0410-8fc2-9e0234be79fd --- .../src/main/java/org/dspace/browse/IndexBrowse.java | 7 ++++--- dspace/CHANGES | 3 +++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/dspace-api/src/main/java/org/dspace/browse/IndexBrowse.java b/dspace-api/src/main/java/org/dspace/browse/IndexBrowse.java index 7da76d78f0..f0f0239ae8 100644 --- a/dspace-api/src/main/java/org/dspace/browse/IndexBrowse.java +++ b/dspace-api/src/main/java/org/dspace/browse/IndexBrowse.java @@ -445,9 +445,10 @@ public class IndexBrowse if (bis[i].isAuthorityIndex() && (values[x].authority == null || values[x].confidence < minConfidence)) { - // if we have an authority index only authored metadata will go here! - log.debug("Skipping item="+item.getID()+", field="+values[x].schema+"."+values[x].element+"."+values[x].qualifier+", value="+values[x].value+", authority="+values[x].authority+", confidence="+values[x].confidence+" (BAD AUTHORITY)"); - break; + // skip to next value in this authority field if value is not authoritative + log.debug("Skipping non-authoritative value: "+item.getID()+", field="+values[x].schema+"."+values[x].element+"."+values[x].qualifier+", value="+values[x].value+", authority="+values[x].authority+", confidence="+values[x].confidence+" (BAD AUTHORITY)"); + continue; + } // is there any valid (with appropriate confidence) authority key? diff --git a/dspace/CHANGES b/dspace/CHANGES index 39a4356cfc..421535415d 100644 --- a/dspace/CHANGES +++ b/dspace/CHANGES @@ -1,5 +1,8 @@ 1.7.0 ===== +(Reinhard Engels) +- [DS-637] Browse index bug/fix ONLY for authority index: first "too low" confidence value stop current item metadata to be indexed in the autority index + (Hardy Pottinger) - [DS-691] File size math in the mets:file template in General-Hander.xsl (XMLUI) is incorrect