Re: [dspace-tech] Adding new Serach Filters

2016-10-03 Thread Andrea Schweer
Hi Don,

On 4 October 2016 at 07:45, Donald Bynum  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 " bean="searchFilterPublisher" />" to the  set of the "searchFilters"
>  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 dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


[dspace-tech] Adding new Serach Filters

2016-10-03 Thread Donald Bynum
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 "" to the  set of the "searchFilters"  set

I added the same new bean reference to the homepageConfiguration bean.

I added the following to the list of Search filter configuration beans

 
 
 
 
 dc.publisher
 
 
 

I bounced Tomcat and the new item displays in the dropdown of search 
filters as: "xmlui.ArtifactBrowser.SimpleSearch.filter.publisher"

The execution of the filter seems to work just fine, just that the display 
text is messed up (as stated above).

What did I miss?

Regards,

Don.




-- 
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 dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.