EPrints Technical Mailing List Archive
Message: #07863
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] Author re-ordering
- To: <eprints-tech@ecs.soton.ac.uk>
- Subject: Re: [EP-tech] Author re-ordering
- From: Yuri <yurj@alfa.it>
- Date: Tue, 28 May 2019 08:48:16 +0200
export, reorder in the xml and reimport with the same id? Another option is to use javascript to manage the order in the form. If the order is fixed, you can use perl in a trigger before commit. you can find all the triggers here: https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprints%2Feprints%2Fblob%2F3.3%2Fperl_lib%2FEPrints%2FConst.pm&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C138aa0cd9cf5423a45ba08d6e3387b78%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=txwifzTJga%2BWymHWw1ub0QO76CmFCLXYIgXJCviOVZ8%3D&reserved=0 EP_TRIGGER_BEFORE_COMMIT and do reordering on the eprint creators there, on a fixed rule (maybe just for users, not editors, so editors can change the order, it depends on the workflow). In Eprints 2.3 we had: || |{ name => "creators", type => "name", render_opts=>{ order=>"gf" } },' Seems there in Eprints 3: https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FName_field&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C138aa0cd9cf5423a45ba08d6e3387b78%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=Eu7DNyPilRMDJaCrJNGsCRl7f34aiv1hDVm12Ip1NNc%3D&reserved=0 Being just a visualization problem, you can also just write your own render function and set the order as you want. | || Il 28/05/19 01:51, Matthew Brady via Eprints-tech ha scritto:
Hi All, Interested to know if anyone has come across this, or already solved it…. We have several authors who have quite a number of papers (in the astrophysics field) where everyone gets put into the citation… We mandate the names be in the order listed on the paper, so the citation ePrints generates is accurate. But, in some cases the names in the input file may not be in correct order…, and there may be dozens of papers with 50+ authors. Nothing sucks time like a manual bubble sort…, and current editorial process involves the use of the up/down arrow to move eprint_creators within the list, but this causes a page reload each time an author is shuffled up/down… Is there a way to perform the reordering, without the page reload each time, get everything in the correct order then save when moving to the next tab in the workflow?? Or should I present the editorial users with a screen to reallocate the pos number for authors, and re-save the eprint_creators pos numbers to the database?? Would an ‘eprint commit’ be all that’s required to ensure everything is updated correctly ? Thanks for any help/tips/code snippets… Oh, running 3.3.10 if it makes a difference or has been solved in a newer release and I missed it… Cheers Matt _____________________________________________________________ This email (including any attached files) is confidential and is for the intended recipient(s) only. If you received this email by mistake, please, as a courtesy, tell the sender, then delete this email. The views and opinions are the originator's and do not necessarily reflect those of the University of Southern Queensland. Although all reasonable precautions were taken to ensure that this email contained no viruses at the time it was sent we accept no liability for any losses arising from its receipt. The University of Southern Queensland is a registered provider of education with the Australian Government. (CRICOS Institution Code QLD 00244B / NSW 02225M, TEQSA PRV12081 ) *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech *** Archive: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C138aa0cd9cf5423a45ba08d6e3387b78%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=j8cuD2zCThYbO5Y1gtVVia1%2FWHvt7IK7XmUMU6dZDiI%3D&reserved=0 *** EPrints community wiki: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C138aa0cd9cf5423a45ba08d6e3387b78%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=ZasjlUfZN%2BgKdqrEE9RMKoD%2Fd0JEm6ngYrw%2FwznSBLM%3D&reserved=0 *** EPrints developers Forum: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fforum.eprints.org%2F&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C138aa0cd9cf5423a45ba08d6e3387b78%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=%2BZx1BIWo3tNVFm9%2BcTxX2PiqlJMv2VIB683sb3BbiKU%3D&reserved=0
- Follow-Ups:
- Re: [EP-tech] Author re-ordering
- From: Yuri <yurj@alfa.it>
- Re: [EP-tech] Author re-ordering
- References:
- [EP-tech] Author re-ordering
- From: Matthew Brady <Matthew.Brady@usq.edu.au>
- Re: [EP-tech] Author re-ordering
- From: Yuri <yurj@alfa.it>
- [EP-tech] Author re-ordering
- Prev by Date: [EP-tech] Author re-ordering
- Next by Date: Re: [EP-tech] Reinstating deleted file
- Previous by thread: [EP-tech] Sort view with creators_name and corp_creators
- Index(es):