Hello Samuele, > In data venerdì 21 maggio 2010 13:51:59, Magda Alemany ha scritto: >> We want to know if it's possible to define a regular collection not >> checked as true by default in the search interface. The purpose is to >> define a collection not searchable by default. > > actually a full regular collection (i.e. reachable by just "narrowing" > through the left side of the collection lists), is always searchable > by default unless it's restricted. > > If you want to make it not searchable by default you must set it as > virtual (and should therefore appear on the right side, under "Focus > On").
Yes, but if the records are only on a virtual (right side) collection and not in any regular collection, they are not searchable or «navigable» (sorry for the word), because they are not part of the whole site tree. What we would like to accomplish is to add to http://traces.uab.cat/ a «secondary» collection of records that are somewhat related to the primary site subject (Catalan language and literature) but we prefer this collection not to be checked by default. We would like the html search form attribute «checked» not to be checked by default. In 0.99.1, I've traced the code to be here: http://cdsware.cern.ch/repo/?p=cds-invenio.git;a=blob;f=modules/websearch/lib/websearch_templates.py;h=81296ea58623988d44c46467af0556a7559fba67;hb=c99ca13c8537a12a841b4850d0b573d4ae7a80d7#l1212 I could add a hack in line 1220 to add this extra collection as condition, but we wanted to know if there was a more general solution. Do you have any suggestion? Ferran
