Hi George,

Take a look at this site that we customized the Search Filter / Faceting.
https://dspace.sunyconnect.suny.edu/handle/1951/48213/discover?filtertype_1=publisher&filter_relational_operator_1=contains&filter_1=Schirmer&submit_apply_filter=Apply&query=opera&scope=1951%2F48213

Your on the right path with that, it can be modified
with spring/api/discovery.xml
If also chooses which facets show for that collection on the sidebar.
https://dspace.sunyconnect.suny.edu/handle/1951/48213

Then, to remove notContains, look at:
https://github.com/DSpace/DSpace/blob/master/dspace-xmlui/src/main/java/org/dspace/app/xmlui/aspect/discovery/SimpleSearch.java#L243

        Select typeSelect = row.addCell("", Cell.ROLE_DATA,
"selection").addSelect("filter_relational_operator_" + index);
        typeSelect.addOption(StringUtils.equals(relationalOperator,
"contains"), "contains", T_filter_contain);
        typeSelect.addOption(StringUtils.equals(relationalOperator,
"equals"), "equals", T_filter_equals);
        typeSelect.addOption(StringUtils.equals(relationalOperator,
"authority"), "authority", T_filter_authority);
        typeSelect.addOption(StringUtils.equals(relationalOperator,
"notcontains"), "notcontains", T_filter_notcontain);
        typeSelect.addOption(StringUtils.equals(relationalOperator,
"notequals"), "notequals", T_filter_notequals);
        typeSelect.addOption(StringUtils.equals(relationalOperator,
"notauthority"), "notauthority", T_filter_notauthority);

There's a bunch of hard-coded relation operators. This is hard coded, so
changes are global, and made by changing the java, and rebuilding.

(d'oh, I've just noticed that Andrea's just sent a response, sending
anyways)

________________
Peter Dietz
Longsight
www.longsight.com
pe...@longsight.com
p: 740-599-5005 x809

On Mon, May 4, 2015 at 3:38 PM, George Stanley Kozak <g...@cornell.edu>
wrote:

>  Hi…
>
>
>
> I am using DSpace 5.1 (XMLUI, Mirage2 theme).  In the Advanced Search, we
> have Filters:
>
> Title
>
> Author
>
> Subject
>
> Date issued
>
>
>
> And the modifiers:
>
> Contains
>
> Equals
>
> ID
>
> Not Contains
>
> Not Equals
>
> Not ID
>
>
>
> I need to add “Type” to the Filters and I’m pretty sure I know how to do
> that (by altering spring/api/discovery.xml), but I can’t figure out where
> the modifiers: “Contains”, Equals”, “ID”, etc. are coming from.  I need to
> drop “ID” and “Not ID”.  Can someone point me in the right direction?
>
> Thank you.
>
>
>
> George Kozak
>
> Digital Library Specialist
>
> Cornell University Library Information Technologies (CUL-IT)
>
> 218 Olin Library
>
> Cornell University
>
> Ithaca, NY 14853
>
> 607-255-8924
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> List Etiquette:
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to