Re: [Dspace-tech] Change default sorting in search results

2011-07-04 Thread Verdonck Christof




 Dear


I can assure you that it is there. I just downloaded version 1.7.1 and
looked in the source folder
dspace-1.7.1-src-release\dspace-discovery\dspace-discovery-xmlui-api\src\main\java\org\dspace\app\xmlui\aspect\discovery

I included the file as an attachment.


Yours Sincerely



Christof Verdonck




Nemiz, Elvi S. wrote:
Dear Christof,
  
Thanks for your reply. We are using version 1.7.1 and I can't find the
file AbstractSearch.java.
  
  On Fri, Jul 1, 2011 at 4:19 PM, Verdonck
Christof verdonck.chris...@eurodyn.com
wrote:
  
Dear


I think you can change the file


dspace-1.7.2-src-release\dspace-discovery\dspace-discovery-xmlui-api\src\main\java\org\dspace\app\xmlui\aspect\discovery\AbstractSearch.java


 replace
 
  protected String getParameterOrder() {
  String s =
ObjectModelHelper.getRequest(objectModel).getParameter("order");
  return s != null ? s : "DESC";
  }

 with

 protected String getParameterOrder() {
 String s =
ObjectModelHelper.getRequest(objectModel).getParameter("order");
 return s != null ? s : "ASC";
 }


In this way, the list will be sorted, by default, in Ascending order.


Yours Sincerely





Christof Verdonck


Nemiz, Elvi S. wrote:

  
  Dear All,
  
Hello, we are using Discovery in our DSpace instance with mirage as our
theme. I have noticed that when using the search box that can be found
in the home page or at the side bar, search results are sorted by
relevance in ascending order which means that items that are least
relevant are displayed at the top of the search results. If I'm using
jspui, search results are sorted by relevance in descending order.
Please visit http://repository.seafdec.org.ph/
and try to search using the search box in the side bar or at home page.
The jspui is at http://repository.seafdec.org.ph/jspui.
Try using the term shrimp. Please advice how can I change the default
sorting of search results in xmlui? Thanks in advance.
  
Sincerely, 
Elvi S. Nemiz
Information Assistant
Library and Data Bank Services Section
Training and Information Division
SEAFDEC Aquaculture Department
Tigbauan, Iloilo
Philippines
  
  
  
--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
  
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
  


  
  
  
  
  
-- 
Elvi S. Nemiz
Information Assistant
Library and Data Bank Services Section
Training and Information Division
SEAFDEC Aquaculture Department
Tigbauan, Iloilo
Philippines






AbstractSearch.java
Description: java/
--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Change default sorting in search results

2011-07-01 Thread Nemiz, Elvi S.
Dear Christof,

Thanks for your reply. We are using version 1.7.1 and I can't find the file
AbstractSearch.java.

On Fri, Jul 1, 2011 at 4:19 PM, Verdonck Christof 
verdonck.chris...@eurodyn.com wrote:

 **
 Dear


 I think you can change the file


 dspace-1.7.2-src-release\dspace-discovery\dspace-discovery-xmlui-api\src\main\java\org\dspace\app\xmlui\aspect\discovery\
 *AbstractSearch.java


 **replace*

 protected String getParameterOrder() {
 String s =
 ObjectModelHelper.getRequest(objectModel).getParameter(order);
 return s != null ? s : DESC;
 }*

 **with*

 **protected String getParameterOrder() {
 String s =
 ObjectModelHelper.getRequest(objectModel).getParameter(order);
 return s != null ? s : *ASC*;
 }*

 *
 In this way, the list will be sorted, by default, in Ascending order.


 Yours Sincerely
 *



 *

 Christof Verdonck


 Nemiz, Elvi S. wrote:

 Dear All,

 Hello, we are using Discovery in our DSpace instance with mirage as our
 theme. I have noticed that when using the search box that can be found in
 the home page or at the side bar, search results are sorted by relevance in
 ascending order which means that items that are least relevant are displayed
 at the top of the search results. If I'm using jspui, search results are
 sorted by relevance in descending order. Please visit
 http://repository.seafdec.org.ph/ and try to search using the search box
 in the side bar or at home page. The jspui is at
 http://repository.seafdec.org.ph/jspui. Try using the term shrimp. Please
 advice how can I change the default sorting of search results in xmlui?
 Thanks in advance.

 Sincerely,
 Elvi S. Nemiz
 Information Assistant
 Library and Data Bank Services Section
 Training and Information Division
 SEAFDEC Aquaculture Department
 Tigbauan, Iloilo
 Philippines

 --

 --
 All of the data generated in your IT infrastructure is seriously valuable.
 Why? It contains a definitive record of application performance, security
 threats, fraudulent activity, and more. Splunk takes this data and makes
 sense of it. IT sense. And common sense.http://p.sf.net/sfu/splunk-d2d-c2

 --

 ___
 DSpace-tech mailing 
 listDSpace-tech@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/dspace-tech




-- 
Elvi S. Nemiz
Information Assistant
Library and Data Bank Services Section
Training and Information Division
SEAFDEC Aquaculture Department
Tigbauan, Iloilo
Philippines
--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Change default sorting in search results

2011-06-30 Thread Nemiz, Elvi S.
Dear All,

Hello, we are using Discovery in our DSpace instance with mirage as our
theme. I have noticed that when using the search box that can be found in
the home page or at the side bar, search results are sorted by relevance in
ascending order which means that items that are least relevant are displayed
at the top of the search results. If I'm using jspui, search results are
sorted by relevance in descending order. Please visit
http://repository.seafdec.org.ph/ and try to search using the search box in
the side bar or at home page. The jspui is at
http://repository.seafdec.org.ph/jspui. Try using the term shrimp. Please
advice how can I change the default sorting of search results in xmlui?
Thanks in advance.

Sincerely,
Elvi S. Nemiz
Information Assistant
Library and Data Bank Services Section
Training and Information Division
SEAFDEC Aquaculture Department
Tigbauan, Iloilo
Philippines
--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech