Re: [Dspace-tech] dspace-cris ordering in custom jsp

2015-06-08 Thread Pablo Buenaposada
Something more to look at?



--
View this message in context: 
http://dspace.2283337.n4.nabble.com/dspace-cris-ordering-in-custom-jsp-tp4678159p4678289.html
Sent from the DSpace - Tech mailing list archive at Nabble.com.

--
___
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


[Dspace-tech] dspace-cris ordering in custom jsp

2015-06-02 Thread Pablo Buenaposada
Hi,

I want to order the researcher results that a custom jsp returns in a
specific tab.
I see that the jstl line which prints the results is this :
dspace:browselist items=quot;lt;%= (BrowseItem[])info.getItems() %
config=crisrp /

this works nice but the order is not alphabetical, I saw in another default
jsp (persons.jsp) that you can add the options
sortBy=%= new Integer(info.getSo().getNumber()).toString() % 
and
order=%= info.getOrder() %

so I add a new SortOption object to the info instance:
SortOption sortOption = new
SortOption(4,rpname:crisrp.fullName:title);
info.setSo(sortOption);

and also the order string to the info instance:
info.setOrder(DESC);

and the jslt line:
dspace:browselist items=quot;lt;%= (BrowseItem[])info.getItems() %
config=crisrp sortBy=%= new Integer(info.getSo().getNumber()).toString()
% order=%= info.getOrder() %/

but doesn't order the researcher results, it prints the researchers but
without the alpabetical order... any hint?




--
View this message in context: 
http://dspace.2283337.n4.nabble.com/dspace-cris-ordering-in-custom-jsp-tp4678159.html
Sent from the DSpace - Tech mailing list archive at Nabble.com.

--
___
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


Re: [Dspace-tech] dspace-cris ordering in custom jsp

2015-06-02 Thread Pablo Buenaposada
Hi Andrea,
I also tried that config, I have this in dspace.cfg:
webui.itemlist.sort-option.4 = rpname:crisrp.fullName:title

and changed the SortOption constructor to this: new SortOption(4);
but has no effect on the results.  




--
View this message in context: 
http://dspace.2283337.n4.nabble.com/dspace-cris-ordering-in-custom-jsp-tp4678159p4678169.html
Sent from the DSpace - Tech mailing list archive at Nabble.com.

--
___
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


Re: [Dspace-tech] dspace-cris ordering in custom jsp

2015-06-02 Thread Andrea Bollini
Hi Pablo,
you need to configure your sort order in the dspace.cfg and put in the 
jsp tag just the number associated with your new sort option.
Create a SortOption object doesn't work if it is not configured in the 
dspace.cfg and the system properly reindexed.
Andrea

Il 02/06/2015 09.22, Pablo Buenaposada ha scritto:
 Hi,

 I want to order the researcher results that a custom jsp returns in a
 specific tab.
 I see that the jstl line which prints the results is this :
  dspace:browselist items=quot;lt;%= (BrowseItem[])info.getItems() %
 config=crisrp /

 this works nice but the order is not alphabetical, I saw in another default
 jsp (persons.jsp) that you can add the options
 sortBy=%= new Integer(info.getSo().getNumber()).toString() %
 and
 order=%= info.getOrder() %

 so I add a new SortOption object to the info instance:
  SortOption sortOption = new
 SortOption(4,rpname:crisrp.fullName:title);
  info.setSo(sortOption);

 and also the order string to the info instance:
  info.setOrder(DESC);

 and the jslt line:
 dspace:browselist items=quot;lt;%= (BrowseItem[])info.getItems() %
 config=crisrp sortBy=%= new Integer(info.getSo().getNumber()).toString()
 % order=%= info.getOrder() %/

 but doesn't order the researcher results, it prints the researchers but
 without the alpabetical order... any hint?




 --
 View this message in context: 
 http://dspace.2283337.n4.nabble.com/dspace-cris-ordering-in-custom-jsp-tp4678159.html
 Sent from the DSpace - Tech mailing list archive at Nabble.com.

 --
 ___
 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


-- 
Andrea Bollini
Soluzioni per la Ricerca Istituzionale
Cineca

Via dei Tizii, 6
00185 Roma, Italy
tel. +39 06 44 486 087 - mob. +39 348 82 77 525
http://www.cineca.it


--
___
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