[EP-tech] How to delete succeeds-field?

David R Newman drn at ecs.soton.ac.uk
Thu May 19 12:04:54 BST 2022


Hi Thomas and Yuri,

I have just tested this on what will become the next version of EPrints 
(3.4.4) and I don't see any significant problems with an eprint where 
its predecessor (value in its succeeds field) has been fully deleted 
(not just retired), even though the succeeding eprint still has its 
succeeds field set with a now missing eprint ID.  Please could you give 
a bit more detail of the problems you are seeing when the succeeded 
eprint has been deleted, so I can make sure this issue does not still 
persist.  As part of 3.4.3, I made a change to the "EPrint Remove" 
screen plugin, which would require an additional permission:

eprint/remove_once_archived

to be assigned to a user or user type to allow them to delete (not just 
retire) an item that has at some point been in the live archive (i.e. 
has its datestamp field set).

On the solution to your current issue, I would always advise either 
using a script or temporarily modifying the eprint workflow so your user 
(or admin users more generally) can edit the succeeds field and in this 
case unset it.  Running database queries is obviously a lot quicker and 
easier to do but you don't have any traceability, which when you have 
had to deal with an unusual bug is often helpful if someone happens to 
review this at later date.

Regards

David Newman

On 19/05/2022 11:34, Yuri via Eprints-tech wrote:
> *CAUTION:* This e-mail originated outside the University of Southampton.
>
> If all is ok, then you can just recreate the abstract.
>
> Il 19/05/22 12:18, th.lauke--- via Eprints-tech ha scritto:
>> *CAUTION:* This e-mail originated outside the University of Southampton.
>> Hi all,
>>
>> due to the fact, that EPrints obviously could not handle an entry, 
>> whose predecessor is gone for some reason, I like to delete the 
>> faulty link. But an import of an empty field is rejected :(
>> How to get rid of the link? I would be glad to avoid any manipulation 
>> of the data base :)
>>
>> Many thanks for any idea in advance
>> Thomas
>>
>> BTW: I will check how to get into this situation later ...
>>
>> *** 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&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C6fe0d259e13449e473ff08da39876809%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637885550962470590%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=ss%2Fh%2Baj6LXlZHjHwsATCgvV%2BNFxbot%2BdQ4dUDEcoRcE%3D&reserved=0
>> *** EPrints community wiki:https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C6fe0d259e13449e473ff08da39876809%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637885550962470590%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=ON1DrFW9%2B1JAVSghRL3F%2BkU18UyPlV3ySdFIqJcALkE%3D&reserved=0
>
> *** 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&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C6fe0d259e13449e473ff08da39876809%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637885550962470590%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=ss%2Fh%2Baj6LXlZHjHwsATCgvV%2BNFxbot%2BdQ4dUDEcoRcE%3D&reserved=0
> *** EPrints community wiki:https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C6fe0d259e13449e473ff08da39876809%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637885550962470590%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=ON1DrFW9%2B1JAVSghRL3F%2BkU18UyPlV3ySdFIqJcALkE%3D&reserved=0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20220519/33e438e0/attachment.html 


More information about the Eprints-tech mailing list