Dear Serhiy Polyakov,

Adding the collections to the advanced search box is not that hard. Just go
to the AbstractSearch.java class to the method "buildscopelist" and change
the code below.

for (Community community : Community.findAll(context))
{

scope.addOption(community.getHandle(),community.getMetadata("name"));
}

into

for (Community community : Community.findAll(context))
 {
 scope.addOption(community.getHandle(),community.getMetadata("name"));
            for (int i = 0; i < community.getCollections().length; i++) {
Collection collection = community.getCollections()[i];
scope.addOption(collection.getHandle(),collection.getMetadata("name"));
}
}
This will however list these collections in the simple search as well.

best regards,
-- 
Kevin Van de Velde
@mire NV
B-3001 Leuven, Belgium
http://atmire.com/consultancy.php - DSpace maintenance, support and custom
development


2008/11/7 Serhiy Polyakov <[EMAIL PROTECTED]>

> Hi,
>
> I use DSpace 1.5.1, xmlui interface
>
> How to change scope in Advanced Search so that it lists not only top
> level Communities but also Collections. If not possible, how to remove
> that top box that controls scope?
>
> Thanks,
> Serhiy
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to