EPrints Technical Mailing List Archive

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

Message: #07916


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

Re: [EP-tech] Strange button behaviour


Any idea? It happens also for buttons like "Move to review" in
cgi/users/home?screen=EPrint::View&eprintid=XXX. I have

<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">
<- here it should point to the EPrint::Move, not EPrint::View!
<input name="eprintid" id="eprintid" value="72" type="hidden">
<input class="ep_form_action_button" value="Move to Review"
name="_action_move_buffer" type="submit">
</form>

Luckly, the buttons under Actions are correct:

<form method="post" accept-charset="utf-8" action="/cgi/users/home"
enctype="multipart/form-data">
 <input name="screen" id="screen" value="EPrint::Move" type="hidden">
<- EPrint::Move, correct!
 <input name="eprintid" id="eprintid" value="72" type="hidden">
 <input class="ep_form_action_button" name="_action_move_buffer"
value="Move to Review" type="submit">
</form>

Il 27/06/19 10:02, Yuri via Eprints-tech ha scritto:
Hi!

   I've 2 almost identical Eprints installation, one for production and
one for testing. I'm very conservative in changing something in
production, more free in testing.

Yesterday I've found that the Search Items button (Admin panel ->
Editorial tools) redirect to the same page. In testing it works and the
html form is correct:

<form method="get" accept-charset="utf-8" action="/cgi/users/home">
    <input name="screen" id="screen" value="Staff::EPrintSearch"
type="hidden">
    <input value="Search items" class="ep_form_action_button" type="submit">
</form>

while in production I've:

<form method="get" accept-charset="utf-8" action="/cgi/users/home">
    <input name="screen" id="screen" value="Admin" type="hidden">
    <input class="ep_form_action_button" value="Search items" type="submit">
</form>

As you can see, the production have "Admin" (the name of the main
plugin) as hidden value instead of Staff::EPrintSearch. Where can I
check this wrong behaviour? I've found the various plugin code, for
example Admin prints "actions" in button but I still have to find how
the "Admin" came out instead of "Staff::EPrintSearch".

Latest modification has been only on javascript and abstract rendering,
seems unrelated to this problem.

Thanks for any hint/help.


*** 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%7C4f62d274e9314300517c08d7046803e9%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=x%2Fq%2Bv5vMLijIf9vTsHVFTEnH1O5r3Xhz6iLFOu2oYsU%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%7C4f62d274e9314300517c08d7046803e9%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=wLIksI6tHwDVQnuw8c6SghetxCc3dTOU3Qkv2hn1S54%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%7C4f62d274e9314300517c08d7046803e9%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=KCt3IuZPpZ0Y1VqOAdSwWk6CqwdTx4oxp7s5Fu6G84c%3D&amp;reserved=0