Hi Don, On 4 October 2016 at 07:45, Donald Bynum <[email protected]> wrote:
> I want to add a new search filter item to the drop down of filters in the > advanced search. I have edited Discovery.xml as follows: > > In the defaultConfiguration bean I added "<ref > bean="searchFilterPublisher" />" to the <list> set of the "searchFilters" > <property> set > > [...] > > I bounced Tomcat and the new item displays in the dropdown of search > filters as: "xmlui.ArtifactBrowser.SimpleSearch.filter.publisher" > You just need to add a translation to [dspace-src]/dspace-xmlui/src/main/resources/aspects/Discovery/i18n/messages.xml (or copy that file to [dspace-src]/dspace/modules/xmlui/src/main/resources/aspects/Discovery and edit the copy). Have a look around line 89 in that file (for DSpace 5.x) to see what has been added for the Author, Title, Subject and Date issued filters. https://github.com/DSpace/DSpace/blob/dspace-5_x/dspace-xmlui/src/main/resources/aspects/Discovery/i18n/messages.xml#L89 You may need the additional entries a few lines down too, to make sure things look right when you're filtering by an individual publisher ( xmlui.Discovery.AbstractSearch.type_publisher and xmlui.ArtifactBrowser.SimpleSearch.filter.publisher_filter). cheers, Andrea -- Dr Andrea Schweer Lead Software Developer, ITS Information Systems The University of Waikato, Hamilton, New Zealand +64-7-837 9120 -- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/dspace-tech. For more options, visit https://groups.google.com/d/optout.
