[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EP-tech] Retire Item from Review



Hi Tomasz,
If you have a look at:
https://github.com/eprints/eprints/pull/324/commits *
the changes use the 'datestamp' field to determine whether something appears in the OAI-PMH interface.

The datestamp is set in EPrints::DataObj::EPrint::commit when (i) the datestamp is not set and (ii) when the eprint_status is 'archive'.
Using the commits above, items in 'deletion' that have never been live should not get returned over OAI-PMH.

Cheers
John

*the conversation on  https://github.com/eprints/eprints/pull/324 is a bit muddled, as Patrick and I misunderstood what each other was saying (we were both saying the same thing in the end!)


From: eprints-tech-bounces at ecs.soton.ac.uk [mailto:eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of Tomasz Neugebauer
Sent: 12 June 2017 17:32
To: eprints-tech at ecs.soton.ac.uk
Subject: Re: [EP-tech] Retire Item from Review

Thank you, John and Alan for the great answers!  John's solution worked perfectly, I added the role to the editor and that made the button appear for items in Review.   Excellent. Do you think there some set of triggers that I should be adding when retiring an item from Review?
Sometimes, editors need to retire an item because they need to archive a submission, but for one reason or another, it cannot be made live.  In essence, the "Retired" items dataset is a "dark archive".
Thank you also for flagging the issue of deleted items appearing in OAI-PMH.  I believe that makes sense, deleted (destroyed) items really shouldn't be showing up in the OAI_PMH sets - so if you have a solution for that, it sounds like we could all benefit from it.

Best wishes,

Tomasz


From: eprints-tech-bounces at ecs.soton.ac.uk<mailto:eprints-tech-bounces at ecs.soton.ac.uk> [mailto:eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of John Salter
Sent: June-09-17 4:57 AM
To: eprints-tech at ecs.soton.ac.uk<mailto:eprints-tech at ecs.soton.ac.uk>
Subject: Re: [EP-tech] Retire Item from Review

Hi Tomasz,
I don't think it would break anything, but there aren't any default triggers that deal with a status change of e.g. inbox -> deletion (but you could add some).

You might need to add a new role e.g. eprint/buffer/move_deletion:editor as I don't think by default anyone would have permission to do this.

I *think* that adding the above role would make a 'Retire item' button appear in the 'Actions' tab, as EPrints checks for the role when displaying the 'move' buttons.

Cheers,
John

PS There's a similar thing I've added to our repository that stops people destroying an item when the datestamp is set. This is to help the OAI-PMH interface properly respond to deleted items - if they are destroyed, they don't appear in the OAI-PMH interface, becoming 'zombie' records in a harvesters dataset. (I probably should add this to core!)

From: eprints-tech-bounces at ecs.soton.ac.uk<mailto:eprints-tech-bounces at ecs.soton.ac.uk> [mailto:eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of Tomasz Neugebauer
Sent: 08 June 2017 18:58
To: eprints-tech at ecs.soton.ac.uk<mailto:eprints-tech at ecs.soton.ac.uk>
Subject: [EP-tech] Retire Item from Review

I noticed that the "Retire Item" button does not appear as an option for items in Review.  Only items that are "Live" can be retired.  Is that correct?  Would it cause a problem to provide the option to "Retire Item" directly from Review, without ever making it Live?
Thanks!
Tomasz


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20170612/ca5ee4b9/attachment-0001.html