[ 
https://jira.duraspace.org/browse/DS-1068?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=22993#comment-22993
 ] 

Scott Phillips commented on DS-1068:
------------------------------------

Here is a patch:

Index: dspace/dspace-api/src/main/java/org/dspace/browse/IndexBrowse.java
===================================================================
--- dspace/dspace-api/src/main/java/org/dspace/browse/IndexBrowse.java  
(revision 5439)
+++ dspace/dspace-api/src/main/java/org/dspace/browse/IndexBrowse.java  
(working copy)
@@ -564,6 +564,9 @@
                 {
                     String nValue = OrderFormat.makeSortString(value.value, 
value.language, so.getType());
                     sortMap.put(key, nValue);
+                } else {
+                       // Add an empty entry to clear out any old values in 
the sort columns.
+                       sortMap.put(key, null);
                 }
             }
             

                
> Removing a metadata field from an item does not update the browse sorting 
> indexes.
> ----------------------------------------------------------------------------------
>
>                 Key: DS-1068
>                 URL: https://jira.duraspace.org/browse/DS-1068
>             Project: DSpace
>          Issue Type: Bug
>    Affects Versions: 1.6.0, 1.6.1, 1.6.2, 1.7.0, 1.7.1, 1.7.2
>            Reporter: Scott Phillips
>            Assignee: Scott Phillips
>            Priority: Trivial
>             Fix For: post-1.8.0
>
>
> For example, if you edit the most recently submitted item to remove it's 
> date.accessioned the item will still appear at the top of the recent 
> submission browse index.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.duraspace.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to