[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[EP-tech] How to Remove Available Versions of this Item
Hi,
I usually would add a block to the EPrint workflow, towards the end of
the core (Details) stage something like:
??? <epc:if test="$current_user{username} = 'MYUSERNAME'">
????? <component>
??????? <field ref="succeeds"/>
????? </component>
??? </epc:if>
Substituting MYUSERNAME as appropriate.? Directly updating the database
is very much a last resort option in my opinion, as you could create a
much bigger problem if you get things wrong.? Also, you won't have the
traceability to see when and who unset the succeeds field, which may be
useful to know in the future.?? With the workflow method you just need
to go to the Details stage on the edit page for the newer eprint record,
scroll to the button and unset the value for the succeeds field.
As Alan said, I think even if you use the workflow method, you may need
to manually refresh the abstract page for that eprint record that has
the warning about a newer version being available.? I.e.
EPRINTS_PATH/bin/generate_abstracts ARCHIVEID EPRINTID
There is code to deal with changes relating to items that have the
succeeds field set or are referred to by that field.? However, I am not
sure it will work in this scenario.? I.e. cause the abstract page of the
original eprint record to be regenerated to remove the new version
warning banner.
I think the reason you may have experienced this issue in the first
place is someone (maybe you) created the new eprint record using the
"New version" button in the Actions tab of the original eprint record.?
This will set the succeeds field on the new eprint record.? Instead make
sure the "Use as template" button is used, as this will work much the
same but will not set the succeeds field.
Regards
David Newman
On 27/05/2022 8:16 am, Alan.Stiles via Eprints-tech wrote:
> *CAUTION:* This e-mail originated outside the University of Southampton.
>
> Hi,
>
> You need to clear the 913 from the ?succeeds? field on item 60435.?
> Either via direct access to the eprints database table or by
> temporarily adding it to the workflow and clearing it in the user
> interfacewriting or writing a script to clear it.? The last 2 options
> should leave a trace in the item history, the first option will not.
>
> You may then also need to regenerate the abstracts for one or both of
> the items to remove the version messages from the public views of the
> items.
>
> Alan
>
> *From: *eprints-tech-bounces at ecs.soton.ac.uk
> <eprints-tech-bounces at ecs.soton.ac.uk> on behalf of MOHD.IZWAN SALIM
> via Eprints-tech <eprints-tech at ecs.soton.ac.uk>
> *Date: *Friday, 27 May 2022 at 06:06
> *To: *EDER Norbert via Eprints-tech <eprints-tech at ecs.soton.ac.uk>
> *Subject: *[EP-tech] How to Remove Available Versions of this Item
>
> CAUTION: This mail comes from outside the University. Please consider
> this before opening attachments, clicking links, or acting on the
> content.
>
> *CAUTION:*This e-mail originated outside the University of Southampton.
>
> Dear?all
>
> One of my old records appear *There is a more recent version of this
> item
> <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fir.uitm.edu.my%2Fid%2Feprint%2F60435%2F&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C8ba8927365b24bccd60608da3fb5c660%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637892347229254031%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=pBfUVIbcyQ1C5t5tuPrRYReoSwlWLGDhOOU%2BVBn8LAI%3D&reserved=0>?available.*
>
> with some *Available Versions of this Item*info at the bottom record.
>
> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fir.uitm.edu.my%2Fid%2Feprint%2F913%2F&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C8ba8927365b24bccd60608da3fb5c660%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637892347229254031%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=T5WkaopuoyXxdHpqVXWQF1T7t%2BuLRs3g190TecxDJkE%3D&reserved=0
> <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fir.uitm.edu.my%2Fid%2Feprint%2F913%2F&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C8ba8927365b24bccd60608da3fb5c660%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637892347229254031%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=T5WkaopuoyXxdHpqVXWQF1T7t%2BuLRs3g190TecxDJkE%3D&reserved=0>
>
> I use to see this in eprints software download.
>
> How do i remove?this because both record are not same in term of version.
>
> Regards
>
>
> *Izwan*
>
> *https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fir.uitm.edu.my%2F&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C8ba8927365b24bccd60608da3fb5c660%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637892347229254031%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=yDCuuU2Ht8pdqmDoGgkaZqr2deFP9zqHaPx3ki7u7PE%3D&reserved=0
> <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fir.uitm.edu.my%2F&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C8ba8927365b24bccd60608da3fb5c660%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637892347229254031%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=yDCuuU2Ht8pdqmDoGgkaZqr2deFP9zqHaPx3ki7u7PE%3D&reserved=0>*
>
> *PENAFIAN: *E-mel ini dan apa-apa fail yang dihantar bersama-samanya
> ("Mesej") adalah dihasratkan hanya untuk kegunaan penerima yang
> dinyatakan di atas dan mungkin mengandungi maklumat yang tidak umum,
> bermilik, istimewa, sulit dan dikecualikan dari penzahiran di bawah
> undang-undang yang terpakai termasuklah Akta Rahsia Rasmi 1972. BACA
> SELANJUTNYA...
> <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail.uitm.edu.my%2Findex.php%3Foption%3Dcom_content%26view%3Darticle%26id%3D83&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C8ba8927365b24bccd60608da3fb5c660%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637892347229254031%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Gj3Hw1YREk4j3Zbew7gP5z%2FoEF9a%2BA%2BA2P3C%2BVausLs%3D&reserved=0>
>
> ------------------------------------------------------------------------
>
> */DISCLAIMER :/*/This e-mail and any files transmitted with it
> ("Message") is intended only for the use of the recipient(s) named
> above and may contain information that is non-public,? proprietary,
> privileged,? confidential? and? exempt? from disclosure under
> applicable law including the Official Secrets Act 1972. /READ MORE...
> <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail.uitm.edu.my%2Findex.php%3Foption%3Dcom_content%26view%3Darticle%26id%3D83&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C8ba8927365b24bccd60608da3fb5c660%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637892347229254031%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Gj3Hw1YREk4j3Zbew7gP5z%2FoEF9a%2BA%2BA2P3C%2BVausLs%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%7C8ba8927365b24bccd60608da3fb5c660%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637892347229254031%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=YIxZX8Iip%2FEvhEYcOxRh62rp4xbajpwqjdcgwjXRZP8%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%7C8ba8927365b24bccd60608da3fb5c660%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637892347229254031%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=zLq%2FUlhHLRIAc8lXHKEk%2FgPpuOTppkJ5nx1%2F5VW8Nvg%3D&reserved=0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20220527/9a33742e/attachment-0001.html