Hi all,

I'm working on DSpace 3.2 and I want to change 'Related Documents' 
functionality. Now when I open an item, below his metadata appears 
'Related Documents' where would have to show other items of actual 
item's author, but appears items of another authors. I have observed 
that if name or surname matchs with actual author's name or surname, 
DSpace shows wrong items. For example, if item's author called Jorge 
Perez Diaz and DSpace have another author called Marta Fernandez Perez, 
first surname of Jorge matchs with second surname of Marta, and DSpace 
shows Marta Fernandez Perez item in Related Documents of Jorge Perez 
Diaz item.

This file have the code of this functionality:

dspace-1.7.2-src-release/dspace-discovery/dspace-discovery-xmlui-api/src/main/java/org/dspace/app/xmlui/aspect/discovery/RelatedItems.java

I modified this method to solve this "error" but doesn't works fine:

@Override
public void performSearch(DSpaceObject dso) throws SearchServiceException {

if(queryResults != null)
{
return;
}

this.queryArgs = prepareDefaultFilters(getView());
this.queryArgs.setRows(1);
this.queryArgs.add("fl","dc.contributor.author,handle");
this.queryArgs.add("mlt","true");
this.queryArgs.add("mlt.fl","dc.contributor.author,handle");
this.queryArgs.add("mlt.mindf","1");
this.queryArgs.add("mlt.mintf","1");
this.queryArgs.setQuery("handle:" + dso.getHandle());
this.queryArgs.setRows(1);

queryResults = getSearchService().search(queryArgs);

}

Anyone can help me with this issue?

Thanks in advance

-- 
........................................................................

        __
       / /       Rubén Boada Navarrete
C E / S / C A   Tècnic de Portals i Repositoris
     /_/         Centre de Serveis Científics i Acadèmics de Catalunya

Gran Capità, 2-4 (Edifici Nexus) • 08034 Barcelona
T. 93 205 6464 (ext. 302) • F. 93 551 62 13 • rbo...@cesca.cat
Subscriu-te al butlletí (www.cesca.cat/butlleti)
........................................................................


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to