It seems that import functionalities are available only through the admin interface. Even though I assigned the "import from file" permission to "authenticated users" role, the users having such a role do not see any link and/or menu item for importing files.

CommentFileSizeAuthor
#6 biblio.patch1.85 KBgustav
#4 biblio.patch2.31 KBLevet

Comments

mau-it’s picture

There's already such an issue for vers. 5.x-1.13 (see http://drupal.org/node/232636):
you must create a "manual" link to "biblio/import/form".

That worked for me with biblio 5.x-1.x-dev and drupal 5.7 but cannot test on drupal 6.

One missing point, IMHO, is that I can set ANY userId for imported entries. I think a non-admin role should be let to use his own userId only.

mau

julou’s picture

I just tried with 5.x-1.15 and drupal 5.8, and it does not work… Any idea to fix it?
BTW, I am not ready yet to switch to 5.x-1.16 since I use a strongly customized version.

Thank you for your help!
Thomas

julou’s picture

Levet’s picture

Status: Active » Needs review
StatusFileSize
new2.31 KB

Here is a patch (code needs review) which gives non-admin users the ability to import biblio files provided they have 'create biblio' access rights. The patch alters the biblio.module file (function biblio_menu) and the biblio.import.export.inc file (function biblio_import_form). It also restricts the userid that can be set by the non-admin and sets it to the current users userid - admin options remain intact.

Cheers, Will

rjerome’s picture

Thanks, I'll look at that and incorporate it in due course. I'm still in vacation mode...

gustav’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new1.85 KB

I have attached the patch rolled against the latest code from the 6.1 branch.

rjerome’s picture

Status: Reviewed & tested by the community » Fixed

Thanks, coincidentally I did more or less the same thing already today.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.