EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #08560
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] View and Move Screen Plugins
- To: "EPrints.org Technical List" <eprints-tech@ecs.soton.ac.uk>
- Subject: [EP-tech] View and Move Screen Plugins
- From: Yuri <yurj@alfa.it>
- Date: Thu, 1 Apr 2021 11:50:21 +0200
Context: Eprints 3.3.15
When I view an Eprints (as admin) I get the "Move to the repository", "Return Item (with notification)", "Delete Item (with notification)" buttons on top (eprint_actions_bar_buffer).
The standard config for "Move to the repository" ( perl_lib/EPrints/Plugin/Screen/EPrint/Move.pm ) is
{ place => "eprint_actions_bar_buffer", action => "move_archive", position => 100, },
The form render as:
<form method="post" accept-charset="utf-8" action="" enctype="multipart/form-data">
<input name="screen" id="screen" value="EPrint::View" type="hidden">
<input name="eprintid" id="eprintid" value="263" type="hidden">
<input class="ep_form_action_button" value="Move to Repository" name="_action_move_archive" type="submit">
</form>
As you can see, the form points to EPrint::View instead of EPrint::Move.
If I change the config to:
{ place => "eprint_actions_bar_buffer", action => "move_archive", position => 200, },
It displays correctly EPrint::Move but "Return Item (with notification)" move to the first position and have the same issue, it renders with EPrint::View instead of EPrint::Move.
So the first button always get EPrint::View, the others EPrint::Move. Obviously the one with EPrint::View fails with "This screen (EPrint::View) does not know how to process this action: move_archive".
Any idea on how to solve this?
P.S: This is the full config for Move.pm (the standard one):
$self->{actions} = [qw/ move_inbox move_buffer move_archive move_deletion /];$self->{appears} = [
{ place => "eprint_actions", action ="" "move_inbox", position => 600, },
{ place => "eprint_editor_actions", action ="" "move_archive", position => 400, },
{ place => "eprint_editor_actions", action ="" "move_buffer", position => 500, },
{ place => "eprint_editor_actions", action ="" "move_deletion", position => 700, },
{ place => "eprint_actions_bar_buffer", action ="" "move_archive", position => 100, },
{ place => "eprint_actions_bar_archive", action ="" "move_buffer", position => 100, },
{ place => "eprint_actions_bar_archive", action ="" "move_deletion", position => 100, },
{ place => "eprint_actions_bar_deletion", action ="" "move_archive", position => 100, },
{ place => "eprint_review_actions", action ="" "move_archive", postion => 200, }, # I've already correct postion -> position in the instance
];
- Follow-Ups:
- [EP-tech] View and Move Screen Plugins
- From: Yuri <yurj@alfa.it>
- [EP-tech] View and Move Screen Plugins
- References:
- [EP-tech] View and Move Screen Plugins
- From: Yuri <yurj@alfa.it>
- [EP-tech] View and Move Screen Plugins
- Prev by Date: [EP-tech] Error while creating new archive
- Next by Date: Re: [EP-tech] View and Move Screen Plugins
- Previous by thread: [EP-tech] EPrints/CRIS
- Next by thread: [EP-tech] DOI handling in orcid_support_advance
- Index(es):