Andrea and Peter:
Thank you for your help. This is exactly what I needed to know.
George Kozak
Digital Library Specialist
Cornell University Library Information Technologies (CULIT)
218 Olin Library
Cornell University
Ithaca, NY 14853
607-255-8924
________________________________
From: Andrea Schweer <schw...@waikato.ac.nz>
Sent: Monday, May 4, 2015 5:33 PM
To: George Stanley Kozak; dspace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] Altering Advance Search in DSpace 5.1 XMLUI
Hi,
On 05/05/15 07:38, George Stanley Kozak wrote:
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?
If you're happy to modify the Java code, it's here:
https://github.com/DSpace/DSpace/blob/dspace-5.1/dspace-xmlui/src/main/java/org/dspace/app/xmlui/aspect/discovery/SimpleSearch.java#L249
(and line 246)
I use grep/find for this sort of thing (just in case this helps someone down
the line):
[in dspace-src] rgrep 'Not ID' dspace-xmlui/src/main/
dspace-xmlui/src/main/resources/aspects/Discovery/i18n/messages.xml:
<message key="xmlui.Discovery.SimpleSearch.filter.notauthority">Not ID</message>
[in dspace-src] find . -name SimpleSearch.java
./dspace-xmlui/src/main/java/org/dspace/app/xmlui/aspect/discovery/SimpleSearch.java
./dspace-xmlui/src/main/java/org/dspace/app/xmlui/aspect/artifactbrowser/SimpleSearch.java
and since the messages.xml entry refers to Discovery, you know you'll want the
first of these two classes, and then search for where the message key is used.
If you prefer to make XSL changes, the DRI is here:
http://demo.dspace.org/xmlui/DRI/discover
so you may just be able to get away with an empty template for something like
dri:field[starts-with(@id,
'aspect.discovery.SimpleSearch.field.filter_relational_operator_')]/dri:option[@returnValue='notauthority'
or @returnValue='authority'] in your theme.xsl file -- but I haven't tried
that.
cheers,
Andrea
--
Dr Andrea Schweer
IRR Technical Specialist, ITS Information Systems
The University of Waikato, Hamilton, New Zealand
------------------------------------------------------------------------------
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