Conditional in the discovery.xml file

17 views
Skip to first unread message

jvl.vil...@gmail.com

unread,
Mar 1, 2021, 8:05:03 PM3/1/21
to DSpace Technical Support
Is it possible to indicate a conditional when defining an index in the discovery.xml file?

I mean:
In the "list" section under "<value> dc.contributor.author </value>" I want to add the index of the "dc.coverage.temporal" field only if the content of the "dcterms.conformsTo" field is equal to the word "trademark"

    <bean id="searchFilterAuthor" class="org.dspace.discovery.configuration.DiscoverySearchFilterFacet">
        <property name="indexFieldName" value="author"/>
        <property name="metadataFields">
            <list>
                <value>dc.contributor.author</value>

<!-------------------------------            -->
<!-- HERE ADD NEW INDEX  -->
<!-------------------------------            -->

            </list>
        </property>
        <property name="facetLimit" value="10"/>
        <property name="sortOrderSidebar" value="COUNT"/>
        <property name="sortOrderFilterPage" value="COUNT"/>
    </bean>

thanks a lot
José
Reply all
Reply to author
Forward
0 new messages