Gmane
Favicon
From: Alfons Wittmann <alfons.wittmann <at> ku-eichstaett.de>
Subject: Re: [EP-tech] Subject sorting - non-alpha with version 3.0.5 ???
Newsgroups: gmane.comp.web.eprints.devel
Date: 2008-08-05 22:03:35 GMT (47 weeks, 3 days, 2 hours and 21 minutes ago)
*** http://www.eprints.org/tech.php/id/%3CEMEW-k74N3s5b3f625455c928e453900fc4796c9df1-4898CE37.3090904%40ku-eichstaett.de%3E
*** EPrints community wiki - http://wiki.eprints.org/

Hi,

I changed this to

        my $searchexp = EPrints::Search->new(
                session=>$self->{session},
                dataset=>$self->{dataset},
                custom_order=>"subjectid" );

and subjects are sorting on subject id, as they are in database and
accordingly in file "subjects".

I'm not very happy with this, because it affects every archive in
EPrints. It would be much better to have a possibility to overwrite
particular classes or methods inside of an archive, in
/opt/eprints3/archives/≤archive id>/... Perhaps this is possible, but
I'm quite new to EPrints, so any hints would be appreciated.

Thanks, Alfons

Gregg, Brian D schrieb am 05.08.2008 21:50:
> All,
>  
> Sorry if this has been brought up before,  a quick check through the
> archives did not seem to reveal any insight that I saw, so I thought I'd
> ask here for a quick pointer.
>  
> Is there any way to sort a "Subject" without using the Subject Name?  We
> wish to order maybe on subject id instead to control ordering?
>  
> I see in perl_lib/Eprints/DataObj/Subject.pm that there is some hint
> here in sub get_children:
>  
>         my $searchexp = EPrints::Search->new(
>                 session=>$self->{session},
>                 dataset=>$self->{dataset},
>                 custom_order=>"name/name_name" );
>  
> Is there any other already existing ways that this can be sorted on by
> changing the "custom_order" field?
> I'm not quite sure what name/name_name is referring to here but if
> someone could explain it a bit, it would be much appreciated.

--
Universitätsbibliothek Eichstätt-Ingolstadt
EDV-Referat                    Tel: 08421/93-1486 - Fax: 08421/93-1791
Universitätsallee 1            EMail: alfons.wittmann <at> ku-eichstaett.de
85071 Eichstätt                http://www.ku-eichstaett.de/Bibliothek/