Dear Nada,

4. Location of messages.xml should be in your xmlui webapp, check if you 
are copying your webapps to tomcat/webapps or you've set tomcat to look 
in dspace/webapps:
.../tomcat/webapps/xmlui/i18n/messages.xml
.../dspace/webapps/xmlui/i18n/messages.xml

Vladimir Tomić
Software Architect

RCUB
University of Belgrade Computer Center
Kumanovska 7, 126119 Belgrade
Serbia

On 2014-12-10 12:06, Vladimir Tomić wrote:
> Dear Nada,
>
> We've successfully added dc.publisher field as a sidebar facet and 
> search filter.
>
> 1. OK (You should have four new lines in discovery.xml, sidebar facet 
> and search filter for both configurations)
>
> 2. OK
>
> 3. We've skipped this step, it may be just legacy support
>
> 4. One key is SimpleSearch, but one is AdvancedSearch:
> <message 
> key="xmlui.ArtifactBrowser.AdvancedSearch.type_publisher">Publisher</message>
> <message 
> key="xmlui.ArtifactBrowser.SimpleSearch.filter.publisher">Publisher</message>
>
> 5. OK
>
> Another restart of tomcat might help. Also, if none of your items have 
> dc.type set, then "Type" is not rendered.
>
> Vladimir Tomić
> Software Architect
>
> RCUB
> University of Belgrade Computer Center
> Kumanovska 7, 126119 Belgrade
> Serbia
>
> On 2014-12-10 11:30, Nada Abo-Eita wrote:
>>
>> Dear DSpace community,
>>
>> I am trying to add Item type (dc.type) to be one of the discover 
>> sidebar facets and search filters.
>> So far I did the following:
>>
>> 1- Edit discovery.xml by adding <ref bean="searchFilterType" /> to 
>> both _sidebar facets_ and _search filters_. I did that under the 
>> default configuration and homepage specific configuration for discovery.
>>
>> 2- Also I define the search filter bean in discovery.xml
>>
>> <bean id="searchFilterType" 
>> class="org.dspace.discovery.configuration.DiscoverySearchFilterFacet">
>>         <property name="indexFieldName" value="type"/>
>>         <property name="metadataFields">
>>             <list>
>>                 <value>dc.type</value>
>>             </list>
>>         </property>
>>         <property name="facetLimit" value="10"/>
>>         <property name="sortOrder" value="COUNT"/>
>>     </bean>
>>
>> 3- add webui.browse.index.5=type:metadata:dc.type:text to dspace.cfg 
>> file.
>>
>> 4- Edit 
>> the*/webapps/xmlui/WEB-INF/classes/aspects/Discovery/i18n/messages.xml,* 
>> by adding:
>>
>> <message 
>> key="xmlui.ArtifactBrowser.SimpleSearch.filter.type">Type</message>
>>     <message 
>> key="xmlui.ArtifactBrowser.SimpleSearch.filter.type_filter">Type</message>
>>
>> 5- Then clear cocoon cache, restart tomcat and run ./dspace 
>> index-discovery -b.
>>
>> After doing above steps, TYPE option appears only in the "browse by" 
>> navigation, but It doesn't appear as a discover sidebar facets/search 
>> filters.
>>
>> Can you help me figuring out What missing here?
>>
>> Regards,
>>
>> Nada Abo-Eita
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>>  
>>
>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>> with Interactivity, Sharing, Native Excel Exports, App Integration & 
>> more
>> Get technology previously reserved for billion-dollar corporations, FREE
>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk 
>>
>>
>>
>> _______________________________________________
>> 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
>


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
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