It would be nice to have the possibility to map a drupal_uid to more than one author.
I've two different author name that must be linked to the same drupal_uid and I make two assumptions:

  • If I map one author, the other will be unmapped
  • I don't want merge the two author names into a single one

This request is coming because I have a view showing the biblio_node for each drupal_uid linked to an author. This views obviously show only the node for the author linked to the user (only one of the two authors).
I've also tried to link author_1 to author_2 via biblio "link authors feature" but again filtering by drupal_uid in views shows only the author_1 mapped with drupal_uid.

I see two different possible solution of the problem:

  1. Add possibility to link more than one author to each drupal_uid
  2. Modify the views handler to make it possible to filter by drupal_uid but get biblio aka in addition to biblio cid from contributors table.

Comments

rjerome’s picture

Putting this on the todo list... No ETA at this point, but there is a place holder.

GinaF’s picture

I have been trying to show all publications for an author using cid, but am trying to add in all linked author publications as well. I don't want to merge authors either.
I was using the url:
http://www.cir.ed.ac.uk/drupal/Publications?s=year&o=desc&f[author]=2288

is there any way I can modify this url to include more than one cid? or can I refer to the "aka" in the url in any way?

I assume if you merge authors it would change the author name on the actual publication - is that right? I wonder when you should use this feature.
Many thanks
Gina

dominikb1888’s picture

I needed fix for this problem, too. I've found a messy and temporary solution. I couldn't find a way to add a subquery to $viewsdata for the biblio_contributor_table - this would be the way to go I guess. So, I used hook_views_pre_execute.
WARNING: Still have some problems with token replacement in the subquery. So this is still insecure:

function biblio_views_pre_execute(&$view) {
  $view = &$view;
  views_include("query");
  if ($view->build_info['query_args'][0]) {
    $uid = &$view->build_info['query_args'][0];   
    $query = db_query('SELECT cid FROM {biblio_contributor_data} cd
                       WHERE cd.drupal_uid = %d', $uid);
    while ($result = db_fetch_array($query)) {
      $rows[] = $result;
    }
    
    $cid = isset($rows[0]['cid']) ? $rows[0]['cid'] : NULL;
    $query = $view->query;
    if($cid) {
      $params = array(
          'clauses' => array('biblio_contributor.cid IN (SELECT biblio_contributor_data.cid FROM {biblio_contributor_data} WHERE biblio_contributor_data.aka = ' . $cid . ' )'),
          'args' => array($cid),
          'type' => 'OR',
      );

      $query->where[] = $params;
      $query->group_operator = 'OR';

      $view->build_info['query'] = $query->query();
      $view->build_info['count_query'] = $query->query(TRUE);
    }
  }
}
toki’s picture

Issue summary: View changes

Hi
I would appreciate to link 2 biblio authors to 1 Drupal User account, as well. Is it now possible?
Thanks
(I am using Biblio 7.x-1.0-rc7)

liam morland’s picture

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.

semmel2000’s picture

Version: 6.x-2.x-dev » 7.x-1.0-rc10
Status: Closed (outdated) » Needs review

We started to use biblio recently, thank you for this great module.

We have authors who changed their names (after marriage) and now we have citations with the same person cited under different names. Biblio creates a new author for the changed name and I have linked (not merged) those authors together, to keep the citations correct. I now want to link the corresponding drupal users to the author(s), but even if the authors are linked the module only accepts linkage of one drupal user to one author. My problem: I want to show all publications of the drupal user under his user profile, but i only get a subset of the users publications shown here (either the pubs of author name before marriage or author name after marriage (since i cant link to both)). How can we deal with this problem?

liam morland’s picture

Version: 7.x-1.0-rc10 » 7.x-1.x-dev
Status: Needs review » Active

"Needs review" is for issues that have patch. Feature requests are always against the development branch.