[EP-tech] View and Move Screen Plugins

David R Newman drn at ecs.soton.ac.uk
Thu Apr 1 13:12:38 BST 2021


Hi Yuri,

I would start at perl_lib/EPrints/ScreenProcessor.pm and work your way 
down, if you are trying to find how the screen form input value is being 
changed.

Regards

David Newman

On 01/04/2021 11:47, Yuri Carrer via Eprints-tech wrote:
> *CAUTION:* This e-mail originated outside the University of Southampton.
>
> Hi!
>
>  Thanks for the suggestions. Using 101 or 102 does not change. I've 
> used grep to find "EPrint::Move" or "Move to Repository", just found 
> the standard ones.
>
> I'm looking to every plugin installed but everything is ok.
>
> So, what is the point where it create the form code, and maybe its 
> caller? Maybe I can debug there and see what happen.
>
> Il 01/04/21 12:13, David R Newman ha scritto:
>>
>> Hi Yuri,
>>
>> This is an odd one, as if the "Move to the Repository" button does 
>> not actually do what it says when the setting is the default, 
>> position = 100, then it seems extremely unlikely that this would not 
>> have been identified as a bug by now, as this would likely apply to 
>> all repositories running this version.
>>
>> It is possible to reconfigure these values in the local archive's 
>> configuration, (typically plugins.pl).  It is worth checking there to 
>> see if there is anything that relates to the EPrints::Move screen 
>> plugin.  It may also be worth checking you archive's phrase files to 
>> see if the is a "Move to the repository" assigned to another button 
>> other than the one from EPrints::Move.  Beyond, that all I can 
>> suggest is try setting the position to 101 rather than 200 to see if 
>> this fixes the functionality of the button without changing the 
>> ordering of buttons.
>>
>> This sounds like one of the problems I would have difficultly 
>> debugging even if the code was in front of me. So I am not overly 
>> confident any one of my suggestions will fix your problem.  If this 
>> problem has only just occurred, I would be tempted to run a find 
>> command over all your archive config and core EPrints codebase files, 
>> to see if anything relevant has recently been modified.
>>
>> Regards
>>
>> David Newman
>>
>> On 01/04/2021 10:50, Yuri via Eprints-tech wrote:
>>> *CAUTION:* This e-mail originated outside the University of 
>>> Southampton.
>>>
>>> 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="/cgi/users/home" 
>>> 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
>>>     ];
>>>
>>> *** 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=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cf91aa1f26b1b4a7985ba08d8f50771da%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637528759638500078%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=9Ola7sEeIlQwgsnI9I7wNiUUiJuUyNRZhcLSM4HGftI%3D&amp;reserved=0
>>> *** EPrints community wiki:https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cf91aa1f26b1b4a7985ba08d8f50771da%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637528759638500078%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=qg%2B2ePchIKurHl%2FATVneFJG1mVl%2BKK2GIeoTEafrAYU%3D&amp;reserved=0
>>
>> <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.avg.com%2Femail-signature%3Futm_medium%3Demail%26utm_source%3Dlink%26utm_campaign%3Dsig-email%26utm_content%3Demailclient&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cf91aa1f26b1b4a7985ba08d8f50771da%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637528759638500078%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=0G0Rx8kU6w4Gu3GVDfhP84r2GqedPFkiXn4YouNpB9o%3D&amp;reserved=0> 
>> 	Virus-free. https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.avg.com%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cf91aa1f26b1b4a7985ba08d8f50771da%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637528759638510073%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=7faxJcFN3wiKnxwhybrJOwf3a6B3cPuW8aobHfjWl8o%3D&amp;reserved=0 
>> <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.avg.com%2Femail-signature%3Futm_medium%3Demail%26utm_source%3Dlink%26utm_campaign%3Dsig-email%26utm_content%3Demailclient&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cf91aa1f26b1b4a7985ba08d8f50771da%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637528759638510073%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=YaN8wV6VDdcYm9vi2nR8ZZ3L%2B5FYDPSpK%2FX1Q6g4nG0%3D&amp;reserved=0> 
>>
>>
> -- 
> Yuri Carrer
>
>   CAB - Centro di Ateneo per le Biblioteche, Università di Padova
>   Tel: 049/827 9712 - Via Beato Pellegrino, 28 - Padova
>
> *** 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=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cf91aa1f26b1b4a7985ba08d8f50771da%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637528759638510073%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=LhRNnnInE8QQVbzmTfZZj1R2MEOLut0E6wdCF%2BInOQI%3D&amp;reserved=0
> *** EPrints community wiki: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cf91aa1f26b1b4a7985ba08d8f50771da%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637528759638510073%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=oUIr7gHxHPH1RbqJDvRXv7qBwgxsBu9tPEzlXj4GVco%3D&amp;reserved=0


-- 
This email has been checked for viruses by AVG.
https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.avg.com%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cf91aa1f26b1b4a7985ba08d8f50771da%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637528759638510073%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=G%2FNe1SoRouzZLkZ42Up%2F%2BJrAZEs2NbmJHVX2M86Gefc%3D&amp;reserved=0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20210401/baf14133/attachment-0001.html 


More information about the Eprints-tech mailing list