EPrints Technical Mailing List Archive

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

Message: #07653


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

Re: [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@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Karl Goetz via Eprints-tech
Sent: Wednesday, 16 January 2019 9:22 AM
To: eprints-tech@ecs.soton.ac.uk; Karl Goetz <karl.goetz@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@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://protect-au.mimecast.com/s/z4FiClxwAVHqgx8ZUGG96N?domain=mailman.ecs.soton.ac.uk
*** Archive: https://protect-au.mimecast.com/s/YSXUCmOxBVhLEz3niOt6BX?domain=eprints.org
*** EPrints community wiki: https://protect-au.mimecast.com/s/fjqXCnxyDVHpMv2oiNg-2o?domain=wiki.eprints.org
*** EPrints developers Forum: https://protect-au.mimecast.com/s/nmh5CoVzE9HpxERzi6YDJB?domain=forum.eprints.org

 

-- 

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 )