Re: [Dspace-tech] Metadata appearing twice

2010-08-06 Thread Koushik Banerjee
Hi Allen, Thanks for all the help. I implemented your logic and fixed the issue. I wrote a java program to first execute the query myquery=select distinct m1.metadata_value_id,m2.metadata_value_id,m1.item_id,m2.item_id from metadatavalue m1, metadatavalue m2 where m1.item_id=m2.item_id and

Re: [Dspace-tech] Metadata appearing twice

2010-08-04 Thread Allen Lam
Hi Koushik, I usually like to separate queries of inspecting data from queries of deleting data, for the sake of playing safe. Try this. select distinct * from metadatavalue m1, metadatavalue m2 where m1.item_id=m2.item_id and m1.metadata_field_id=m2.metadata_field_id and

Re: [Dspace-tech] Metadata appearing twice

2010-08-03 Thread Koushik Banerjee
Hello Allen, Thanks a lot for the guide. Here is what further investigation has unearthed - 1 This duplicate metadata issue doesn't occur with new submissions. For this installation, the DB was copied from an earlier version. It is only with these old items that the duplicate metadata entries show

Re: [Dspace-tech] Metadata appearing twice

2010-08-03 Thread Koushik Banerjee
Probably this sql command will do the job - delete from metadatavalue where metadata_value_id not in (select min(metadata_value_id) from metadatavalue T2 where T2.item_id=metadatavalue.item_id AND T2.metadata_field_id=metadatavalue.metadata_field_id AND T2.text_value=metadatavalue.text_value);

Re: [Dspace-tech] Metadata appearing twice

2010-07-29 Thread Koushik Banerjee
The same thing happens in both JSPUI and XMLUI. I guess that means the problem is not at the UI layer but something deeper. The Browse or Handle servlets? This dual-display happens while viewing a particular item i.e. url like [host]/[dspace or xmlui]/handle/number1/number2 also the author names

Re: [Dspace-tech] Metadata appearing twice

2010-07-29 Thread Allen Lam
Hi Koushik, First try to make sure there is no duplication in the database. Go into the Edit item page to check. If the problem is not with the db, it may be caused by incorrect indexing. There could be some errors in your config file. Without extra information it is only a wild guess. But

Re: [Dspace-tech] Metadata appearing twice

2010-07-29 Thread Koushik Banerjee
Thanks Allen. I checked the edit item page. That also has duplicate entries i.e. two dc.contributor.author, two dc.date.issued fields etc which can be edited. Does it mean that the database itself is wrong? In that case, how do I get rid of this problem? Thanks On Thu, Jul 29, 2010 at 1:30 PM,

Re: [Dspace-tech] Metadata appearing twice

2010-07-29 Thread Allen Lam
Hi Koushik, The immediate task is to find out why there are duplicate entries in the db, and stop creating duplication again. I don't know your installation or customization history, so this is a wild guess again. There could be some errors made in your item submission form. Check the item