Unfortunately, this area is not as configurable as it could be…  but if you have time to make some changes to improve the situation, I would be happy to incorporate them into a future release of VuFind.

 

Here is how it currently works:

 

1.)    web/services/Search/Home.php calls initAdvancedFacets() on the SearchObject to obtain facet information based on the [Advanced] section of web/conf/facets.ini.  (You can find the initAdvancedFacets method in web/sys/SearchObject/Solr.php).

2.)    Advanced facet information is then assigned to the facetList template variable.

3.)    The facetList variable is displayed by web/interface/themes/default/Search/home.tpl.  This is currently designed to work only for three or four columns, and it includes a special case to make call number two columns wide.  This would definitely be improved by better generalization!

 

I can’t think why editing facets.ini and clearing your cache would not have caused a change to the homepage facets…  but you should be able to do some debugging in this chain of code to figure out where things are coming from.

 

For long-term improvement, it would make sense to add an initHomepageFacets() method to the SearchObject that allows separate configuration of the homepage facets vs. the advanced facets.  It would also be helpful to make the home template smarter about displaying an arbitrary number of facets.  As I said, if you want to try to make any of these improvements, I’m happy to answer questions along the way.  If you don’t have time to do it yourself, feel free to open a ticket in JIRA and vote on it (http://vufind.org/jira) as a reminder that we should make this improvement in the future.

 

- Demian

 

From: Dinesh Ranjan**ଦିନେଶ୍ ରଂଜନ୍** [mailto:ranjan.dinesh@gmail.com]
Sent: Thursday, October 28, 2010 1:02 AM
To: Demian Katz
Cc: vufind-general@lists.sourceforge.net
Subject: Re: [VuFind-General] Changing the Browse by Call Number option available on homepage

 

Thanks Demian for your suggestion. But still I am not able to view the changes.
Is there any other file which controls the display of these facets on home page. I also want to change the facets displayed. Presently it only shows the call number, language & format. How to add more facets to it.


On Wed, Oct 27, 2010 at 6:42 PM, Demian Katz <demian.katz@villanova.edu> wrote:

The home page browse options are currently controlled by the same setting as the Advanced Search facets…  so to make the change, just edit web/conf/facets.ini and change the “callnumber-first” setting in the [Advanced] section to “dewey-hundreds.”  Because the home page is cached, you may also need to delete the contents of web/interface/cache before you will see the change take effect.

 

- Demian

 

From: Dinesh Ranjan**ଦିନେଶ୍ ରଂଜନ୍** [mailto:ranjan.dinesh@gmail.com]
Sent: Wednesday, October 27, 2010 4:07 AM
To: vufind-general@lists.sourceforge.net
Subject: [VuFind-General] Changing the Browse by Call Number option available on homepage

 

I have installed Vufind and imported some records into it.
On the browse catalogue option I have changed my browsing option and able to browse through the DDC class numbers.
Now I want to change the default browse options available on the home page (Browse by Call Number, By Language & By format). Presently its displaying the browsing option by basic classes of LC. How can I change it to the 10/100 basic classes of DDC.

Thanks & Regards,

Dinesh