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 <[email protected]
> 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
> [email protected]
> 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
------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to