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

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:



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&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C138aa0cd9cf5423a45ba08d6e3387b78%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=Eu7DNyPilRMDJaCrJNGsCRl7f34aiv1hDVm12Ip1NNc%3D&amp;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…



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&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C138aa0cd9cf5423a45ba08d6e3387b78%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=j8cuD2zCThYbO5Y1gtVVia1%2FWHvt7IK7XmUMU6dZDiI%3D&amp;reserved=0
*** EPrints community wiki: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C138aa0cd9cf5423a45ba08d6e3387b78%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=ZasjlUfZN%2BgKdqrEE9RMKoD%2Fd0JEm6ngYrw%2FwznSBLM%3D&amp;reserved=0
*** EPrints developers Forum: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fforum.eprints.org%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C138aa0cd9cf5423a45ba08d6e3387b78%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=%2BZx1BIWo3tNVFm9%2BcTxX2PiqlJMv2VIB683sb3BbiKU%3D&amp;reserved=0