EPrints Technical Mailing List Archive

Message: #08319


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[EP-tech] Alphabetically sort a view


Dear all,

I have an installation of eprints in which there is this field:

         {
            'name' => 'cds',
            'type' => 'subject',
            'multiple' => 1,
            'top' => 'cds',
            'browse_link' => 'cds',
            'search_rows'=>'5',
          }

in eprint_fields.pl

Now I'm trying to modify this view to sort list of cds alphabetically in views.pl:

{
         id=>"cds",
         allow_null=>0,
         fields=>"cds,-discussion_date;res=year",
         hideempty => 1,
         order=>"creators_name/title",
         variations => [
                        "creators_name;first_letter",
                        "relatore", "indirizzo","orientamento","DEFAULT"
                       ],

         noindex => 0,
         nolink=>0,
         hideup=>1
       }

I've understand that "fields=>"cds,-discussion_date;res=year" is deprecated in eprints 3 from this wiki page:

But I don't understand how "variations" and "order" works and how I could modify their to achieve my aim.

Could anyone suggest other documentations or websites about eprints 3?

Thank you very much

Regards

Antonio

----------------------------------------------------------------------
Antonio Fracasso
ABIS - Unità di processo Gestione e sviluppo della biblioteca digitale d'Ateneo - AlmaDL
Alma Mater Studiorum - Università di Bologna
via Quirico Filopanti 7, Bologna
https://sba.unibo.it/it/almadl
Tel: 0512094019
Mobile: 3351831667
Skypeme: antonio.fracasso
Linkedin: www.linkedin.com/in/cyanto
Blog: antoniofracasso.net
---------------------------------------------------------------------

"Non importa quanto corri, ma dove corri e perché corri.“
Zdeněk Zeman