EPrints Technical Mailing List Archive

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

Message: #10213


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

RE: [EP-tech] How to remove "remove item (with notification)" button


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

An alternative approach:

I can’t work out from your message whether you ­never want to use the ‘remove (with notification)’, or just don’t want to display it in that place.

If you never want to use it, you could set this in a config file (in your archive’s cfg.d directory):

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

 

If you didn’t want it to display in certain places, but still be available to use, you could set e.g.

$c->{plugins}->{"Screen::EPrint::RemoveWithEmailEditor"}->{appears}->{eprint_actions_bar_buffer} = undef;


Cheers,

John

 

 

From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> On Behalf Of David R Newman
Sent: 27 August 2025 09:35
To: eprints-tech@ecs.soton.ac.uk; Agung Prasetyo W. <prazetyo@gmail.com>
Subject: Re: [EP-tech] How to remove "remove item (with notification)" button

 

CAUTION: External Message. Use caution opening links and attachments.

Hi Agung,

This worked fine for me.  Did you make sure you added these "anti-privileges" to both of the following in user_roles.pl:

$c->{user_roles}->{editor}
$c->{user_roles}->{admin}

If you created any other user types that have the 'editor' role, then you will also need to make sure you add these "anti-privileges"  to that set of user rolles as well.  If you did add all these anti-privileges you listed to all relevant sets of user roles, then possibly these are being overridden by another user_roles.pl. (Maybe you edited lib/cfg.d/user_roles.pl whilst there is an archives/ARCHIVE_ID/cfg/cfg.d/user_roles.pl). It is possible that another cfg.d file resets the user roles for some reason, (nothing in the default codebase does this), which means these anti-privileges get lost.

Also, I think you only need the remove_with_email permissions in your list unless you want to disable users from deleting items (without notification) that they created and have not been submitted for review or moved to the live archive.

Regards

David Newman

On 27/08/2025 04:35, Agung Prasetyo W. wrote:

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

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

Hi,

 

I'd like to ask how to remove the "Remove Item (With Notification)" button when on deposit process?

I've added several options to user_roles.pl, but it still doesn't work. I'm not sure if the options below are correct or not.
-eprint/inbox/remove_with_email:editor
-eprint/buffer/remove_with_email:editor
-eprint/inbox/remove:owner

 

Need your help.

 

Thank you.

 

Best regards,

Agung PW



*** Options: https://wiki.eprints.org/w/Eprints-tech_Mailing_List
*** Archive: https://www.eprints.org/tech.php/
*** EPrints community wiki: https://wiki.eprints.org/