EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #10342


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

Re: [EP-tech] Remove versions support from EPrints


Hi Yuri,

I have also experience the mis-use of the "New Version" button. Often the conflation with the "Use as template".  I don't think how you disable this button has changed much if at all between 3.3.15 and the latest version of 3.4.  You could just hide the button from the Actions tab by adding the following to a config file under the archive's cfg/cfg.d/ directory:

$c->{plugins}->{"Screen::EPrint::NewVersion"}->{appears}->{eprint_actions} = undef;

Alternatively, you could completely disable the screen plugin:

$c->{plugins}->{"Screen::EPrint::NewVersion"}->{params}->{disable} = 1;

I don't think there is any risk to completely disabling this screen plugin, so I would probably go for the latter.  However, if you have a specific case where editors (and admin) can create new versions but regular users should not then you would not want to completely disable this screen plugin.  In that case you probably want to remove a standard user from having the following permissions:

eprint/inbox/derive_version:owner
eprint/buffer/derive_version:owner
eprint/archive/derive_version:owner
eprint/deletion/derive_version:owner

This can be done by adding the following to a configuration file (starting "z_" to ensure it is loaded after user_roles.pl) in your archives cfg/cfg.d/ file:

push @{$c->{user_roles}->{user}}, qw{
    -eprint/inbox/derive_version:owner
    -eprint/buffer/derive_version:owner
    -eprint/archive/derive_version:owner
    -eprint/deletion/derive_version:owner
};

Regards

David Newman

On 24/03/2026 10:32, Yuri wrote:

CAUTION: This e-mail originated outside the University of Southampton.

CAUTION: This e-mail originated outside the University of Southampton.

Hi!

 EPrints 3.3.15 here.

 For our users, versions are confusing and often are misused. Often it
happens that the user make a mistake, submit to the buffer and then
(lazy) do a version to avoid reinserting the metadata again. So we find
there's a stale version linked to the good one and the buffer is also
filled with 2 items...

 We would like to hide the version functionality, at least for the
users. Then, as editor, we can link the real versions when we find there
are (using db queries, there's no other way I know).

 Thanks!


*** Options: https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FEprints-tech_Mailing_List&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7Ca17dcffcc4514d020bd108de899eb0b9%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C639099511821711615%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=8aH7ndD7gUEdzFktClA%2BpFazn02mhMkOcAwMdilVCxA%3D&reserved=0
*** Archive: https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7Ca17dcffcc4514d020bd108de899eb0b9%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C639099511822186542%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=4JyVfq50dcWxfszxetDVeAB9oOLta4UllUQfMgrOcpg%3D&reserved=0
*** EPrints community wiki: https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2F&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7Ca17dcffcc4514d020bd108de899eb0b9%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C639099511822228765%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=lC9Xsux2IqjM4IBF4wYCnEZ8RNJ5G7qnyamc7XrnHIs%3D&reserved=0