Re: default sorting per collection

2016-10-20 Thread Ludmila Marian
Dear Veronika,

It’s not out-of-the-box, but it can be done. There are 2 things to do:

1) If you wish to change the search option on the collection page (a.k.a. 
"Latest additions:"), you need to update the codebase, so the webcoll task will 
know about it (as the collection pages are precomputed and cached by webcoll).  
For CDS we have added several similar hacks like this over the years, so you 
can use it as an example: 
https://github.com/inveniosoftware/invenio/blob/maint-1.1/modules/websearch/lib/websearch_webcoll.py#L460-L461

2) If you wish to change the order of the search results displayed after the 
user clicks on the ’Search’ button for a specific collection, you can add a 
portalbox with a hidden field, in the “Narrow by coll prolog” position:

```
mailto:vugtk.v...@gmail.com>> wrote:

Dear All,

Could someone help me, please?

All of our collections have default sorting "Latest First". We would like to 
change default sorting for one collection (by call number). How can I do it? We 
have Invenio version 1.1.4.

Thanks in advance.

Best regards,
Veronika



default sorting per collection

2016-10-20 Thread Veronika Synkova
Dear All,

Could someone help me, please?

All of our collections have default sorting "Latest First". We would like
to change default sorting for one collection (by call number). How can I do
it? We have Invenio version 1.1.4.

Thanks in advance.

Best regards,
Veronika