On 20.07.2012 09:39, Irene Buettner wrote:

Hi!

this is exactly what I have on my todo list for my users. I tried about
a year ago but did not manage it. Since I am not a programming expert
but just the admin... would you share you solution?

As promised included some cleaned up code form our system. Note that we
basically need two functions to accomplish this:

bfe_modifythisrecord.py

adds the link to the records detailed page based upon the role of the
currently logged on user. We have Editors and Staff. The former are
allowed to edit each record in their institutes private collection, the
latter is library staff, so they are basically allowed to edit
everything. This get's checked in this bfe. So if you're not the
original submitter you may gain special rights her. Note that we model
this by group memberships for practical reasons. (Some user owns the
groups and moderates them. Not necessarily someone with su-rights.)

Then we need a websubmit function that chechs Is_Submitter_Or_Editor.py
and gives access. This replaces the Is_Owner-Fuction delivered with invenio.

Note, that I've left also another bfe that uses almost the same
technique as modifythisrecord: it is used to send a correction request
to library staff.

HTH :)

--

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-fim


------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
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
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------

Kennen Sie schon unseren neuen Film? http://www.fz-juelich.de/film
Kennen Sie schon unsere app? http://www.fz-juelich.de/app

Reply via email to