我想添加“教育水平”->[dcterms.educationlevel] 作为侧边栏方面和搜索过滤器。我做了所有的事情->将以下代码片段添加到“discovery.xml”->
<bean id="educationLevel" class="org.dspace.discovery.configuration.DiscoverySearchFilterFacet">
<property name="indexFieldName" value="educationlevel"/>
<property name="metadataFields">
<list>
<value>dcterms.educationlevel</value>
</list>
</property>
<property name="type" value="text"/>
<property name="sortOrder" value="VALUE"/>
</bean>
并添加以下行
<ref bean="educationLevel" />
到以下区域(在“discovery.xml”中)
<!--The default configuration settings for discovery-->
<bean id="defaultConfiguration" class="org.dspace.discovery.configuration.DiscoveryConfiguration" scope="prototype">
<!--Which sidebar facets are to be displayed-->
<property name="sidebarFacets">
<list>
<ref bean="searchFilterAuthor" />
<ref bean="searchFilterType" />
<ref bean="searchFilterSubject" />
<ref bean="searchFilterIssued" />
<ref bean="searchFilterMIMEType" />
<ref bean="searchFilterLanguage" />
<ref bean="searchFilterSourceOrganization" />
<ref bean="typeOfLearningMaterial" />
<ref bean="difficultyLevel" />
**<ref bean="educationLevel" />**
</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="searchFilterType" />
<ref bean="searchFilterSubject" />
<ref bean="searchFilterIssued" />
<ref bean="searchFilterMIMEType" />
<ref bean="searchFilterLanguage" />
<ref bean="searchFilterSourceOrganization" />
<ref bean="typeOfLearningMaterial" />
<ref bean="difficultyLevel" />
**<ref bean="educationLevel" />**
</list>
</property>
并在下面提到的区域中添加,
<bean id="homepageConfiguration" class="org.dspace.discovery.configuration.DiscoveryConfiguration" scope="prototype">
并添加该行
search.index.15 = educationlevel:dcterms.educationlevel
在“[dspace-install]/config/dspace.cfg”文件中
并添加该行
<message key="xmlui.ArtifactBrowser.SimpleSearch.filter.educationlevel">Education Level</message>
在文件中-> [dspace-install]/webapps/xmlui/i18n/messages.xml
但它没有出现在侧边栏方面,请帮忙。