I want to change dc.date.issued by dc.date but I don't work (in discovery.xml). We have DSPACE 3.1 with JSPUI interface.

1. 
        <property name="sidebarFacets">
            <list>
                <ref bean="searchFilterAuthor" />
                <ref bean="searchFilterSubject" />
                <ref bean="searchFilterDate" />
            </list>
        </property>

2. 
        <property name="searchFilters">
            <list>
                <ref bean="searchFilterTitle" />
                <ref bean="searchFilterAuthor" />
                <ref bean="searchFilterSubject" />
                <ref bean="searchFilterDate" />
            </list>
        </property>

3. 
                <property name="sortFields">
                    <list>
                        <ref bean="sortTitle" />
                        <ref bean="sortDate" />
                    </list>
                </property>

4.
    <bean id="searchFilterDate" class="org.dspace.discovery.configuration.DiscoverySearchFilterFacet">
        <property name="indexFieldName" value="date"/>
        <property name="metadataFields">
            <list>
                <value>dc.date</value>
            </list>
        </property>
        <property name="type" value="date"/>
        <property name="sortOrder" value="VALUE"/>
    </bean>

5.
    <bean id="sortDate" class="org.dspace.discovery.configuration.DiscoverySortFieldConfiguration">
        <property name="metadataField" value="dc.date"/>
        <property name="type" value="date"/>
    </bean>

In discovery.cfg we changed: index.projection=dc.title,dc.contributor.*,dc.date

Then we running "update-discovery-index -b" and then restart tomcat.

But still appear in the interface "dc.date.issued" dates.


Regards,


Walter Blandón
EAFIT University

-------- Mensaje original --------
De: Jose Blanco <[email protected]>
Fecha: 08-mar-13 11:41:37
Asunto: [Dspace-tech] adding a new filter to discovery.
Para: Dspace-Tech <[email protected]>

I'm trying to add a new filter to discovery, but have had no luck.  Well, somoe luck, it shows up on the page, but when I apply it, it tells me I have no results, when I know there are restults.  THis is what I have done.  I have added the following to config/spring/api/discovery.xml.  The new filter is the searchFilterPeer

            <list>
                <ref bean="searchFilterTitle" />
                <ref bean="searchFilterAuthor" />
                <ref bean="searchFilterSubject" />
                <ref bean="searchFilterIssued" />
                <ref bean="searchFilterPeer" />   <== this is the new one
            </list>

AND

    <bean id="searchFilterPeer" class="org.dspace.discovery.configuration.DiscoverySearchFilter">
        <property name="indexFieldName" value="peer"/>
        <property name="metadataFields">
            <list>
                <value>dc.description.peerreviewed</value>
            </list>
        </property>
    </bean>

I have redeployed the webapp app and /solr, and even restarted tomcat.  I have also run:

 ./dspace update-discovery-index

What else do I need to do?  I just chose the name "peer" for the indexFiledName.  and not sure if org.dspace.discovery.configuration.DiscoverySearchFilte is right. Just trying to emulate what is there already.

Any documentation on how to do this?

Very frustrated,
Jose



--
Walter Blandón
Analista Técnico
Centro Cultural Biblioteca "Luis Echavarría Villegas"
Tel: (57) (4) 2619500, extensión 9365
E-mail: [email protected]
Universidad EAFIT, Medellín, Colombia
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
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