Wow, you've really done alot of work on this module recently - it really hums.

I appreciate this "my publications" feature greatly.

In the admin settings i have enabled "Show "My publications" item in the navigation menu" and "Select publications by:
Drupal User ID". I do not want my users to have any options to choose any other items. In other words, they wouldn't see any options at all for publications on their profile form. Is this possible?

Comments

rjerome’s picture

So basically you want to eliminate all the publications related options on the "user/xxx/edit" page and only allow the admin to control these items? Is that correct?

Ron.

gracearoha’s picture

yes, that's correct. Is it possible?

rjerome’s picture

Currently, no. But anything is possible. I will put an option on the admin page to turn the user settings on or off.

Ron.

gracearoha’s picture

That would be great!
Merci :)

mlncn’s picture

Title: Show "my publications" in nav menu with no choices in user profile » Make option to remove user-to-author matching form and settings from the user edit profile page
Version: 5.x-1.15 » 6.x-1.x-dev
Category: support » feature
Issue tags: +Science Collaboration

The relevant variable to disable the form is actually commented out in the biblio code:

/**
 * Implementation of hook_user().
 */
function biblio_user($type, & $edit, & $user, $category = NULL) {
  if ($type == 'form' && $category == 'account' ) { //&& variable_get('biblio_show_user_profile_form', '1')) {
    $form = array();
    include_once drupal_get_path('module', 'biblio') .'/biblio.admin.inc';
    _biblio_get_user_profile_form($form, $user);
    return $form;
  }
// ...
}

Should the variable option just be re-added here and added to the admin form?

Currently using a form_alter to remove it all. [Side note-- 'profile' doesn't seem to be the best top-level name for the (sub)form returned by _biblio_get_user_profile_form due to the chance of a namespace conflict.]

benjamin, Agaric Design Collective

rjerome’s picture

Hi Ben,

Could you clarify your objective for me... I'm not sure if you want to get rid of everything or just the one select box, if you just want to remove the DrupalID -> Biblio AuthorID linking, then that would require another option. Also note that the behavior differs for regular users and users with the "administer biblio" privilege.

Ron.

mlncn’s picture

In my case I wanted an option in admin to get rid of *everything*

rjerome’s picture

Ok, well uncommenting the line you mention above would achieve that. I guess the reason it was changed was so that even if the users were not allowed to make changes, they could see what the site defaults were set to. But then again, sometimes too much knowledge is a dangerous thing :-)

I'll fix this up in the next release which will probably be later this week.

Also coming in the next release are direct DOI look ups, meaning that by supplying the DOI, a query will be made to dx.doi.org to get the metadata available for this entry and the input form will be populated with what ever is found.

Similarly, you will be able to paste bibTex snippets into a text area and they will be parsed into the input form.

Ron.

liam morland’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

This version is no longer maintained. If this issue is still relevant to the Drupal 7 version, please re-open and provide details.