Hi Miguel: On Wed, 10 Dec 2008, Miguel Moreira wrote: > It is mentioned in the function create_search_box() of > search_engine.py, but not actually employed.
You can set it to 1 in the following way: $ perl -pi -e 's,cfg_nicely_ordered_collection_list = 0,\ cfg_nicely_ordered_collection_list = 1,g' search_engine.py and it will be employed after an Apache restart. > Do you have plans to make it effective? You can use it after the above perl hack. The variable is part of the `older' stuff (together with the search cache) that we have not fully reactivated yet. We can do that, of course, and create a nice CFG_WEBSEARCH_* variables for your `invenio-local.conf'. *takes note* > Also, when create_search_box() calls the function > get_nicely_ordered_collection_list() it does not pass the "collid" > parameter. This defaults to including all the collections in the > "Search collections:" popup menu, instead of only the children of the > current collection, as would be more appropriate. Actually, the `Search collections:' menu is supposed to enable users to switch collections completely freely - i.e. it should allow a user to select a collection living outside of the scope of the original search. So the menu includes all collections, not only the subcollections of the given original collection. Best regards -- Tibor Simko ** CERN Document Server ** <http://cds.cern.ch/>
