EPrints Technical Mailing List Archive
Message: #07415
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] MePrints - Latest Additions view not updated
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
- Subject: Re: [EP-tech] MePrints - Latest Additions view not updated
- From: Michele Morelli <Michele.Morelli@cosector.com>
- Date: Mon, 20 Aug 2018 12:49:25 +0000
Hi Muizzudin, This problem is due to the fact that there seems to be a bug in the render_content subroutine in
cfg/plugins/EPrints/Plugin/MePrints/Widget/LatestEPrints.pm. Basically the new added items are added at the “wrong side” of the queue, giving the impression that the list does not change (while actually, it does).
The problem is caused by the fact that, for some reason, $items->reorder( 'datestamp' ); is not actually sorting the list as it should. So you should be able to fix the issue easily by adding: $items->{ids} = [reverse @{$items->{ids} } ]; Or something similar (depending on how you want to sort the list) after the malfunctioning reorder statement in the render_content subroutine . You will then need to refresh the Meprints pages, and the issue should be solved. I hope it can be of help! Michele Michele Morelli CoSector – University of London Senate House, Malet Street, London WC1E 7HU
On Sat, Aug 11, 2018, 11:31 MUIZZUDIN BIN KASPOL / PSAS <
muizzudin at upm.edu.my> wrote:
>
> I'm having a problem with MePrints Latest Additions display in user
> profile.
>
> As example when I have deposited a new record and try to display at
> http://urldaomain/cgi/latest it indicates a new record have been added,
> but when I click on my user profile at http://urldomain/profile/userid,
> the new deposited record is not showing in the latest addition list. It
> seems that the record only shows 10 previous records and not latest records.
>
> I've tried to disable and uninstall MePrints plugin through EPrints Bazaar
> and re-install the MePrints plugins back, but the problem hasn't been
> solved yet.
>
> Best Regards,
>
> Muizzudin
> Librarian,
> Universiti Putra Malaysia.
>
> *** 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/
> *** EPrints developers Forum: http://forum.eprints.org/
|
- Follow-Ups:
- Re: [EP-tech] MePrints - Latest Additions view not updated
- From: Michele Morelli <Michele.Morelli@cosector.com>
- Re: [EP-tech] MePrints - Latest Additions view not updated
- References:
- Re: [EP-tech] MePrints - Latest Additions view not updated
- From: Michele Morelli <Michele.Morelli@cosector.com>
- Re: [EP-tech] MePrints - Latest Additions view not updated
- Prev by Date: Re: [EP-tech] Integrating eprints-3.3.15 with office365
- Next by Date: Re: [EP-tech] Eprints-tech Digest, Vol 119, Issue 25
- Previous by thread: [EP-tech] Sort view with creators_name and corp_creators
- Index(es):