Hi Johanne:
You might need to add “<ref bean="searchFilterDescriptionJournal" />” to the
“searchFilters” under the “defaultConfiguration” as well.
I think it’s a bug, but I’ve noticed that I can only get custom facets to show
up in non-default configurations, if I have the bean referenced in the
defaultConfiguration searchFilters.
Try following my suggestion, then “index-discovery –b”, then restart your
servlet container (Tomcat,Jetty,etc).
I bet you that does the trick ;).
David Cook
Systems Librarian
Prosentient Systems
72/330 Wattle St, Ultimo, NSW 2007
From: Terry Brady [mailto:terry.br...@georgetown.edu]
Sent: Thursday, 4 September 2014 5:36 AM
To: Johanne Crête
Cc: dspace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] DSPACE: (discovery) Is it possible to show a
specific sidebarFacets for a specific collection?
Your approach should work.
After making the change, did you restart DSpace and rebuild your discovery
index?
Once you are able to see the new facets, you will also need to update your
messages.xml with the name of your facet.
<message
key="xmlui.Discovery.AbstractSearch.type_descriptionJournal"></message>
<message
key="xmlui.ArtifactBrowser.AdvancedSearch.type_descriptionJournal"></message>
<message
key="xmlui.ArtifactBrowser.SimpleSearch.filter.descriptionJournal"></message>
Terry
On Wed, Sep 3, 2014 at 11:49 AM, Johanne Crête <johanne.cr...@usherbrooke.ca
<mailto:johanne.cr...@usherbrooke.ca> > wrote:
I am using DSpace 4.1 and I want to show a specific sidebarFacets for a
specific collection. I try to do this by adding a new
"org.dspace.discovery.configuration.DiscoveryConfiguration" in discovery.xml.
And a new entry key for the specific collection. But, I don't see this
sidebarFacets. There is another solution to do this?
DISCOVERY.XML
----------------------
<bean id="org.dspace.discovery.configuration.DiscoveryConfigurationService"
class="org.dspace.discovery.configuration.DiscoveryConfigurationService">
<property name="map">
<map>
<!--The map containing all the settings,
the key is used to refer to the page (the "site" or a
community/collection handle)
the value-ref is a reference to an identifier of the
DiscoveryConfiguration format
-->
<!--The default entry, DO NOT REMOVE the system requires this-->
<entry key="default" value-ref="defaultConfiguration" />
<!--Use site to override the default configuration for the home
page & default discovery page-->
<entry key="site" value-ref="homepageConfiguration" />
<entry key="11143/5375" value-ref="EdusConfiguration"/>
</map>
.... ….
<bean id="EdusConfiguration"
class="org.dspace.discovery.configuration.DiscoveryConfiguration"
scope="prototype">
<!--Which sidebar facets are to be displayed-->
<property name="sidebarFacets">
<list>
<ref bean="searchFilterAuthor" />
<ref bean="searchFilterSubject" />
<ref bean="searchFilterIssued" />
<ref bean="searchFilterType" />
<ref bean="searchFilterDescriptionJournal" />
</list>
</property>
<!--The search filters which can be used on the discovery search page-->
<property name="searchFilters">
<list>
<ref bean="searchFilterTitle" />
<ref bean="searchFilterAuthor" />
<ref bean="searchFilterSubject" />
<ref bean="searchFilterIssued" />
<ref bean="searchFilterType" />
<ref bean="searchFilterDescriptionJournal" />
</list>
</property>
.... ….
<bean id="searchFilterDescriptionJournal"
class="org.dspace.discovery.configuration.DiscoverySearchFilterFacet">
<property name="indexFieldName" value="descriptionJournal"/>
<property name="metadataFields">
<list>
<value>dc.description.journal</value>
</list>
</property>
<property name="facetLimit" value="10"/>
<property name="sortOrder" value="COUNT"/>
<property name="type" value="text"/>
</bean>
...
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net <mailto:DSpace-tech@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
--
Terry Brady
Applications Programmer Analyst
Georgetown University Library Information Technology
https://www.library.georgetown.edu/lit/code
425-298-5498
------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce.
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&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