Ticket #2976 (closed defect: fixed)

Opened 8 years ago

Last modified 4 years ago

Sort by depositing user doesn't sort alphabetically - because it is sorting by userid

Reported by: tmb Owned by:
Priority: Intend to Milestone: 3.2.4
Component: - Version:
Severity: normal Keywords:
Cc:

Description


Change History

Changed 8 years ago by tmb

Feedback from NORA training course 01/05/07

Changed 7 years ago by tdb01r

  • milestone changed from EPrints 3.1 beta to EPrints 3.0.4

Changed 4 years ago by tdb01r

  • status changed from new to closed
  • resolution set to fixed

Resolved by r5795.

{
name => "userid",
type => "itemref",
datasetid => "user",
required => 0,
replace_core => 1,
make_value_orderkey => sub {
    my( $field, $value, $repo, $langid, $dataset ) = @_;

    my $user = $field->get_item( $field->repository, $value );
    return "" if !defined $user;

    return $user->dataset->field( "name" )->ordervalue(
        $user->value( "name" ),
        $repo,
        $langid,
        $dataset
    );
},
},

Note: See TracTickets for help on using tickets.