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

[EP-tech] DB search for users who changed an eprint



Hi All, I didn?t realize this didn?t get onto the list, but if anyone was interested, (and to make it searchable in the tech list archives?.), this is the way I have done it over the years? as a starting point?


select userid, actor, action, count(*)
  from history
 where datasetid = 'eprint'
   and timestamp_year = 2017
   group by 1,2,3
;

Cheers

Matt.

From: eprints-tech-bounces at ecs.soton.ac.uk [mailto:eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of Karl Goetz via Eprints-tech
Sent: Wednesday, 16 January 2019 9:22 AM
To: eprints-tech at ecs.soton.ac.uk; Karl Goetz <karl.goetz at utas.edu.au>
Subject: Re: [EP-tech] DB search for users who changed an eprint

Hi again,
A quick email to thank Matt Brady for his help pointing me in the right direction; all reports were provided successfully.

Karl.


On 15 Jan 2019, at 3:40 pm, Karl Goetz via Eprints-tech <eprints-tech at ecs.soton.ac.uk<mailto:eprints-tech at ecs.soton.ac.uk>> wrote:

Hi,
I have been asked to find out the staff who deposited (and or edited) a number of eprints last year. So far I haven?t been able to find a query to ask 'user who deposited a file??. I don't see a user specified in 'history', 'file' or 'documents' tables. 'history' has an 'actor' text field but it doesn't include the information i need. 'eprint' only includes the current revision.

Will I be able to query the information I need from within eprints DB or will I have to script up a query over the objects.xml files?

Thanks,
Karl.

--
Karl Goetz,  Senior Library Officer (Library Systems)
University of Tasmania, Private Bag 25, Hobart 7001
Available Tuesday, Wednesday, Thursday



University of Tasmania Electronic Communications Policy (December, 2014).
This email is confidential, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone outside the intended recipient organisation is prohibited and may be a criminal offence. Please delete if obtained in error and email confirmation to the sender. The views expressed in this email are not necessarily the views of the University of Tasmania, unless clearly intended otherwise.
*** Options: https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fprotect-au.mimecast.com%2Fs%2Fz4FiClxwAVHqgx8ZUGG96N%3Fdomain%3Dmailman.ecs.soton.ac.uk&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C817733cdffd84f724be908d67b650661%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&amp;sdata=H2L%2BgGntmD6bAUWk4WkqdOs%2F%2BQgHXw4m3SYDe5mZIuA%3D&amp;reserved=0<http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech>
*** Archive: https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fprotect-au.mimecast.com%2Fs%2FYSXUCmOxBVhLEz3niOt6BX%3Fdomain%3Deprints.org&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C817733cdffd84f724be908d67b650661%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&amp;sdata=BVrrxZ7pnsJ9O5kA8a0VYiIaQet7GwZDdqmoVdwdN%2FY%3D&amp;reserved=0<https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C817733cdffd84f724be908d67b650661%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&amp;sdata=BlQgmPOMkSWZ543r2Sv7CQpPNAl2pJEdpbsP1c1b57Y%3D&amp;reserved=0>
*** EPrints community wiki: https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fprotect-au.mimecast.com%2Fs%2FfjqXCnxyDVHpMv2oiNg-2o%3Fdomain%3Dwiki.eprints.org&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C817733cdffd84f724be908d67b650661%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&amp;sdata=HVHDm%2BfPdooYXk3yCPaaIKfoH2D0ue1YXC52L29TENM%3D&amp;reserved=0<https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C817733cdffd84f724be908d67b650661%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&amp;sdata=YEmV6Pbc6xKyokbnt2ta6ljv%2BKLUPw%2BsZSn9MYLjLMU%3D&amp;reserved=0>
*** EPrints developers Forum: https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fprotect-au.mimecast.com%2Fs%2Fnmh5CoVzE9HpxERzi6YDJB%3Fdomain%3Dforum.eprints.org&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C817733cdffd84f724be908d67b650661%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&amp;sdata=b9TfSWsxrzdV8bpCd1%2BjzLhv8LPlvnyMRiz53aTfZrw%3D&amp;reserved=0<https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fforum.eprints.org%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C817733cdffd84f724be908d67b650661%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&amp;sdata=gQ66oXgpZ1NJkrcfsnAkn%2FgcVpSdcam5ZOJ9eKlUcls%3D&amp;reserved=0>

--
Karl Goetz,  Senior Library Officer (Library Systems)
University of Tasmania, Private Bag 25, Hobart 7001
Available Tuesday, Wednesday, Thursday



_____________________________________________________________
This email (including any attached files) is confidential and is for the intended recipient(s) only. If you received this email by mistake, please, as a courtesy, tell the sender, then delete this email.

The views and opinions are the originator's and do not necessarily reflect those of the University of Southern Queensland. Although all reasonable precautions were taken to ensure that this email contained no viruses at the time it was sent we accept no liability for any losses arising from its receipt.

The University of Southern Queensland is a registered provider of education with the Australian Government.
(CRICOS Institution Code QLD 00244B / NSW 02225M, TEQSA PRV12081 )

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