On 08.10.2013 14:23, [email protected] wrote: Hi!
I'm trying to write an SQL query to show all the documents submitted by a user (not necessarily the currently logged in user.) What I actually want is to show the total disk usage of each user, but if I can just get a list of the documents submitted, given either a user id or email, I should be able to take it from there. Is there documentation out there to describe all the tables in the invenio db?
Are you sure, that you want to dig in these backwaters? Usually, you should be able to get the information needed from your Marc as well and then you could just use invenios search engine (aka perform_request_search) without fiddling with the db as such. Or in other words: if it is important to know who did the initial submission it should stay in a marc tag. On the other hand, if it is nothing time critical you could in principle loop over all records using the bibedit-interface. This gives you also access to the very first submission and it's submitter, in case your workflow overwrites this. -- Kind regards, Alexander Wagner Subject Specialist Central Library 52425 Juelich mail : [email protected] phone: +49 2461 61-1586 Fax : +49 2461 61-6103 www.fz-juelich.de/zb/DE/zb-fi ------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------ Forschungszentrum Juelich GmbH 52425 Juelich Sitz der Gesellschaft: Juelich Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498 Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender), Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt, Prof. Dr. Sebastian M. Schmidt ------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------

