[EP-tech] Re: problem with views ordering

Tim Brody tdb2 at ecs.soton.ac.uk
Fri Mar 2 12:02:29 GMT 2012


On Fri, 02 Mar 2012 12:34:30 +0100, Leonardo Mezzina
<leonardo.mezzina at imtlucca.it> wrote:
> Hi tim,
> it works fine for new items but I had the problem still remains with 
> older item even if with
> ./epadmin reorder eprints eprint
> any ideas?

Have you re-done the view pages?
(Admin -> Regenerate Views)

"reorder" without any id arguments should force a reordering of all
eprints.

If that fails you could do a manual population of ordervalues:
INSERT IGNORE INTO eprint__ordervalues_en(eprintid) SELECT eprintid FROM
eprint;
Then reorder to set the values.

I've added a unit test for this so a release won't happen again with this
bug ...

All the best,
Tim.

> Best Leonardo
> 
> Il 3/2/2012 9:33 AM, Tim Brody ha scritto:
>> On Thu, 01 Mar 2012 18:33:07 +0100, Leonardo Mezzina
>> <leonardo.mezzina at imtlucca.it>  wrote:
>>> Hi tim,
>>> the file version  whose the patch is referred is the r7428 which is
>>> different from the one bundled with eprints 3.3.8. Are we sure  I can
>>> replace the entire file  patched with r7436 without encounter any
>>> further problems?
>> Yes, that should be ok:
>>
http://trac.eprints.org/eprints/export/7437/branches/3.3/system/perl_lib/EPrints/Database.pm
>>
>> All the best,
>> Tim.
>>
>>> Il 3/1/2012 4:12 PM, Tim Brody ha scritto:
>>>> On Wed, 2012-02-29 at 19:29 +0100, Leonardo Mezzina wrote:
>>>>> If it can help I noticed that only the new inserted items go in the
>>>>> bottom of the list take for example this other author
>>>>>
http://eprints.imtlucca.it/view/creators/Caldarelli=3AGuido=3A=3A.html
>>>>>
>>>>> Il 2/29/2012 1:29 PM, Leonardo Mezzina ha scritto:
>>>>>> Hi everyone,
>>>>>> I recently upgraded to Eprints 3.3.8 on my Ubuntu machine, but I
>>>>>> noticed
>>>>>> a problem with views.
>>>>>> The problem is in the ordering the output is displayed, take for
>>>>>> example
>>>>>> the standard creators view from here
>>>>>> http://eprints.imtlucca.it/view/creators/Pammolli=3AFabio=3A=3A.html
>>>>>>
>>>>>> If you note the last item in the article section is displayed last
>>>>>> ignoring the order option, which is the default
>>>>>> order =>    "-date/title". The same problem with the last item in
the
>>>>>> working paper section.
>>>>>>
>>>>>> Is there something wrong ?
>>>> Hi,
>>>>
>>>> I've confirmed this is a bug introduced in 3.3.8 and I've written a
fix
>>>> here:
>>>> http://trac.eprints.org/eprints/ticket/4033
>>>>
>>>> Sorry!
>>>>
>>>> All the best,
>>>> Tim.
>>>>
>>>> *** Options:
>> http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
>>>> *** Archive: http://www.eprints.org/tech.php/
>>>> *** EPrints community wiki: http://wiki.eprints.org/

-- 
All the best,
Tim.


More information about the Eprints-tech mailing list